From 2a8f576d45c6719e7618b5ebc22fd5f8f1842e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Sat, 8 May 2021 22:31:35 +0200 Subject: [PATCH] remove .exe from release (#144) --- .github/workflows/deployment.yaml | 7 ++++--- CHANGELOG.md | 5 +++++ install.sh | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index 7a53cbc..40c9b73 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -50,10 +50,11 @@ jobs: with: command: build args: --release - - name: Rename executable + - name: Compress executable (unix) if: matrix.os_name == 'linux' || matrix.os_name == 'macos' - run: mv target/release/himalaya target/release/himalaya.exe - - name: Compress executable + run: tar czf himalaya.tar.gz -C target/release himalaya + - name: Compress executable (windows) + if: matrix.os_name == 'windows' run: tar czf himalaya.tar.gz -C target/release himalaya.exe - name: Upload release asset uses: actions/upload-release-asset@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 44e3ecd..edbf6db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `notify`: Runs `notify-cmd` when a new message arrives to the server - `watch`: Runs `watch-cmds` when any change occurs on the server +### Removed + +- `.exe` extension from release binaries [#144] + ## [0.3.1] - 2021-05-04 ### Added @@ -259,3 +263,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#136]: https://github.com/soywod/himalaya/issues/136 [#138]: https://github.com/soywod/himalaya/issues/138 [#141]: https://github.com/soywod/himalaya/issues/141 +[#144]: https://github.com/soywod/himalaya/issues/144 diff --git a/install.sh b/install.sh index 48b095b..b7ccc73 100644 --- a/install.sh +++ b/install.sh @@ -31,6 +31,6 @@ echo "Installing binary…" tar -xzf "$tmpdir/himalaya.tar.gz" -C "$tmpdir" mkdir -p "$PREFIX/bin" -cp -f -- "$tmpdir/himalaya.exe" "$PREFIX/bin/himalaya" +cp -f -- "$tmpdir/himalaya*" "$PREFIX/bin/" die "$("$PREFIX/bin/himalaya" --version) installed!" 0