diff options
author | Manu <manu@snapdragon.cc> | 2020-08-16 15:12:47 +0800 |
---|---|---|
committer | Manu <manu@snapdragon.cc> | 2020-09-08 12:31:47 +0800 |
commit | b023610c8cd004b940cd635fb51519a6a8960fd9 (patch) | |
tree | 40498fcc75f1c6d927db9ae1ab11931ecd72a126 /scripts | |
parent | 38c2380281fe845479e630c4f25e01b53c123a6e (diff) |
Build directory-based binary for macOS to avoid Gatekeeper delays.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/borg.exe.spec | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/scripts/borg.exe.spec b/scripts/borg.exe.spec index 451f86dfc..04f6b10a6 100644 --- a/scripts/borg.exe.spec +++ b/scripts/borg.exe.spec @@ -51,15 +51,24 @@ exe = EXE(pyz, upx=True, console=True) -if False: - # Enable this block to build a directory-based binary instead of - # a packed single file. This allows one to easily look at all included - # files (e.g. without having to strace or halt the built binary - # and introspect /tmp). - coll = COLLECT(exe, - a.binaries, - a.zipfiles, - a.datas, - strip=False, - upx=True, - name='borg-dir') +# Build a directory-based binary in addition to a packed +# single file. This allows one to easily look at all included +# files (e.g. without having to strace or halt the built binary +# and introspect /tmp). Also avoids unpacking all libs when +# running the app, which is better for app signing on various OS. +slim_exe = EXE(pyz, + a.scripts, + exclude_binaries=True, + name='borg.exe', + debug=False, + strip=False, + upx=False, + console=True) + +coll = COLLECT(slim_exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=False, + name='borg-dir') |