File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
codeserver/ubi9-python-3.12 Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ UNAME_TO_GOARCH["s390x"]="s390x"
17
17
18
18
ARCH=" ${UNAME_TO_GOARCH[$(uname -m)]} "
19
19
20
- if [[ " $ARCH " == " ppc64le" ]]; then
20
+ if [[ " $ARCH " == " amd64 " || " $ARCH " == " arm64 " || " $ARCH " == " ppc64le" ]]; then
21
21
22
22
export MAX_JOBS=${MAX_JOBS:- $(nproc)}
23
23
export NODE_VERSION=${NODE_VERSION:- 20}
@@ -72,11 +72,12 @@ if [[ "$ARCH" == "ppc64le" ]]; then
72
72
73
73
# build codeserver rpm
74
74
VERSION=${CODESERVER_VERSION/ v/ } npm run package
75
- cp release-packages/code-server-${CODESERVER_VERSION/ v/ } -ppc64le .rpm /tmp/
75
+ cp release-packages/code-server-${CODESERVER_VERSION/ v/ } -${ARCH} .rpm /tmp/
76
76
77
77
else
78
78
79
- # download RPM for other architectures
80
- curl -L " https://github.com/coder/code-server/releases/download/${CODESERVER_VERSION} /code-server-${CODESERVER_VERSION/ v/ } -${ARCH} .rpm" -o /tmp/code-server-${CODESERVER_VERSION/ v/ } -${ARCH} .rpm
79
+ # we shall not download rpm for other architectures
80
+ echo " Unsupported architecture: $ARCH " >&2
81
+ exit 1
81
82
82
83
fi
You can’t perform that action at this time.
0 commit comments