Sun, 05 Dec 2021 14:39:41 +0200
Add borgend.spec for PyInstaller as an option.
README.md | file | annotate | diff | comparison | revisions | |
borgend.spec | file | annotate | diff | comparison | revisions |
--- 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
--- /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)