mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix: update build scripts for mac (#7104)
This commit is contained in:
parent
f26e1fa21b
commit
ebc0a8c772
3 changed files with 21 additions and 10 deletions
|
@ -11,14 +11,11 @@ ARCH=$2
|
|||
HELM_VERSION=$3
|
||||
HELM_DIST="helm-$HELM_VERSION-$PLATFORM-$ARCH"
|
||||
|
||||
if [[ ${PLATFORM} == "linux" ]]; then
|
||||
|
||||
if [[ ${PLATFORM} == "windows" ]]; then
|
||||
wget -O tmp.zip "https://get.helm.sh/${HELM_DIST}.zip" && unzip -o -j tmp.zip "${PLATFORM}-${ARCH}/helm.exe" -d dist && rm -f tmp.zip
|
||||
else
|
||||
wget -qO- "https://get.helm.sh/${HELM_DIST}.tar.gz" | tar -x -z --strip-components 1 "${PLATFORM}-${ARCH}/helm"
|
||||
mv "helm" "dist/helm"
|
||||
chmod +x "dist/helm"
|
||||
elif [[ ${PLATFORM} == "darwin" ]]; then
|
||||
wget -qO- "https://get.helm.sh/helm-canary-darwin-amd64.tar.gz" | tar -x -z --strip-components 1 "darwin-amd64/helm"
|
||||
mv "helm" "dist/helm"
|
||||
chmod +x "dist/helm"
|
||||
elif [[ ${PLATFORM} == "windows" ]]; then
|
||||
wget -O tmp.zip "https://get.helm.sh/${HELM_DIST}.zip" && unzip -o -j tmp.zip "${PLATFORM}-${ARCH}/helm.exe" -d dist && rm -f tmp.zip
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue