Skip to content

Commit 3c16668

Browse files
committed
fix "arm64" download arch for spc binary
1 parent e512195 commit 3c16668

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build-static.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@ fi
153153
if [ "${SPC_REL_TYPE}" = "binary" ]; then
154154
mkdir -p static-php-cli/
155155
cd static-php-cli/
156-
curl -o spc -fsSL "https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-${arch}"
156+
if [[ "${arch}" =~ "arm" ]]; then
157+
dl_arch="aarch64"
158+
else
159+
dl_arch="${arch}"
160+
fi
161+
curl -o spc -fsSL "https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-${dl_arch}"
157162
chmod +x spc
158163
spcCommand="./spc"
159164
elif [ -d "static-php-cli/src" ]; then

0 commit comments

Comments
 (0)