Skip to content

Commit eee8c6f

Browse files
committed
refactor: streamline build and DMG creation process in AGENTS.md
1 parent b8384df commit eee8c6f

1 file changed

Lines changed: 34 additions & 7 deletions

File tree

AGENTS.md

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,44 @@ Run unit tests:
2828
xcodebuild test -scheme "Volume Grid"
2929
```
3030

31-
Try building and running the project to verify correctness:
31+
Try building the project to verify correctness:
3232
```sh
33-
xcodebuild -project VolumeGrid.xcodeproj -scheme "Volume Grid" -configuration Release -derivedDataPath ~/Downloads/volumegrid-build 2>&1 | grep -i warning
33+
rm -rf .build
3434

35-
xcodebuild clean -project VolumeGrid.xcodeproj -scheme "Volume Grid" -configuration Release -derivedDataPath ~/Downloads/volumegrid-build
36-
37-
xcodebuild -project VolumeGrid.xcodeproj -scheme "Volume Grid" -configuration Release -derivedDataPath ~/Downloads/volumegrid-build
35+
xcodebuild -project VolumeGrid.xcodeproj -scheme "Volume Grid" -configuration Release -derivedDataPath .build/volumegrid-build 2>&1 | grep -i warning
36+
```
3837

39-
killall "Volume Grid"
38+
## Build DMG Locally
4039

41-
open ~/Downloads/volumegrid-build/Build/Products/Release/Volume\ Grid.app
40+
```sh
41+
VERSION="v1.0.0"
42+
TIMESTAMP="202511301130"
43+
TIMESTAMP_DATE="11/30/2025 11:30:00"
44+
45+
xcodebuild -project VolumeGrid.xcodeproj -scheme "Volume Grid" -configuration Release \
46+
-derivedDataPath build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
47+
48+
DMG_DIR="dmg-dir-temp"
49+
rm -rf "$DMG_DIR"
50+
mkdir -p "$DMG_DIR"
51+
cp -r "build/Build/Products/Release/Volume Grid.app" "$DMG_DIR/"
52+
find "$DMG_DIR/Volume Grid.app" -exec touch -t $TIMESTAMP {} + 2>/dev/null
53+
54+
create-dmg \
55+
--volname "Volume Grid" \
56+
--window-pos 200 200 \
57+
--window-size 600 400 \
58+
--icon-size 100 \
59+
--icon "Volume Grid.app" 200 200 \
60+
--app-drop-link 400 200 \
61+
"VolumeGrid-${VERSION}.dmg" \
62+
"$DMG_DIR"
63+
64+
touch -t $TIMESTAMP "VolumeGrid-${VERSION}.dmg"
65+
date -r "VolumeGrid-${VERSION}.dmg"
66+
stat "VolumeGrid-${VERSION}.dmg"
67+
68+
rm -rf build "$DMG_DIR"
4269
```
4370

4471
## Release

0 commit comments

Comments
 (0)