diff --git a/mac/dmg-back.png b/mac/dmg-back.png new file mode 100644 index 00000000..bb1ebf5d Binary files /dev/null and b/mac/dmg-back.png differ diff --git a/mac/dmg-back.svg b/mac/dmg-back.svg new file mode 100644 index 00000000..1b8e61a5 --- /dev/null +++ b/mac/dmg-back.svg @@ -0,0 +1,251 @@ + + + sfizz logo + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + sfizz logo + 2020-05-16 + + + Tobiasz 'unfa' KaroĊ„ + + + + + CC-0 + + + + + + + + + + + + + + + diff --git a/mac/dmg-back@2x.png b/mac/dmg-back@2x.png new file mode 100644 index 00000000..a9d91d75 Binary files /dev/null and b/mac/dmg-back@2x.png differ diff --git a/scripts/appveyor/after_build.sh b/scripts/appveyor/after_build.sh index 1591f363..cb59f11d 100755 --- a/scripts/appveyor/after_build.sh +++ b/scripts/appveyor/after_build.sh @@ -28,19 +28,33 @@ else codesign --sign "${CODESIGN_IDENTITY}" --keychain build.keychain --force --verbose \ "${INSTALL_DIR}"/sfizz.lv2/Contents/Frameworks/*.dylib 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 -# Need the flag --skip-jenkins to prevent CI hanging -# https://github.com/create-dmg/create-dmg/issues/72 -create-dmg --skip-jenkins "${INSTALL_DIR}.dmg" ${INSTALL_DIR} +# Create the DMG +cat > sfizz-dmg.json << EOF +{ + "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 if [[ ${APPVEYOR_REPO_TAG} ]]; then diff --git a/scripts/appveyor/install.sh b/scripts/appveyor/install.sh index c927cc1f..2755a0e3 100644 --- a/scripts/appveyor/install.sh +++ b/scripts/appveyor/install.sh @@ -40,4 +40,7 @@ fi 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