Skip to content

Commit

Permalink
MacOS: include link to Applications folder in dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
grulja committed Aug 30, 2023
1 parent f91bb3e commit 3df8a4e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions dist/mac/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -x
set -e

# TODO: add your Qt location into LD_LIBRARY_PATH
PATH="/usr/local/opt/qt/6.2.4/macos/bin:$PATH"
LD_LIBRARY_PATH="/usr/local/opt/qt/6.2.4/macos/lib:$LD_LIBRARY_PATH"
Qt6_DIR="/usr/local/opt/qt/6.2.4/macos"
PATH="/usr/local/opt/qt/6.5.2/macos/bin:$PATH"
LD_LIBRARY_PATH="/usr/local/opt/qt/6.5.2/macos/lib:$LD_LIBRARY_PATH"
Qt6_DIR="/usr/local/opt/qt/6.5.2/macos"

# === SIGNING ===
# TODO: set in order to sign binaries
Expand Down Expand Up @@ -94,7 +94,12 @@ function dmg() {
echo "=== Creating a disk image ==="
# create the .dmg package - beware, it won't work while FMW is running (blocks partition mounting)
rm -f "../*.dmg"
hdiutil create -srcfolder src/app/Fedora\ Media\ Writer.app -format UDCO -imagekey zlib-level=9 -scrub -volname FedoraMediaWriter-osx ../FedoraMediaWriter-osx-$VERSION.unnotarized.dmg
STAGING_DIR="$SCRIPTDIR/staging"
mkdir -p $STAGING_DIR
cp -R src/app/Fedora\ Media\ Writer.app $STAGING_DIR
ln -s /Applications $STAGING_DIR/Applications
hdiutil create -srcfolder $STAGING_DIR -format UDCO -imagekey zlib-level=9 -scrub -volname FedoraMediaWriter-osx ../FedoraMediaWriter-osx-$VERSION.unnotarized.dmg
rm -rf $STAGING_DIR
popd >/dev/null
}

Expand Down

0 comments on commit 3df8a4e

Please sign in to comment.