diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-07-25 18:29:57 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-02-17 14:10:17 +0200 |
commit | 1513727e2b38800c694d1204cb454cc6fabc4937 (patch) | |
tree | 4f462c183d3753cab18d29a2c011d9415eb35773 /contrib/macdeploy/macdeployqtplus | |
parent | c26a0a5af76bed9c2eb65f1a19725508c55299e8 (diff) | |
download | bitcoin-1513727e2b38800c694d1204cb454cc6fabc4937.tar.xz |
build, qt: (Re-)sign package
Starting with macOS 11 on Apple silicon, executables must be signed
before they are allowed to run.
Diffstat (limited to 'contrib/macdeploy/macdeployqtplus')
-rwxr-xr-x | contrib/macdeploy/macdeployqtplus | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/macdeploy/macdeployqtplus b/contrib/macdeploy/macdeployqtplus index b8f5705b41..0455a137f1 100755 --- a/contrib/macdeploy/macdeployqtplus +++ b/contrib/macdeploy/macdeployqtplus @@ -16,7 +16,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -import sys, re, os, shutil, stat, os.path +import sys, re, os, platform, shutil, stat, subprocess, os.path from argparse import ArgumentParser from ds_store import DSStore from mac_alias import Alias @@ -541,6 +541,9 @@ ds.close() # ------------------------------------------------ +if platform.system() == "Darwin": + subprocess.check_call(f"codesign --deep --force --sign - {target}", shell=True) + if config.dmg is not None: print("+ Preparing .dmg disk image +") |