Skip to content

Commit

Permalink
bundle script for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentynel committed May 2, 2020
1 parent e6a4e96 commit 7d363b9
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bundle-macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/sh
pyinstaller dr-macos.spec
codesign --remove-signature dist/dr.app/Contents/MacOS/Python
codesign --deep -s "Sentynel Code-Signing" dist/dr.app
cd dist
hdiutil create ./dr.dmg -srcfolder dr.app -ov
cd ..
42 changes: 42 additions & 0 deletions dr-macos.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# -*- mode: python ; coding: utf-8 -*-
from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal, hookspath

block_cipher = None

args = {**get_deps_minimal(video=None, audio=None, camera=None, spelling=None)}
args["hiddenimports"].append('plyer.platforms.macosx.filechooser')
args["binaries"].append(('assets/ffmpeg', 'assets'))
a = Analysis(['dr.py'],
pathex=['/Users/orion/devel/drpy'],
datas=[],
hookspath=[],
runtime_hooks=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
**args )
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='dr',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='dr')
app = BUNDLE(coll,
name='dr.app',
icon=None,
bundle_identifier=None)

0 comments on commit 7d363b9

Please sign in to comment.