Skip to content

Commit

Permalink
Fix pyinstaller build
Browse files Browse the repository at this point in the history
  • Loading branch information
Manatsawin Hanmongkolchai committed Aug 21, 2021
1 parent 0c5386d commit b5723e6
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ setup.py
*.egg-info
__pycache__
runekit/_resources.py
RuneKitApp.spec
*.AppImage
*.pyo
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
54 changes: 54 additions & 0 deletions RuneKit.spec
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 6 deletions deploy/runekit-platypus.sh

This file was deleted.

0 comments on commit b5723e6

Please sign in to comment.