remove .exe from release (#144)

This commit is contained in:
Clément DOUIN 2021-05-08 22:31:35 +02:00
parent ccfc3b0d6e
commit 2a8f576d45
No known key found for this signature in database
GPG key ID: 69C9B9CFFDEE2DEF
3 changed files with 10 additions and 4 deletions

View file

@ -50,10 +50,11 @@ jobs:
with: with:
command: build command: build
args: --release args: --release
- name: Rename executable - name: Compress executable (unix)
if: matrix.os_name == 'linux' || matrix.os_name == 'macos' if: matrix.os_name == 'linux' || matrix.os_name == 'macos'
run: mv target/release/himalaya target/release/himalaya.exe run: tar czf himalaya.tar.gz -C target/release himalaya
- name: Compress executable - name: Compress executable (windows)
if: matrix.os_name == 'windows'
run: tar czf himalaya.tar.gz -C target/release himalaya.exe run: tar czf himalaya.tar.gz -C target/release himalaya.exe
- name: Upload release asset - name: Upload release asset
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1

View file

@ -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 - `notify`: Runs `notify-cmd` when a new message arrives to the server
- `watch`: Runs `watch-cmds` when any change occurs on 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 ## [0.3.1] - 2021-05-04
### Added ### 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 [#136]: https://github.com/soywod/himalaya/issues/136
[#138]: https://github.com/soywod/himalaya/issues/138 [#138]: https://github.com/soywod/himalaya/issues/138
[#141]: https://github.com/soywod/himalaya/issues/141 [#141]: https://github.com/soywod/himalaya/issues/141
[#144]: https://github.com/soywod/himalaya/issues/144

View file

@ -31,6 +31,6 @@ echo "Installing binary…"
tar -xzf "$tmpdir/himalaya.tar.gz" -C "$tmpdir" tar -xzf "$tmpdir/himalaya.tar.gz" -C "$tmpdir"
mkdir -p "$PREFIX/bin" 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 die "$("$PREFIX/bin/himalaya" --version) installed!" 0