# HG changeset patch # User Tuomo Valkonen # Date 1638707981 -7200 # Node ID c40f341a99e014b6caafd62e37d83c04d4094b01 # Parent 45c1a38f870930884d8fb227b5d2dc3819fc5151 Add borgend.spec for PyInstaller as an option. diff -r 45c1a38f8709 -r c40f341a99e0 README.md --- a/README.md Sun Dec 05 13:34:02 2021 +0200 +++ b/README.md Sun Dec 05 14:39:41 2021 +0200 @@ -90,9 +90,10 @@ To create an app that you can launch at startup and give permanent permissions to the keychain, use - python3 setup.py py2app -A + pip3 install pyinstaller + pyinstaller borgend.spec -The app hould be placed under `dist/`. Copy it to your `Applications` +The app (`borgend.app`) should be placed under `dist/`. Copy it to your `Applications` directory, and set it up to launch on login. If you are keen on wasting your life, you can try to run py2app without the diff -r 45c1a38f8709 -r c40f341a99e0 borgend.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/borgend.spec Sun Dec 05 14:39:41 2021 +0200 @@ -0,0 +1,46 @@ +# -*- mode: python ; coding: utf-8 -*- + +block_cipher = None + +a = Analysis(['borgend/__main__.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) + +exe = EXE(pyz, + a.scripts, + [], + exclude_binaries=True, + name='borgend', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + 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=False, + upx=True, + upx_exclude=[], + name='borgend') +app = BUNDLE(coll, + name='borgend.app', + icon=None, + bundle_identifier=None)