diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 07d1c61..9e36819 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -24,7 +24,7 @@ builds: #pre: # - /bin/sh -c "if [ ! -e ./goreleaser.go ]; then echo -e 'package main\\\nfunc main() { }' > ./goreleaser.go ; fi" post: - - ./.goreleaser_hook.sh {{ .Arch }} {{ .Os }} {{ .Arm }} {{ .ProjectName }} + - ./.goreleaser_hook.sh "{{ .Arch }}" "{{ .Os }}" "{{ .Arm }}" "{{ .ProjectName }}" checksum: name_template: "checksums.txt" changelog: diff --git a/.goreleaser_hook.sh b/.goreleaser_hook.sh index b6d0b79..6bff51a 100755 --- a/.goreleaser_hook.sh +++ b/.goreleaser_hook.sh @@ -20,7 +20,13 @@ case $go_os in esac # Find artifacts and uncompress in the coresponding directory -DIST_DIR=$(find dist -type d -name "*${go_os}_${go_arch}*${go_arm}*") +if [ -z "$go_arm" ] +then + DIST_DIR=$(find dist -type d -name "*${go_os}_${go_arch}*") +else + DIST_DIR=$(find dist -type d -name "*${go_os}_${go_arch}_${go_arm}*") +fi + echo "DIST_DIR: $DIST_DIR" rm -f ${DIST_DIR}/${project_name}* diff --git a/Cargo.lock b/Cargo.lock index f004536..3360ba9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1608,7 +1608,7 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "wstunnel" -version = "7.8.0" +version = "7.8.1" dependencies = [ "ahash", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index cbbd81c..63b17e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wstunnel" -version = "7.8.0" +version = "7.8.1" edition = "2021" repository = "https://github.com/erebe/wstunnel.git"