diff --git a/.gitignore b/.gitignore index 42ba93d27..ff09fe31f 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,4 @@ Carthage/Build ## SourceKitten SourceKitten.pkg +SourceKittenFramework.framework.zip diff --git a/Makefile b/Makefile index 76159e799..84b2e354d 100644 --- a/Makefile +++ b/Makefile @@ -60,3 +60,9 @@ package: installables --root "$(TEMPORARY_FOLDER)" \ --version "$(VERSION_STRING)" \ "$(OUTPUT_PACKAGE)" + +archive: + carthage build --no-skip-current --platform mac + carthage archive SourceKittenFramework + +release: package archive diff --git a/Releasing.md b/Releasing.md index a60d04947..61bc806f4 100644 --- a/Releasing.md +++ b/Releasing.md @@ -16,19 +16,15 @@ For SourceKitten contributors, follow these steps to cut a release: 5. Tag: `git tag -a 0.6.2 -m "0.6.2: Objective-Cat"; git push --tags` 6. Make sure you have the latest stable Xcode version installed or symlinked under `/Applications/Xcode.app` and `xcode-select`ed. -7. Create the pkg installer: `make package` -8. Create the Carthage framework zip: - * `mkdir -p Carthage/Build/Mac` - * `mv /tmp/SourceKitten.dst/usr/local/Frameworks/SourceKittenFramework.framework Carthage/Build/Mac` - * `carthage archive SourceKittenFramework` -9. Create a GitHub release: https://github.com/realm/SourceKitten/releases/new +7. Create the pkg installer & framework zip: `make release` +8. Create a GitHub release: https://github.com/realm/SourceKitten/releases/new * Specify the tag you just pushed from the dropdown. * Set the release title to the new version number & release name. * Add the changelog section to the release description text box. * Upload the pkg installer and Carthage zip you just built to the GitHub release binaries. * Click "Publish release" -10. File a PR towards Homebrew bumping the `tag`, `revision` & Xcode version - dependency if necessary. - See [homebrew#45651](https://github.com/Homebrew/homebrew/pull/45651) as an - example. +9. File a PR towards Homebrew bumping the `tag`, `revision` & Xcode version + dependency if necessary. + See [homebrew#45651](https://github.com/Homebrew/homebrew/pull/45651) as an + example.