Skip to content

Commit

Permalink
chore: cleanup, compress archives
Browse files Browse the repository at this point in the history
  • Loading branch information
dreadl0ck committed Aug 22, 2021
1 parent 3f46772 commit 2dede5a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ package netcap
var Version = "v0.6.4"

// Commit is the git commit id of the current version.
var Commit = "b0c210fe4d4ebfd23bb09c0082fcfc5888c0a8ad"
var Commit = "3f46772f7696e23c51d4faff7530f9d9dac7ab5e"
12 changes: 5 additions & 7 deletions zeus/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,17 @@ commands:
gh release upload --clobber v$VERSION $f
done
cd dist
# create correct darwin archives
# TODO: fix goreleaser config
tar -cvf netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz dist/netcap_macOS_nodpi_darwin_amd64
mv netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz dist
tar -cvf netcap_v${VERSION}_darwin_amd64.tar.gz dist/netcap_darwin_amd64
mv netcap_v${VERSION}_darwin_amd64.tar.gz dist
tar -czvf netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz netcap_macOS_nodpi_darwin_amd64
tar -czvf netcap_${VERSION}_darwin_amd64.tar.gz netcap_darwin_amd64
# upload
gh release upload --clobber v$VERSION dist/netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz
gh release upload --clobber v$VERSION dist/netcap_${VERSION}_darwin_amd64.tar.gz
gh release upload --clobber v$VERSION netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz
gh release upload --clobber v$VERSION netcap_${VERSION}_darwin_amd64.tar.gz
# update checksums file
cd dist
shasum -a 256 netcap_nodpi_v${VERSION}_darwin_amd64.tar.gz >> ../dist-linux/checksums.txt
shasum -a 256 netcap_${VERSION}_darwin_amd64.tar.gz >> ../dist-linux/checksums.txt
cd ..
Expand Down
2 changes: 1 addition & 1 deletion zeus/scripts/build-alpine-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ cp README.md dist-linux/${ARCHIVE}
cd dist-linux

# create tar archive for linux
tar -cvf ${ARCHIVE}.tar.gz ${ARCHIVE}
tar -czvf ${ARCHIVE}.tar.gz ${ARCHIVE}

# add checksum
# goreleaser will truncate the checksums.txt file upon opening
Expand Down
2 changes: 1 addition & 1 deletion zeus/scripts/build-ubuntu-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ cp README.md dist-linux/${ARCHIVE}
cd dist-linux

# create tar archive for linux
tar -cvf ${ARCHIVE}.tar.gz ${ARCHIVE}
tar -czvf ${ARCHIVE}.tar.gz ${ARCHIVE}

# add checksum - goreleaser needs to be patched for this to work
# by default the checksums.txt file is truncated when being opened
Expand Down

0 comments on commit 2dede5a

Please sign in to comment.