mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
move brew formula to homebrew core
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
class Xcodegen < Formula
|
||||
desc "Tool that generates your Xcode project from a project spec"
|
||||
homepage "https://github.com/yonaskolb/XcodeGen"
|
||||
url "https://github.com/yonaskolb/XcodeGen/archive/1.10.3.tar.gz"
|
||||
sha256 "30944e90b9855ff893c6581e0d6dcdf7e8ab2c0c5edadacba7fb5ce27164975a"
|
||||
head "https://github.com/yonaskolb/XcodeGen.git"
|
||||
|
||||
depends_on :xcode
|
||||
|
||||
def install
|
||||
|
||||
# fixes an issue an issue in homebrew when both Xcode 9.3+ and command line tools are installed
|
||||
# see more details here https://github.com/Homebrew/brew/pull/4147
|
||||
# remove this once homebrew is patched
|
||||
ENV["CC"] = Utils.popen_read("xcrun -find clang").chomp
|
||||
|
||||
# step 2: usual build
|
||||
system "make", "install", "PREFIX=#{prefix}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"xcodegen.yml").write <<-EOS.undent
|
||||
name: GeneratedProject
|
||||
targets:
|
||||
TestProject:
|
||||
type: application
|
||||
platform: iOS
|
||||
sources: TestProject
|
||||
settings:
|
||||
PRODUCT_BUNDLE_IDENTIFIER: com.test
|
||||
PRODUCT_NAME: TestProject
|
||||
EOS
|
||||
Dir.mkdir(File.join(testpath, "TestProject"))
|
||||
system("#{bin}/XcodeGen --spec #{File.join(testpath, "xcodegen.yml")}")
|
||||
system("xcodebuild --project #{File.join(testpath, "GeneratedProject.xcodeproj")}")
|
||||
end
|
||||
end
|
||||
@@ -6,7 +6,7 @@ PREFIX = /usr/local
|
||||
INSTALL_PATH = $(PREFIX)/bin/$(EXECUTABLE_NAME)
|
||||
SHARE_PATH = $(PREFIX)/share/$(EXECUTABLE_NAME)
|
||||
CURRENT_PATH = $(PWD)
|
||||
REPO = https://github.com/yonaskolb/$(EXECUTABLE_NAME)
|
||||
REPO = https://github.com/yonaskolb/$(TOOL_NAME)
|
||||
RELEASE_TAR = $(REPO)/archive/$(VERSION).tar.gz
|
||||
SHA = $(shell curl -L -s $(RELEASE_TAR) | shasum -a 256 | sed 's/ .*//')
|
||||
|
||||
@@ -43,5 +43,11 @@ release: format_code
|
||||
git commit -m "Update to $(VERSION)"
|
||||
git tag $(VERSION)
|
||||
|
||||
publish: archive bump_brew
|
||||
echo "published $(VERSION)"
|
||||
|
||||
bump_brew:
|
||||
brew bump-formula-pr --url=$(RELEASE_TAR) Mint
|
||||
|
||||
archive: build
|
||||
./scripts/archive.sh
|
||||
|
||||
@@ -79,8 +79,7 @@ make
|
||||
### Homebrew
|
||||
|
||||
```shell
|
||||
brew tap yonaskolb/XcodeGen https://github.com/yonaskolb/XcodeGen.git
|
||||
brew install XcodeGen
|
||||
brew install xcodegen
|
||||
```
|
||||
|
||||
### Swift Package Manager
|
||||
|
||||
+1
-1
@@ -9,4 +9,4 @@
|
||||
1. Push commit and tag to github
|
||||
1. Create release from tag on Github using the version number and relevant changelog contents
|
||||
1. Run `make archive` and upload `xcodegen.zip` to the github release
|
||||
1. Run `make update_brew` and push to github
|
||||
1. Run `make bump_brew` which will open a PR on homebrew core
|
||||
|
||||
Reference in New Issue
Block a user