new release script

This commit is contained in:
Mark Gregory
2026-10-18 15:33:34 +01:00
parent b3366e05db
commit 55c4254b25
2 changed files with 22 additions and 28 deletions
Regular → Executable
+21 -27
View File
@@ -1,28 +1,22 @@
#!/bin/bash #!/usr/bin/env bash
set -euo pipefail
cd /Volumes/Developer/Applications/DbSyn cd /Volumes/Developer/Applications/DbSyn
&& rm -rf ./build
&& # Remove previous build
xcodebuild rm -rf ./build
-project
DBSyn.xcodeproj # Clean and build DBSyn
-scheme xcodebuild \
DBSyn -project DBSyn.xcodeproj \
-configuration -scheme DBSyn \
Debug -configuration Debug \
-destination -destination 'platform=macOS,arch=arm64' \
'platform=macOS,arch=arm64' -derivedDataPath ./build \
-derivedDataPath clean build
./build
clean # Stop any running instance
build pkill -x DBSyn 2>/dev/null || true
&&
{ # Launch the newly built application
pkill open ./build/Build/Products/Debug/DBSyn.app
-x
DBSyn
2>/dev/null
||
true;
open
./build/Build/Products/Debug/DBSyn.app;
}
+1 -1
View File
@@ -105,7 +105,7 @@ ditto "$APP_PATH" "$DMG_STAGE/$APP_NAME.app"
ln -s /Applications "$DMG_STAGE/Applications" ln -s /Applications "$DMG_STAGE/Applications"
# Create writable image first: the custom volume icon must be set ON the # Create writable image first: the custom volume icon must be set ON the
# mounted filesystem, not on the staging directory. # mounted filesystem, not on the staging directory.
hdiutil create -size 100m -fs HFS+ -volname "$APP_NAME" -format UDRW -ov "$RW_DMG" hdiutil create -size 100m -fs HFS+ -volname "$APP_NAME" -ov "$RW_DMG"
MOUNTED=0 MOUNTED=0
cleanup() { cleanup() {
if [[ "$MOUNTED" == 1 ]]; then hdiutil detach "$MOUNT_POINT" -quiet || true; fi if [[ "$MOUNTED" == 1 ]]; then hdiutil detach "$MOUNT_POINT" -quiet || true; fi