Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
bae9c0e4eThis file is pinned to the selected release. Download the original to open it in your design tool.
#!/usr/bin/env bash
# set shell settings (see https://sipb.mit.edu/doc/safe-shell/)
set -euv -o pipefail
# Build dmg
# Requirement: brew install create-dmg
pushd "./build/install/" # Avoid having path in DMG name
for run in {1..10}; do
if [ ! -f ./LibrePCB.dmg ]; then
create-dmg --volname "LibrePCB" \
--volicon ./LibrePCB.app/Contents/Resources/librepcb.icns \
--background ../../dist/dmg/background.png \
--window-size 504 300 \
--icon-size 96 \
--icon LibrePCB.app 115 133 \
--hide-extension LibrePCB.app \
--app-drop-link 388 133 \
./LibrePCB.dmg ./LibrePCB.app || true
sleep 5
fi
done
popd
# Test if the bundles are working (hopefully catching deployment issues).
./build/install/LibrePCB.app/Contents/MacOS/librepcb-cli --version
./build/install/LibrePCB.app/Contents/MacOS/librepcb --exit-after-startup
# Print checksums to allow fully transparent public verification.
shasum -a 256 ./build/install/LibrePCB.dmg
# Move to artifacts.
mv ./build/install/LibrePCB.dmg ./artifacts/nightly_builds/librepcb-nightly-mac-$ARCH.dmg