Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions dist_assets/mac/pyfa.spec
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,28 @@ pyz = PYZ(a.pure, a.zipped_data,

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
exclude_binaries=True,
name='pyfa',
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False ,
icon=icon,
contents_directory='app',
)

app = BUNDLE(
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='pyfa',
)

app = BUNDLE(
coll,
name='pyfa.app',
version=os.getenv('PYFA_VERSION'),
icon=icon,
Expand Down
2 changes: 1 addition & 1 deletion pyfa.spec
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ if platform.system() == 'Darwin':
'CFBundleVersion': '1.2.3',
'CFBundleShortVersionString': '1.2.3',
}
app = BUNDLE(exe,
app = BUNDLE(coll,
name='pyfa.app',
icon=icon,
bundle_identifier=None,
Expand Down
2 changes: 1 addition & 1 deletion scripts/osx-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ echo "Building distributive..."
python3 -m PyInstaller -y --clean dist_assets/mac/pyfa.spec
echo "Compressing distributive..."
cd dist
zip -r "pyfa-$PYFA_VERSION-mac.zip" pyfa.app
zip -yr "pyfa-$PYFA_VERSION-mac.zip" pyfa.app
md5 -r "pyfa-$PYFA_VERSION-mac.zip"