Skip to content

Commit

Permalink
MacOS: include link to Applications folder in dmg and update to Qt 6.5.2
Browse files Browse the repository at this point in the history
Resolves #624
  • Loading branch information
grulja committed Sep 4, 2023
1 parent 4b18351 commit 01e5eed
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 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 @@ -35,7 +35,7 @@ function install_deps() {
mkdir -p /usr/local/opt/qt
pushd /usr/local/opt/qt >/dev/null
pip3 install aqtinstall
aqt install-qt mac desktop 6.2.4 -m qtimageformats
aqt install-qt mac desktop 6.5.2 -m qtimageformats
popd >/dev/null
}

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 01e5eed

Please sign in to comment.