File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ BUILD_DIR = build
44PNGQUANT_DIR = pngquant
55VERSION = $(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
99build : 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
2937clean :
3038 xcodebuild -project $(PROJECT ) -scheme $(SCHEME ) clean
You can’t perform that action at this time.
0 commit comments