mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Add support for skipping codesign in compileOSX.sh
This commit is contained in:
parent
8b923aeb18
commit
7618cbea73
@ -5,7 +5,9 @@ VERSION=${1:-"9.5.0"}
|
|||||||
|
|
||||||
BUILD_NUMBER=${2:-"0"}
|
BUILD_NUMBER=${2:-"0"}
|
||||||
|
|
||||||
if [ "$3" == "clean" ]; then
|
SKIP_CODESIGN=${3:-false}
|
||||||
|
|
||||||
|
if [ "$4" == "clean" ]; then
|
||||||
./cleanOSX.sh
|
./cleanOSX.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -60,7 +62,9 @@ cp -R release/languages YACReader.app/Contents/MacOS/
|
|||||||
cp -R release/languages YACReaderLibrary.app/Contents/MacOS/
|
cp -R release/languages YACReaderLibrary.app/Contents/MacOS/
|
||||||
cp -R release/languages YACReaderLibraryServer.app/Contents/MacOS/
|
cp -R release/languages YACReaderLibraryServer.app/Contents/MacOS/
|
||||||
|
|
||||||
|
if [ "$SKIP_CODESIGN" = false ]; then
|
||||||
./signapps.sh
|
./signapps.sh
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Preparing apps for release, Done."
|
echo "Preparing apps for release, Done."
|
||||||
|
|
||||||
@ -88,6 +92,8 @@ sed -i'' -e "s/#VERSION#/$VERSION/g" dmg.json
|
|||||||
sed -i'' -e "s/#BUILD_NUMBER#/$BUILD_NUMBER/g" dmg.json
|
sed -i'' -e "s/#BUILD_NUMBER#/$BUILD_NUMBER/g" dmg.json
|
||||||
appdmg dmg.json "$dest.dmg"
|
appdmg dmg.json "$dest.dmg"
|
||||||
|
|
||||||
|
if [ "$SKIP_CODESIGN" = false ]; then
|
||||||
codesign --force --deep --sign "Developer ID Application: LUIS ANGEL SAN MARTIN ROD (9B6KKVW3WM)" "./${dest}.dmg"
|
codesign --force --deep --sign "Developer ID Application: LUIS ANGEL SAN MARTIN ROD (9B6KKVW3WM)" "./${dest}.dmg"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
Loading…
Reference in New Issue
Block a user