Skip to content

Commit c274f6e

Browse files
committed
Build - improve macOS release script
Don't clobber original app build - rather create a new macOS_Release dir and copy and make "release ready" in there - leaving the original untouched. Fix directory level due to recent structural changes to paths. Return shell to directory it was in before the script started.
1 parent 6576588 commit c274f6e

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

app/mac-release.sh

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,32 @@
22
set -eux # Quit script on error
33

44
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
CURRENT_DIR="$( pwd )"
56

6-
cd "${SCRIPT_DIR}/build/gui/qt/Sonic Pi.app/Contents/Resources"
7+
cd "${SCRIPT_DIR}/build/"
8+
mkdir -p macOS_Release
9+
rm -rf macOS_Release
10+
mkdir -p macOS_Release
11+
12+
cp -R 'gui/qt/Sonic Pi.app' macOS_Release/
13+
14+
cd "macOS_Release/Sonic Pi.app/Contents/Resources"
715

816
rm app etc server
917
mkdir app
10-
cp -R ../../../../../../../app/server app/server
11-
cp -R ../../../../../../../etc .
18+
cp -R ../../../../../../app/server app/server
19+
cp -R ../../../../../../etc .
1220
ln -s app/server .
1321

1422
mkdir -p app/gui/qt
15-
cp -R ../../../../../../../app/gui/qt/theme app/gui/qt/
23+
cp -R ../../../../../../app/gui/qt/theme app/gui/qt/
24+
25+
../../../../../../app/gui/qt/prune.rb app/server/ruby/vendor
26+
27+
cd "${CURRENT_DIR}"
1628

17-
../../../../../../../app/gui/qt/prune.rb app/server/ruby/vendor
29+
echo "
1830
19-
echo "build/Sonic Pi.app is now ready for signing, notarising and releasing..."
31+
app/build/macOS_Release/Sonic Pi.app is now ready for signing, notarising and releasing...
2032
21-
cd "${SCRIPT_DIR}"
33+
"

0 commit comments

Comments
 (0)