Skip to content

Commit bbab9f3

Browse files
committed
Change extension of the tarball.
1 parent 3b9f950 commit bbab9f3

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
mkdir -p distributable
7474
mv ruby-with-python.pkg distributable/
75-
mv ruby-with-python.tgz distributable/
75+
mv ruby-with-python.tar.gz distributable/
7676
7777
# Upload build artifact
7878
- name: Upload artifact
@@ -104,7 +104,7 @@ jobs:
104104
- name: Test
105105
run: |
106106
mkdir distributable
107-
tar -xvzf ruby-with-python.tgz -C `pwd`/distributable
107+
tar -xvzf ruby-with-python.tar.gz -C `pwd`/distributable
108108
DARWIN_VERSION=$(sw_vers -productVersion | cut -d '.' -f 1)
109109
if [ "$(uname -m)" = "arm64" ]; then
110110
sudo cp -R `pwd`/distributable/opt/homebrew/ /opt/homebrew/
@@ -148,7 +148,7 @@ jobs:
148148
# - name: Test
149149
# run: |
150150
# mkdir distributable
151-
# tar -xvzf ruby-with-python.tgz -C `pwd`/distributable
151+
# tar -xvzf ruby-with-python.tar.gz -C `pwd`/distributable
152152
# DARWIN_VERSION=$(sw_vers -productVersion | cut -d '.' -f 1)
153153
# if [ "$(uname -m)" = "arm64" ]; then
154154
# INSTALL_DIR="`pwd`/distributable/opt/homebrew"

brew-pkg.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def pkg
254254

255255
# Zip it
256256
if options[:compress]
257-
tgzfile = "#{options[:package_name]}.tgz"
257+
tgzfile = "#{options[:package_name]}.tar.gz"
258258
ohai "Compressing package #{tgzfile}"
259259
args = [ "-czf", tgzfile, "-C", options[:output_dir], "." ]
260260
safe_system "tar", *args

test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ brew install --verbose --HEAD metacall/brew-pkg/brew-pkg
1414
# Test Python with dependencies, compress and custom output tarball name
1515
brew install [email protected]
1616
brew pkg --name python --with-deps --compress [email protected]
17-
test -f python.tgz
17+
test -f python.tar.gz
1818
test -f python.pkg
19-
# tar -ztvf python.tgz
19+
# tar -ztvf python.tar.gz
2020

2121
brew pkg --name python-without-deps --compress [email protected]
22-
test -f python-without-deps.tgz
22+
test -f python-without-deps.tar.gz
2323
test -f python-without-deps.pkg
24-
# tar -ztvf python-without-deps.tgz
24+
# tar -ztvf python-without-deps.tar.gz
2525

2626
brew install [email protected]
2727
brew pkg --name ruby-with-python --compress --relocatable --additional-deps [email protected] [email protected]
28-
test -f ruby-with-python.tgz
28+
test -f ruby-with-python.tar.gz
2929
test -f ruby-with-python.pkg
30-
# tar -ztvf ruby-with-python.tgz
30+
# tar -ztvf ruby-with-python.tar.gz
3131

3232
# Debug files and sizes
3333
ls -lh

0 commit comments

Comments
 (0)