Skip to content

Commit 0c70a2f

Browse files
committed
Add exe extension to win executables
1 parent ba46353 commit 0c70a2f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,14 @@ jobs:
6565
run: |
6666
HLS_BUILD=$(find dist-newstyle \( -name 'hls' -o -name 'hls.exe' \) -type f)
6767
HLS=haskell-language-server-$GHC_VER
68-
mv $HLS_BUILD $HLS
6968
if [[ "$OSTYPE" == "msys" ]]; then
70-
7z a $HLS.zip $HLS
69+
mv $HLS_BUILD $HLS.exe
70+
7z a $HLS.zip $HLS.exe
7171
echo ::set-output name=path::$HLS.zip
7272
echo ::set-output name=content_type::application/zip
7373
echo ::set-output name=extension::zip
7474
else
75+
mv $HLS_BUILD $HLS
7576
gzip --best $HLS
7677
echo ::set-output name=path::$HLS.gz
7778
echo ::set-output name=content_type::application/gzip
@@ -103,13 +104,14 @@ jobs:
103104
run: |
104105
HLS_WRAPPER_BUILD=$(find dist-newstyle \( -name 'hls-wrapper' -o -name 'hls-wrapper.exe' \) -type f)
105106
HLS_WRAPPER=haskell-language-server-wrapper
106-
mv $HLS_WRAPPER_BUILD $HLS_WRAPPER
107107
if [[ "$OSTYPE" == "msys" ]]; then
108-
7z a $HLS_WRAPPER.zip $HLS_WRAPPER
108+
mv $HLS_WRAPPER_BUILD $HLS_WRAPPER.exe
109+
7z a $HLS_WRAPPER.zip $HLS_WRAPPER.exe
109110
echo ::set-output name=path::$HLS_WRAPPER.zip
110111
echo ::set-output name=content_type::application/zip
111112
echo ::set-output name=extension::zip
112113
else
114+
mv $HLS_WRAPPER_BUILD $HLS_WRAPPER
113115
gzip --best $HLS_WRAPPER
114116
echo ::set-output name=path::$HLS_WRAPPER.gz
115117
echo ::set-output name=content_type::application/gzip

0 commit comments

Comments
 (0)