diff --git a/Docs/Development/RELEASE.md b/Docs/Development/RELEASE.md index 0eaf53f..39eb764 100644 --- a/Docs/Development/RELEASE.md +++ b/Docs/Development/RELEASE.md @@ -2,12 +2,11 @@ Let `x.x.x` represent the version number. -1. In Xcode select the Pine project from the sidebar -2. Under the 'General' tab, bump the version number -3. Create a git commit titled 'Bump version to x.x.x' and push to remote -4. Run `make release` -5. Compress Pine.app into a .zip file named Pine-x.x.x.zip -6. In GitHub draft a new release +1. Run `make PINE_VERSION=x.x.x tag` to bump the version +2. Create a git commit titled 'Bump version to x.x.x' and push to remote +3. Run `make release` +4. Compress Pine.app into a .zip file named Pine-x.x.x.zip +5. In GitHub draft a new release - Tag version: `x.x.x` - Release title: `Pine x.x.x` - Describe this release: @@ -27,10 +26,8 @@ Let `x.x.x` represent the version number. - ... ``` - Upload Pine.x.x.x.zip -7. Click 'Publish release' -8. Download the Pine.x.x.x.zip from the newly created release -9. Open `lukakerr/homebrew-casks` repository -10. Create a new branch if one already doesn't exist -11. Run `shasum -a 256 ~/Downloads/Pine-x.x.x.zip` and copy the SHA-256 checksum -12. Run `open Casks/pine.rb` and update the cask with the new version and checksum -13. Create a git commit with the message `Update Pine to x.x.x` and push to remote +6. Click 'Publish release' +7. Open `lukakerr/homebrew-things` repository +8. Run `shasum -a 256 /path/to/Pine-x.x.x.zip` (using the correct path) and copy the SHA-256 checksum +9. Run `open Casks/pine.rb` and update the cask with the new version and checksum +10. Create a git commit with the message `Update Pine to x.x.x` and push to remote diff --git a/Makefile b/Makefile index a191007..1417611 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all build test release clean clean-release clean-build +.PHONY: all build test tag release clean clean-release clean-build all: build @@ -13,6 +13,13 @@ test: -configuration Debug test \ -workspace ./Pine.xcworkspace +tag: +ifdef PINE_VERSION + /usr/libexec/Plistbuddy -c "Set CFBundleShortVersionString $(PINE_VERSION)" ./Pine/Info.plist +else + @echo 'PINE_VERSION is not set' +endif + release: xcodebuild archive \ -scheme Pine \