diff --git a/compile.ps1 b/compile.ps1 new file mode 100644 index 0000000..9fcff78 --- /dev/null +++ b/compile.ps1 @@ -0,0 +1,2 @@ +#pyinstaller --clean discrakt.py +pyinstaller .\discrakt.spec \ No newline at end of file diff --git a/discrakt.spec b/discrakt.spec index c4abc20..d648bd2 100644 --- a/discrakt.spec +++ b/discrakt.spec @@ -5,11 +5,12 @@ block_cipher = None a = Analysis(['discrakt.py'], - pathex=['C:\\Users\\Afonso\\GitHub\\discrakt'], + pathex=[], binaries=[], datas=[], hiddenimports=[], hookspath=[], + hooksconfig={}, runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, @@ -18,20 +19,29 @@ a = Analysis(['discrakt.py'], noarchive=False) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + exe = EXE(pyz, - a.scripts, - a.binaries, - a.zipfiles, - a.datas, + a.scripts, [], + exclude_binaries=True, name='discrakt', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, - upx_exclude=[], - runtime_tmpdir=None, - console=False ) + console=False, + disable_windowed_traceback=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None ) +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='discrakt') import shutil shutil.copyfile('credentials.ini', '{0}/credentials.ini'.format(DISTPATH)) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 233505f..ad4eb81 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -pyinstaller==4.3 -pyinstaller-hooks-contrib==2021.1 -pypresence==4.2.0 -python-dateutil==2.8.1 +pyinstaller==4.7 +pyinstaller-hooks-contrib==2021.4 +pypresence==4.2.1 +python-dateutil==2.8.2 #pywin32==300 #pywin32-ctypes==0.2.0