Browse Source

remove .exe from release (#144)

Clément DOUIN 4 years ago
parent
commit
2a8f576d45
3 changed files with 10 additions and 4 deletions
  1. 4 3
      .github/workflows/deployment.yaml
  2. 5 0
      CHANGELOG.md
  3. 1 1
      install.sh

+ 4 - 3
.github/workflows/deployment.yaml

@@ -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
-      - 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
         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

+ 5 - 0
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
   - `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

+ 1 - 1
install.sh

@@ -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