Skip to content

Commit

Permalink
Change extension of the tarball.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Sep 20, 2024
1 parent 3b9f950 commit bbab9f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
run: |
mkdir -p distributable
mv ruby-with-python.pkg distributable/
mv ruby-with-python.tgz distributable/
mv ruby-with-python.tar.gz distributable/
# Upload build artifact
- name: Upload artifact
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Test
run: |
mkdir distributable
tar -xvzf ruby-with-python.tgz -C `pwd`/distributable
tar -xvzf ruby-with-python.tar.gz -C `pwd`/distributable
DARWIN_VERSION=$(sw_vers -productVersion | cut -d '.' -f 1)
if [ "$(uname -m)" = "arm64" ]; then
sudo cp -R `pwd`/distributable/opt/homebrew/ /opt/homebrew/
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
# - name: Test
# run: |
# mkdir distributable
# tar -xvzf ruby-with-python.tgz -C `pwd`/distributable
# tar -xvzf ruby-with-python.tar.gz -C `pwd`/distributable
# DARWIN_VERSION=$(sw_vers -productVersion | cut -d '.' -f 1)
# if [ "$(uname -m)" = "arm64" ]; then
# INSTALL_DIR="`pwd`/distributable/opt/homebrew"
Expand Down
2 changes: 1 addition & 1 deletion brew-pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def pkg

# Zip it
if options[:compress]
tgzfile = "#{options[:package_name]}.tgz"
tgzfile = "#{options[:package_name]}.tar.gz"
ohai "Compressing package #{tgzfile}"
args = [ "-czf", tgzfile, "-C", options[:output_dir], "." ]
safe_system "tar", *args
Expand Down
12 changes: 6 additions & 6 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ brew install --verbose --HEAD metacall/brew-pkg/brew-pkg
# Test Python with dependencies, compress and custom output tarball name
brew install [email protected]
brew pkg --name python --with-deps --compress [email protected]
test -f python.tgz
test -f python.tar.gz
test -f python.pkg
# tar -ztvf python.tgz
# tar -ztvf python.tar.gz

brew pkg --name python-without-deps --compress [email protected]
test -f python-without-deps.tgz
test -f python-without-deps.tar.gz
test -f python-without-deps.pkg
# tar -ztvf python-without-deps.tgz
# tar -ztvf python-without-deps.tar.gz

brew install [email protected]
brew pkg --name ruby-with-python --compress --relocatable --additional-deps [email protected] [email protected]
test -f ruby-with-python.tgz
test -f ruby-with-python.tar.gz
test -f ruby-with-python.pkg
# tar -ztvf ruby-with-python.tgz
# tar -ztvf ruby-with-python.tar.gz

# Debug files and sizes
ls -lh

0 comments on commit bbab9f3

Please sign in to comment.