Skip to content

Commit 1513727

Browse files
committed
build, qt: (Re-)sign package
Starting with macOS 11 on Apple silicon, executables must be signed before they are allowed to run.
1 parent c26a0a5 commit 1513727

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
#
1818

19-
import sys, re, os, shutil, stat, os.path
19+
import sys, re, os, platform, shutil, stat, subprocess, os.path
2020
from argparse import ArgumentParser
2121
from ds_store import DSStore
2222
from mac_alias import Alias
@@ -541,6 +541,9 @@ ds.close()
541541

542542
# ------------------------------------------------
543543

544+
if platform.system() == "Darwin":
545+
subprocess.check_call(f"codesign --deep --force --sign - {target}", shell=True)
546+
544547
if config.dmg is not None:
545548

546549
print("+ Preparing .dmg disk image +")

0 commit comments

Comments
 (0)