-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import os | ||
import time | ||
import json | ||
|
||
print("Pyletron Manifest Generator") | ||
print("By ItsIceCreeperPE Dev") | ||
print("https://github.com/pyletron/manifest-generator") | ||
name = input('What is the application name?\nApplication Name: ') | ||
os.system('cls') | ||
console = input('Do you want your application to have an open console window\nDefault : No\nOptions: Y/N\nSelection: ') | ||
os.system('cls') | ||
onedir = input('Do you want your application to be a single executable or a folder.\nNote: Single executable may take a little more time to launch\nOptions: Y/N\nSelection: ') | ||
os.system('cls') | ||
icon = input('Input the directory to your icon file\nMUST BE .ico FILE\nFile Path: ') | ||
os.system('cls') | ||
version = input('What is your application version?\nApplication Version: ') | ||
os.system('cls') | ||
if console=="Y" or console=="y": | ||
console=True | ||
elif console=="N" or console=="n": | ||
console=False | ||
else: | ||
quit() | ||
if onedir=="Y" or onedir=="y": | ||
onedir=True | ||
elif onedir=="N" or onedir=="n": | ||
onedir=False | ||
else: | ||
quit() | ||
|
||
manifestDictionary = { | ||
"name" : name, | ||
"console" : console, | ||
"onedir" : onedir, | ||
"icon" : icon, | ||
"version" : version | ||
} | ||
|
||
jsonFile = json.dumps(manifestDictionary, indent=4) | ||
|
||
with open('manifest.json', 'w') as outfile: | ||
outfile.write(jsonFile) | ||
|
||
print("File Generated!") | ||
print("File located in same directory as this file.") | ||
print("Closing in 5 seconds") | ||
time.sleep(5) |