Skip to content

Commit a541ae8

Browse files
authored
Merge pull request #2861 from haskell/release-script-fixes
release script fixes
2 parents 6742c20 + eac10c0 commit a541ae8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.gitlab/ci.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ source "$CI_PROJECT_DIR/.gitlab/common.sh"
66

77
export GHCUP_INSTALL_BASE_PREFIX="$CI_PROJECT_DIR/toolchain"
88
export CABAL_DIR="$CI_PROJECT_DIR/cabal"
9+
EXE_EXTENSION = ""
910

1011
case "$(uname)" in
1112
MSYS_*|MINGW*)
1213
export CABAL_DIR="$(cygpath -w "$CABAL_DIR")"
1314
GHCUP_BINDIR="${GHCUP_INSTALL_BASE_PREFIX}/ghcup/bin"
15+
EXE_EXTENSION=".exe"
1416
;;
1517
*)
1618
GHCUP_BINDIR="${GHCUP_INSTALL_BASE_PREFIX}/.ghcup/bin"
@@ -74,8 +76,8 @@ case "$(uname)" in
7476

7577
mkdir "$CI_PROJECT_DIR/out"
7678

77-
cp "$(cabal list-bin ${args[@]} exe:hls)" "$CI_PROJECT_DIR/out/haskell-language-server-${GHC_VERSION}"
78-
cp "$(cabal list-bin ${args[@]} exe:hls-wrapper)" "$CI_PROJECT_DIR/out/haskell-language-server-wrapper"
79+
cp "$(cabal list-bin ${args[@]} exe:hls)" "$CI_PROJECT_DIR/out/haskell-language-server-${GHC_VERSION}"$EXE_EXTENSION
80+
cp "$(cabal list-bin ${args[@]} exe:hls-wrapper)" "$CI_PROJECT_DIR/out/haskell-language-server-wrapper"$EXE_EXTENSION
7981
;;
8082
*)
8183
emake --version

release/upload.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ fi
6565
function hash_files() {
6666
echo $(find -maxdepth 1 \
6767
-iname '*.xz' \
68+
-o -iname '*.gz' \
6869
-o -iname '*.lz' \
69-
-o -iname '*.bz2' \
7070
-o -iname '*.zip' \
7171
)
7272
echo $(find -maxdepth 1 -iname '*.patch')
@@ -120,7 +120,7 @@ function upload() {
120120
open -u hls-downloads: sftp://$host && \
121121
mirror -P20 -c --reverse --exclude=fetch-gitlab --exclude=out . hls/$dir && \
122122
wait all;"
123-
chmod ugo-w $(ls *.xz *.bz2 *.zip)
123+
chmod ugo-w $(ls *.xz *.gz *.zip)
124124
}
125125

126126
function purge_all() {

0 commit comments

Comments
 (0)