@@ -20,10 +20,6 @@ def portable_package_args
2020 description : "Remove `rebuild`."
2121 switch "--keep-old" ,
2222 description : "Attempt to keep `rebuild` at its original value."
23- switch "--write" ,
24- description : "Write the changes to the formula file."
25- switch "--no-commit" ,
26- description : "Don't commit changes to the formula file."
2723 switch "-v" , "--verbose" ,
2824 description : "Pass `--verbose` to `brew` commands."
2925 conflicts "--no-rebuild" , "--keep-old"
@@ -34,12 +30,11 @@ def portable_package_args
3430 def portable_package
3531 args = portable_package_args . parse
3632
37- raise UsageError , "--no-commit requires --write!" if !args . write? && args . no_commit?
38-
3933 ENV [ "HOMEBREW_DEVELOPER" ] = "1"
4034
4135 verbose = [ ]
4236 verbose << "--verbose" if args . verbose?
37+ verbose << "--debug" if args . debug?
4338
4439 args . named . each do |name |
4540 name = "portable-#{ name } " unless name . start_with? "portable-"
@@ -56,11 +51,13 @@ def portable_package
5651 safe_system "brew" , "test" , *verbose , name
5752 puts "Linkage information:"
5853 safe_system "brew" , "linkage" , *verbose , name
59- bottle_args = %w[ --skip-relocation ]
54+ bottle_args = %w[
55+ --skip-relocation
56+ --root-url=https://ghcr.io/v2/homebrew/portable-ruby
57+ --json
58+ ]
6059 bottle_args << "--no-rebuild" if args . no_rebuild?
6160 bottle_args << "--keep-old" if args . keep_old?
62- bottle_args << "--write" if args . write?
63- bottle_args << "--no-commit" if args . no_commit?
6461 safe_system "brew" , "bottle" , *verbose , *bottle_args , name
6562 Pathname . glob ( "*.bottle*.tar.gz" ) do |bottle_filename |
6663 bottle_file = bottle_filename . realpath
0 commit comments