Skip to content

Commit

Permalink
Merge pull request #56 from wakatime/bugfix/release-zips
Browse files Browse the repository at this point in the history
Include all files in release artifacts
  • Loading branch information
alanhamlett authored Oct 18, 2024
2 parents 1aef135 + 564bd40 commit a7313e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: artifacts-linux
path: release/wakatime-linux-*.AppImage
path: release/*
-
name: Remove tag if failure
if: ${{ failure() }}
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: artifacts-windows
path: release/wakatime-win32-*.exe
path: release/*
-
name: Remove tag if failure
if: ${{ failure() }}
Expand Down
23 changes: 2 additions & 21 deletions bin/prepare_assets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,9 @@ if ! [ -d "./release" ]; then
mkdir ./release
fi

# ensure zip is installed
if [ "$(which zip)" = "" ]; then
apt-get update && apt-get install -y zip
fi

# add execution permission
chmod 750 ./release/wakatime-linux-x86_64.AppImage
chmod 750 ./release/wakatime-linux-arm64.AppImage
chmod 750 ./release/wakatime-win32-x64.exe
chmod 750 ./release/wakatime-win32-arm64.exe

# create archives
zip -j ./release/wakatime-linux-x86_64.zip ./release/wakatime-linux-x86_64.AppImage
zip -j ./release/wakatime-linux-arm64.zip ./release/wakatime-linux-arm64.AppImage
zip -j ./release/wakatime-win32-x64.zip ./release/wakatime-win32-x64.exe
zip -j ./release/wakatime-win32-arm64.zip ./release/wakatime-win32-arm64.exe

# remove executables
rm ./release/wakatime-linux-x86_64.AppImage
rm ./release/wakatime-linux-arm64.AppImage
rm ./release/wakatime-win32-x64.exe
rm ./release/wakatime-win32-arm64.exe
chmod 750 ./release/*.AppImage
chmod 750 ./release/*.exe

# calculate checksums
for file in ./release/*; do
Expand Down

0 comments on commit a7313e6

Please sign in to comment.