Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 4882f4d

Browse files
committed
Fixed arch suffixes
1 parent 96976e3 commit 4882f4d

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

tools/supdock/Dockerfile.template

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
66
ARG name
77
ARG version
88
RUN <<EOF
9+
echo "### Setting architecture string for ${TARGETPLATFORM}"
10+
case "${arch}" in
11+
x86_64)
12+
export arch_suffix="${alt_arch}"
13+
;;
14+
aarch64)
15+
export arch_suffix="${arch}"
16+
;;
17+
*)
18+
echo "ERROR: Unsupported architecture ${arch}."
19+
exit 1
20+
;;
21+
esac
22+
echo " Using ${arch_suffix}"
23+
924
curl --silent --location --fail --output "${prefix}${target}/bin/supdock" \
10-
"https://github.com/segersniels/supdock/releases/download/${version}/supdock-${alt_arch}-linux"
25+
"https://github.com/segersniels/supdock/releases/download/${version}/supdock-${arch_suffix}-linux"
1126
chmod +x "${prefix}${target}/bin/supdock"
12-
EOF
13-
14-
# completion
15-
#RUN <<EOF
16-
#"${prefix}${target}/bin/foo" completion bash >"${prefix}${target}/share/bash-completion/completions/foo"
17-
#"${prefix}${target}/bin/foo" completion fish >"${prefix}${target}/share/fish/vendor_completions.d/foo.fish"
18-
#"${prefix}${target}/bin/foo" completion zsh >"${prefix}${target}/share/zsh/vendor-completions/_foo"
19-
#EOF
27+
EOF

0 commit comments

Comments
 (0)