wstunnel/.goreleaser_hook.sh
Σrebe - Romain GERARD 928f611a86 Bump
Former-commit-id: 3804e8f1ee3d9752745ca811d78300e6f4a13c83 [formerly 2cdcdefe21b1f8537378c58995c3ed9aa6891e0d] [formerly ad0d389ba3f21f614581c0ea51e1fa4701cb629f [formerly 4c41fadda7d5b69473461f28a14e0ebdbb737f9f]]
Former-commit-id: af2fccde8822ff106b887835692de63c43d3d212 [formerly 183f377e83505f5f072361f44e7ff4d38c25abee]
Former-commit-id: 840d988cba7c08ab0f596d7b699c240ab09d8eb1
Former-commit-id: e8c7d65d4f9c6a386ba5adc8c9111d53076d9cbb
Former-commit-id: 5dc739a5541045de1dcec464fbe3ed18870084a1
Former-commit-id: a8d331a021d274cb8ecf5bebb7394c4bddb34e74 [formerly ab4b0438db52fc2d47e2c5f4735e98374333c8e7]
Former-commit-id: 2d0b4f65523fcfe2df4bc058c4fb4beea76aa261
2023-10-18 16:54:09 +02:00

25 lines
592 B
Bash
Executable file

#!/usr/bin/env bash
#
set -ex
go_arch=$1
go_os=$2
project_name=$3
case $go_arch in
amd64) rust_arch='x86_64' ;;
arm64) rust_arch='aarch64' ;;
armv7) rust_arch='armv7' ;;
*) echo "unknown arch: $go_arch" && exit 1 ;;
esac
case $go_os in
linux) rust_os='linux' ;;
darwin) rust_os='apple-darwin' ;;
windows) rust_os='windows' ;;
*) echo "unknown os: $go_os" && exit 1 ;;
esac
# Find artifacts and uncompress in the corresponding directory
find artifacts -type f -name "*${rust_arch}*${rust_os}*" -exec unzip -d dist/${project_name}_${go_os}_${go_arch} {} \;