Fix pyinstaller build

This commit is contained in:
Manatsawin Hanmongkolchai committed 2021-08-21 13:59:18 +07:00
1 parent 0c5386d744
commit b5723e6d79
4 files changed
+57 -10

No files matched your search

-1
View File
@@ -6,6 +6,5 @@ setup.py
*.egg-info
__pycache__
runekit/_resources.py
RuneKitApp.spec
*.AppImage
*.pyo
+3 -3
View File
@@ -13,12 +13,12 @@ dist/runekit.tar.gz: main.py poetry.lock runekit/_resources.py $(wildcard runeki
# Mac
dist/RuneKitApp.app: main.py poetry.lock runekit/_resources.py $(wildcard runekit/**/*)
pyinstaller -w -n RuneKitApp \
dist/RuneKit.app: main.py poetry.lock runekit/_resources.py $(wildcard runekit/**/*)
pyinstaller -w -n RuneKitApp --noconfirm \
--exclude-module tkinter \
-s -d noarchive \
--osx-bundle-identifier de.cupco.runekit \
$<
RuneKit.spec
# AppImage
+54
View File
@@ -0,0 +1,54 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['runekit'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=['tkinter'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=True)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='RuneKitApp',
debug=False,
bootloader_ignore_signals=False,
strip=True,
upx=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=True,
upx=False,
upx_exclude=[],
name='RuneKit')
app = BUNDLE(coll,
name='RuneKit.app',
icon=None,
bundle_identifier='de.cupco.runekit',
info_plist={
'LSEnvironment': {
'LANG': 'en_US.UTF-8',
'LC_CTYPE': 'en_US.UTF-8'
}
})
-6
View File
@@ -1,6 +0,0 @@
#!/bin/bash
# Used for Platypus boot
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
./RuneKitApp/RuneKitApp