Skip to content

Commit

Permalink
fix(build): update homebrew paths
Browse files Browse the repository at this point in the history
- archive URL must include the 'refs/tags' part
- the formula is now inside a `s` folder
  • Loading branch information
Liquidsoul committed Mar 15, 2024
1 parent 6c5332a commit d1394bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rakelib/release.rake
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ namespace :release do
Utils.print_header 'Updating Homebrew Formula'

tag = Utils.podspec_version(POD_NAME)
archive_url = "https://github.com/SwiftGen/SwiftGen/archive/#{tag}.tar.gz"
archive_url = "https://github.com/SwiftGen/SwiftGen/archive/refs/tags/#{tag}.tar.gz"
digest = Digest::SHA256.hexdigest URI.open(archive_url).read

formulas_dir = Bundler.with_original_env { `brew --repository homebrew/core`.chomp }
Expand All @@ -186,7 +186,7 @@ namespace :release do
sh 'git pull'
sh "git checkout -b swiftgen-#{tag} origin/master"

formula_file = "#{formulas_dir}/Formula/swiftgen.rb"
formula_file = "#{formulas_dir}/Formula/s/swiftgen.rb"
formula = File.read(formula_file)

new_formula = formula
Expand Down

0 comments on commit d1394bd

Please sign in to comment.