mirror of https://github.com/BTCPrivate/copay.git
add osx signing in script (#4115)
This commit is contained in:
parent
5026e41d21
commit
16c25a1572
|
@ -14,7 +14,7 @@ module.exports = function(grunt) {
|
||||||
command: 'rm -Rf bower_components node_modules'
|
command: 'rm -Rf bower_components node_modules'
|
||||||
},
|
},
|
||||||
osx: {
|
osx: {
|
||||||
command: 'webkitbuilds/build-osx.sh'
|
command: 'webkitbuilds/build-osx.sh sign'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -218,5 +218,6 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('translate', ['nggettext_extract']);
|
grunt.registerTask('translate', ['nggettext_extract']);
|
||||||
grunt.registerTask('test', ['karma:unit']);
|
grunt.registerTask('test', ['karma:unit']);
|
||||||
grunt.registerTask('test-coveralls', ['karma:prod', 'coveralls']);
|
grunt.registerTask('test-coveralls', ['karma:prod', 'coveralls']);
|
||||||
grunt.registerTask('desktop', ['prod', 'nodewebkit', 'copy:linux', 'compress:linux', 'exec:osx']);
|
grunt.registerTask('desktop', ['prod', 'nodewebkit', 'copy:linux', 'compress:linux']);
|
||||||
|
grunt.registerTask('osx', ['prod', 'nodewebkit', 'exec:osx']);
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
SHOULD_SIGN=$1
|
||||||
|
if [ "$SHOULD_SIGN" ]
|
||||||
|
then
|
||||||
|
echo "Will sign the APP"
|
||||||
|
fi
|
||||||
|
|
||||||
# by Andy Maloney
|
# by Andy Maloney
|
||||||
# http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
|
# http://asmaloney.com/2013/07/howto/packaging-a-mac-os-x-application-using-a-dmg/
|
||||||
|
|
||||||
|
@ -57,6 +63,26 @@ if [ $? -ne 0 ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Sign Code (MATIAS)
|
||||||
|
if [ $SHOULD_SIGN ]
|
||||||
|
then
|
||||||
|
echo "Signing Copay DMG"
|
||||||
|
|
||||||
|
export IDENTITY="3rd Party Mac Developer Application: BitPay, Inc. (884JRH5R93)"
|
||||||
|
|
||||||
|
# not need for 'out of app store' distribution (?)
|
||||||
|
# export PARENT_PLIST=parent.plist
|
||||||
|
# export CHILD_PLIST=child.plist
|
||||||
|
export APP_PATH=${STAGING_DIR}/${APP_NAME}.app
|
||||||
|
|
||||||
|
codesign --deep -s "${IDENTITY}" $APP_PATH"/Contents/Frameworks/nwjs Helper.app" && echo "Sign 1"
|
||||||
|
codesign --deep -s "${IDENTITY}" $APP_PATH"/Contents/Frameworks/nwjs Helper EH.app" && echo "Sign 2"
|
||||||
|
codesign --deep -s "${IDENTITY}" $APP_PATH"/Contents/Frameworks/nwjs Helper NP.app" && echo "Sign 3"
|
||||||
|
codesign --deep -s "${IDENTITY}" $APP_PATH && echo "Sign 4"
|
||||||
|
echo "Signing Done"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
# create the temp DMG file
|
# create the temp DMG file
|
||||||
hdiutil create -srcfolder "${STAGING_DIR}" -volname "${VOL_NAME}" -fs HFS+ \
|
hdiutil create -srcfolder "${STAGING_DIR}" -volname "${VOL_NAME}" -fs HFS+ \
|
||||||
-fsargs "-c c=64,a=16,e=16" -format UDRW -megabytes ${SIZE} "${DMG_TMP}"
|
-fsargs "-c c=64,a=16,e=16" -format UDRW -megabytes ${SIZE} "${DMG_TMP}"
|
||||||
|
|
Loading…
Reference in New Issue