Merge pull request #577 from jpcima/apple-dmg
Improve DMG and code-sign
This commit is contained in:
commit
cec22ecf71
5 changed files with 280 additions and 12 deletions
BIN
mac/dmg-back.png
Normal file
BIN
mac/dmg-back.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
251
mac/dmg-back.svg
Normal file
251
mac/dmg-back.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 17 KiB |
BIN
mac/dmg-back@2x.png
Normal file
BIN
mac/dmg-back@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
|
|
@ -28,19 +28,33 @@ else
|
||||||
codesign --sign "${CODESIGN_IDENTITY}" --keychain build.keychain --force --verbose \
|
codesign --sign "${CODESIGN_IDENTITY}" --keychain build.keychain --force --verbose \
|
||||||
"${INSTALL_DIR}"/sfizz.lv2/Contents/Frameworks/*.dylib
|
"${INSTALL_DIR}"/sfizz.lv2/Contents/Frameworks/*.dylib
|
||||||
fi
|
fi
|
||||||
if ls "${INSTALL_DIR}"/usr/local/bin/* &> /dev/null; then
|
|
||||||
codesign --sign "${CODESIGN_IDENTITY}" --keychain build.keychain --force --verbose \
|
|
||||||
"${INSTALL_DIR}"/usr/local/bin/*
|
|
||||||
fi
|
|
||||||
if ls "${INSTALL_DIR}"/usr/local/lib/*.dylib &> /dev/null; then
|
|
||||||
codesign --sign "${CODESIGN_IDENTITY}" --keychain build.keychain --force --verbose \
|
|
||||||
"${INSTALL_DIR}"/usr/local/lib/*.dylib
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Need the flag --skip-jenkins to prevent CI hanging
|
# Create the DMG
|
||||||
# https://github.com/create-dmg/create-dmg/issues/72
|
cat > sfizz-dmg.json << EOF
|
||||||
create-dmg --skip-jenkins "${INSTALL_DIR}.dmg" ${INSTALL_DIR}
|
{
|
||||||
|
"title": "sfizz",
|
||||||
|
"background": "${APPVEYOR_BUILD_FOLDER}/mac/dmg-back.png",
|
||||||
|
"window": {
|
||||||
|
"size": { "width": 500, "height": 500 }
|
||||||
|
},
|
||||||
|
"contents": [
|
||||||
|
{ "x": 100, "y": 50, "type": "file", "path": "${INSTALL_DIR}/sfizz.vst3" },
|
||||||
|
{ "x": 250, "y": 50, "type": "file", "path": "${INSTALL_DIR}/sfizz.component" },
|
||||||
|
{ "x": 400, "y": 50, "type": "file", "path": "${INSTALL_DIR}/sfizz.lv2" },
|
||||||
|
{ "x": 100, "y": 400, "type": "link", "path": "/Library/Audio/Plug-Ins/VST3" },
|
||||||
|
{ "x": 250, "y": 400, "type": "link", "path": "/Library/Audio/Plug-Ins/Components" },
|
||||||
|
{ "x": 400, "y": 400, "type": "link", "path": "/Library/Audio/Plug-Ins/LV2" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
~/node_modules/appdmg/bin/appdmg.js sfizz-dmg.json "${INSTALL_DIR}.dmg"
|
||||||
|
|
||||||
|
# Code-sign the DMG
|
||||||
|
if test ! -z "${CODESIGN_PASSWORD}"; then
|
||||||
|
security unlock-keychain -p dummypasswd build.keychain
|
||||||
|
codesign --sign "${CODESIGN_IDENTITY}" --keychain build.keychain --force --verbose "${INSTALL_DIR}.dmg"
|
||||||
|
fi
|
||||||
|
|
||||||
# Only release a tarball if there is a tag
|
# Only release a tarball if there is a tag
|
||||||
if [[ ${APPVEYOR_REPO_TAG} ]]; then
|
if [[ ${APPVEYOR_REPO_TAG} ]]; then
|
||||||
|
|
|
||||||
|
|
@ -40,4 +40,7 @@ fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
brew install libsndfile dylibbundler fileicon create-dmg
|
brew install libsndfile dylibbundler fileicon
|
||||||
|
|
||||||
|
cd ~; npm install appdmg; cd -
|
||||||
|
~/node_modules/appdmg/bin/appdmg.js --version
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue