@@ -38,26 +38,26 @@ build:
3838
3939dmg : build
4040 @ echo " Packaging DMG..."
41- version=" ${VERSION:-$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' Resources/Info.plist)}" ; dmg_path=" {{ build_dir }} /{{ app_name }} -$$ {version}.dmg" ; rm -rf " {{ dmg_root }} " " $$ dmg_path" ; mkdir -p " {{ dmg_root }} " ; cp -R " {{ app_bundle }} " " {{ dmg_root }} /" ; ln -s / Applications " {{ dmg_root }} /Applications" ; hdiutil create -volname " {{ vol_name }} " -srcfolder " {{ dmg_root }} " -ov -format UDZO " $ $dmg_path"
41+ version=" ${VERSION:-$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' Resources/Info.plist)}" ; dmg_path=" {{ build_dir }} /{{ app_name }} -${version}.dmg" ; rm -rf " {{ dmg_root }} " " $dmg_path" ; mkdir -p " {{ dmg_root }} " ; cp -R " {{ app_bundle }} " " {{ dmg_root }} /" ; ln -s / Applications " {{ dmg_root }} /Applications" ; hdiutil create -volname " {{ vol_name }} " -srcfolder " {{ dmg_root }} " -ov -format UDZO " $dmg_path"
4242
4343zip : build
4444 @ echo " Packaging ZIP..."
45- version=" ${VERSION:-$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' Resources/Info.plist)}" ; zip_path=" {{ build_dir }} /{{ app_name }} -$$ {version}.zip" ; rm -f " $$ zip_path" ; ditto -c -k --sequesterRsrc --keepParent " {{ app_bundle }} " " $ $zip_path"
45+ version=" ${VERSION:-$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' Resources/Info.plist)}" ; zip_path=" {{ build_dir }} /{{ app_name }} -${version}.zip" ; rm -f " $zip_path" ; ditto -c -k --sequesterRsrc --keepParent " {{ app_bundle }} " " $zip_path"
4646
4747package : dmg zip
4848 version=" ${VERSION:-$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' Resources/Info.plist)}" ; \
49- echo " Release artifacts ready at {{ build_dir }} /{{ app_name }} -$$ {version}.dmg and {{ build_dir }} /{{ app_name }} -$ ${version}.zip"
49+ echo " Release artifacts ready at {{ build_dir }} /{{ app_name }} -${version}.dmg and {{ build_dir }} /{{ app_name }} -${version}.zip"
5050
5151release :
5252 @ echo " Creating release tag..."
5353 version=" ${VERSION:-$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' Resources/Info.plist)}" ; \
54- current_branch=$$ (git branch --show-current); \
55- [ " $$ current_branch" = " main" ] || { echo " Switch to main before releasing. Current branch: $ $current_branch" ; exit 1 ; }; \
54+ current_branch=$(git branch --show-current); \
55+ [ " $current_branch" = " main" ] || { echo " Switch to main before releasing. Current branch: $current_branch" ; exit 1 ; }; \
5656 git diff --quiet && git diff --cached --quiet || { echo " Working tree must be clean before releasing." ; exit 1 ; }; \
5757 git fetch origin main --tags; \
5858 git pull --ff-only origin main; \
59- tag=" v$$ version" ; \
60- if git rev-parse " refs/tags/$$ tag" >/ dev/ null 2 >&1 ; then echo " Tag $ $tag already exists." ; exit 1 ; fi; \
61- git tag " $$ tag" ; \
62- git push origin " $$ tag" ; \
63- echo " Pushed $$ tag. GitHub Actions will build and publish the release."
59+ tag=" v$version" ; \
60+ if git rev-parse " refs/tags/$tag" >/ dev/ null 2 >&1 ; then echo " Tag $tag already exists." ; exit 1 ; fi; \
61+ git tag " $tag" ; \
62+ git push origin " $tag" ; \
63+ echo " Pushed $tag. GitHub Actions will build and publish the release."
0 commit comments