Skip to content

Commit c71c1be

Browse files
bensquireclaude
andcommitted
Switch distribution from ZIP to DMG with drag-to-Applications installer
Replace the zip Makefile target with a dmg target using create-dmg. Update the release workflow to install create-dmg and upload a .dmg. Bump version to 0.0.2. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3f89db4 commit c71c1be

4 files changed

Lines changed: 23 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ jobs:
2121
- name: Build pngquant
2222
run: make pngquant
2323

24-
- name: Build and zip
25-
run: make zip
24+
- name: Install create-dmg
25+
run: brew install create-dmg
26+
27+
- name: Build and create DMG
28+
run: make dmg
2629

2730
- name: Create GitHub Release
28-
run: gh release create "${{ github.ref_name }}" build/ImageAlpha-${{ github.ref_name }}.zip --generate-notes
31+
run: gh release create "${{ github.ref_name }}" build/ImageAlpha-${{ github.ref_name }}.dmg --generate-notes
2932
env:
3033
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.0.2
4+
5+
- Switched distribution from ZIP to DMG with drag-to-Applications installer
6+
37
## v0.0.1
48

59
- Rewritten in Swift (replacing the original Python/PyObjC implementation)

Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
<key>CFBundlePackageType</key>
3939
<string>APPL</string>
4040
<key>CFBundleShortVersionString</key>
41-
<string>0.0.1</string>
41+
<string>0.0.2</string>
4242
<key>CFBundleVersion</key>
43-
<string>0.0.1</string>
43+
<string>0.0.2</string>
4444
<key>LSMinimumSystemVersion</key>
4545
<string>15.0</string>
4646
<key>NSHumanReadableCopyright</key>

Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BUILD_DIR = build
44
PNGQUANT_DIR = pngquant
55
VERSION = $(shell /usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" Info.plist)
66

7-
.PHONY: build debug release archive clean pngquant zip
7+
.PHONY: build debug release archive clean pngquant dmg
88

99
build: debug
1010

@@ -21,10 +21,18 @@ archive:
2121
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Release \
2222
-archivePath $(BUILD_DIR)/ImageAlpha.xcarchive archive
2323

24-
zip: release
24+
dmg: release
2525
mkdir -p $(BUILD_DIR)
2626
cp -R $(HOME)/Library/Developer/Xcode/DerivedData/ImageAlpha-*/Build/Products/Release/ImageAlpha.app $(BUILD_DIR)/
27-
cd $(BUILD_DIR) && zip -r ImageAlpha-v$(VERSION).zip ImageAlpha.app
27+
create-dmg \
28+
--volname "ImageAlpha" \
29+
--window-pos 200 120 \
30+
--window-size 600 400 \
31+
--icon "ImageAlpha.app" 150 200 \
32+
--app-drop-link 450 200 \
33+
--no-internet-enable \
34+
$(BUILD_DIR)/ImageAlpha-v$(VERSION).dmg \
35+
$(BUILD_DIR)/ImageAlpha.app
2836

2937
clean:
3038
xcodebuild -project $(PROJECT) -scheme $(SCHEME) clean

0 commit comments

Comments
 (0)