Update builder.py
This commit is contained in:
parent
7a61ea2e32
commit
15d8154f3d
|
@ -639,7 +639,7 @@ class Builder:
|
|||
icon = self.icon_name
|
||||
else:
|
||||
icon = "NONE"
|
||||
os.system(f'python -m PyInstaller --onefile --noconsole --upx-dir=./tools -i {icon} --distpath ./ .\\{filename}.py')
|
||||
os.system(f'python -m PyInstaller --onefile --noconsole --upx-dir=./blackcap_files/upx -i {icon} --distpath ./ .\\{filename}.py')
|
||||
print(f'{Fore.GREEN}[{Fore.RESET}{Fore.WHITE}+{Fore.RESET}{Fore.GREEN}]{Fore.RESET}{Fore.WHITE} Code compiled!{Fore.RESET}')
|
||||
|
||||
def run(self, filename):
|
||||
|
@ -655,6 +655,7 @@ class Builder:
|
|||
cleans_file = {f'./{filename}.py', f'./{filename}.spec', f'./obfuscated_{filename}.py', f'./obfuscated_{filename}.spec', f'./obfuscated_compressed_{filename}.py', f'./compressed_{filename}.py', f'./compressed_{filename}.spec'}
|
||||
|
||||
if self.obfuscation == 'yes' and self.compy == 'no':
|
||||
cleans_file.remove(f'./obfuscated_{filename}.py')
|
||||
cleans_file.remove(f'./obfuscated_compressed_{filename}.py')
|
||||
elif self.obfuscation == 'yes' and self.compy == 'yes':
|
||||
cleans_file.add(f'./obfuscated_compressed_{filename}.spec')
|
||||
|
|
Loading…
Reference in New Issue