diff --git a/.gitignore b/.gitignore index ab02ee0..f27f10a 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,6 @@ wheels/ # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest -*.spec # Installer logs pip-log.txt diff --git a/linux.spec b/linux.spec new file mode 100644 index 0000000..23a4f59 --- /dev/null +++ b/linux.spec @@ -0,0 +1,61 @@ +# -*- mode: python ; coding: utf-8 -*- + +from kivymd import hooks_path as kivymd_hooks_path + +block_cipher = None + + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[], + datas=[ + ("./backend/*.py", "backend"),a + ("./ui/accountselectscreen/*.*", "ui/accountselectscreen"), + ("./ui/assets/*.png", "ui/assets"), + ("./ui/components/*.py", "ui/components"), + ("./ui/components/message_components/*.py", "ui/components/message_components"), + ("./ui/messagescreen/*.*", "ui/messagescreen"), + ("./ui/welcomescreen/*.*", "ui/welcomescreen"), + ("./ui/progressscreen/*.*", "ui/progressscreen"), + ], + hiddenimports=[], + hookspath=[kivymd_hooks_path], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + cipher=block_cipher, + noarchive=False, +) + +splash = Splash( + "ui/assets/Splash Screen.png", + binaries=a.binaries, + datas=a.datas, +) + + +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + splash, + splash.binaries, + a.binaries, + a.datas, + name='MR.DM', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon="ui/assets/icon.png" +) \ No newline at end of file diff --git a/windows.spec b/windows.spec new file mode 100644 index 0000000..7391b97 --- /dev/null +++ b/windows.spec @@ -0,0 +1,63 @@ +# -*- mode: python ; coding: utf-8 -*- + +from kivymd import hooks_path as kivymd_hooks_path +from kivy_deps import sdl2, glew + +block_cipher = None + + +a = Analysis( + ['main.py'], + pathex=[], + binaries=[], + datas=[ + ("./backend/*.py", "backend"), + ("./ui/accountselectscreen/*.*", "ui\\accountselectscreen"), + ("./ui/assets/*.png", "ui\\assets"), + ("./ui/components/*.py", "ui\\components"), + ("./ui/components/message_components/*.py", "ui\\components\\message_components"), + ("./ui/messagescreen/*.*", "ui\\messagescreen"), + ("./ui/welcomescreen/*.*", "ui\\welcomescreen"), + ("./ui/progressscreen/*.*", "ui\\progressscreen"), + ], + hiddenimports=[], + hookspath=[kivymd_hooks_path], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + cipher=block_cipher, + noarchive=False, +) + +splash = Splash( + "ui/assets/Splash Screen.png", + binaries=a.binaries, + datas=a.datas, +) + + +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + splash, + splash.binaries, + a.binaries, + a.datas, + *[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)], + name='MR.DM', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon="ui/assets/icon.png" +)