This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,22 @@ FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
6
6
ARG name
7
7
ARG version
8
8
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
+
9
24
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"
11
26
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
You can’t perform that action at this time.
0 commit comments