Skip to content

Instantly share code, notes, and snippets.

@cvl
Created April 9, 2020 08:08
Show Gist options
  • Save cvl/13aba5df52caaf68cdd68952c9c064ca to your computer and use it in GitHub Desktop.
Save cvl/13aba5df52caaf68cdd68952c9c064ca to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
app_dir=deploy/darwin/build/MysteriumVPN.app
identity=<identity>
rm -rf "${app_dir}"
npx nodegui-packer --pack dist
rm "${app_dir}/Contents/Frameworks/.gitkeep"
rm "${app_dir}/Contents/PlugIns/.gitkeep"
rm "${app_dir}/Contents/SharedFrameWorks/.gitkeep"
echo "### Signing"
codesign --verbose --force --sign "${identity}" --options "runtime,library" "${app_dir}/Contents/PlugIns/platforms/libqcocoa.dylib"
codesign --verbose --force --sign "${identity}" --options "runtime,library" "${app_dir}/Contents/PlugIns/printsupport/libcocoaprintersupport.dylib"
codesign --verbose --force --sign "${identity}" --options "runtime,library" "${app_dir}/Contents/PlugIns/styles/libqmacstyle.dylib"
codesign --verbose --force --sign "${identity}" --options "runtime,library" "${app_dir}/Contents/PlugIns/imageformats/libqgif.dylib"
codesign --verbose --force --sign "${identity}" --options "runtime,library" "${app_dir}/Contents/PlugIns/imageformats/libqico.dylib"
codesign --verbose --force --sign "${identity}" --options "runtime,library" "${app_dir}/Contents/PlugIns/imageformats/libqjpeg.dylib"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Frameworks/QtCore.framework"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Frameworks/QtGui.framework"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Frameworks/QtWidgets.framework"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Frameworks/QtDBus.framework"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Frameworks/QtPrintSupport.framework"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Resources/dist/static/myst"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Resources/dist/static/myst_supervisor"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Resources/dist/static/openvpn"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/Resources/dist/nodegui_core-d3eecda678d6cb88e4609fa1fd6c1d61.node"
codesign --verbose --force --sign "${identity}" --options "runtime" "${app_dir}/Contents/MacOs/qode"
#echo "### Verifying"
#codesign --verbose --verify deploy/darwin/build/MysteriumVPN.app
#codesign -vvv --deep --strict deploy/darwin/build/MysteriumVPN.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment