Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MTSyntho authored Jul 13, 2023
1 parent 0eed71d commit 4b8672e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions manifestGen.py
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)

0 comments on commit 4b8672e

Please sign in to comment.