Skip to content

Commit

Permalink
Add support for mac codesign and notary
Browse files Browse the repository at this point in the history
  • Loading branch information
kwagyeman committed May 29, 2022
1 parent 7e7a028 commit aa76d2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion make.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,18 @@ def make():
" && make -j" + str(cpus) +
" && make deployqt"):
sys.exit("Make Failed...")
os.system("cd " + builddir + " && make codesign SIGNING_IDENTITY=Application")
os.system("cd " + builddir + " && make codesign SIGNING_IDENTITY=Application SIGNING_FLAGS=\"--force --options=runtime --timestamp\"")
if os.system("cd " + builddir +
" && ditto -c -k -rsrc --sequesterRsrc --keepParent bin/OpenMV\\ IDE.app OpenMV\\ IDE.zip"
" && xcrun notarytool submit OpenMV\\ IDE.zip --keychain-profile \"AC_PASSWORD\" --wait"
" && xcrun stapler staple bin/OpenMV\\ IDE.app"):
sys.exit("Make Failed...")
if os.system("cd " + builddir + " && make dmg"):
sys.exit("Make Failed...")
installer = glob.glob(os.path.join(builddir, "openmv-ide-*.dmg"))[0]
if os.system("cd " + builddir + " && xcrun notarytool submit " + installer + " --keychain-profile \"AC_PASSWORD\" --wait"
" && xcrun stapler staple " + installer):
sys.exit("Make Failed...")

elif sys.platform.startswith('linux'):
# Add Fonts...
Expand Down
2 changes: 1 addition & 1 deletion qt-creator
Submodule qt-creator updated 2 files
+5 −1 qtcreator.pro
+16 −16 scripts/sign.py

0 comments on commit aa76d2d

Please sign in to comment.