-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyinstaller.py
43 lines (36 loc) · 1.13 KB
/
pyinstaller.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Compiler Editor #
import os
bat = "pyinstaller.exe --onefile -n "
settings = 'Settings: \n\n'
while True:
# Output Name #
output_name = input('Output Name (No Spaces): ')
bat += output_name
settings += f'Output Name: {output_name}'
os.system('cls')
# Icon #
icon = input('Custom Icon? [y/n] ')
os.system('cls')
if icon == 'y':
print('Put the icon that you want to use in the Icons folder.')
print('Note: Write the file name with .ico at the end')
icon_name = input('\nIcon File Name: ')
bat += f' --icon=icons/{icon_name} --clean'
settings += f'\nIcon File: {icon_name}'
os.system('cls')
else:
pass
# Settings Chosen #
print(settings)
confirm = input('1. Accept \n2. Change Settings \n> ')
if confirm == '1':
os.system('cls')
break
else:
os.system('cls')
continue
with open('pyinstaller.bat', 'w') as f:
bat += ' ripper.py'
f.write(bat)
print('pyinstaller.bat has been made. Open it to compile ripper.py')
input('[ENTER] to exit')