From 85cbf139cbd722db89edeff38e1e7de9673bc192 Mon Sep 17 00:00:00 2001 From: FriwiDev Date: Mon, 25 Oct 2021 12:32:26 +0200 Subject: [PATCH] Fix architectures --- scripts/run_linux.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/run_linux.sh b/scripts/run_linux.sh index 8259d11..2f3b4ac 100644 --- a/scripts/run_linux.sh +++ b/scripts/run_linux.sh @@ -2,8 +2,7 @@ set -e # Determine architecture -MACHINE_TYPE=`uname -m` -echo "Building for architecture $MACHINE_TYPE" +echo "Building for architecture $TARGETARCH" if [ ! -f "/jcef/README.md" ]; then echo "Did not find existing files to build - cloning..." @@ -28,7 +27,7 @@ ninja -j4 #Compile JCEF java classes cd ../tools chmod +x compile.sh -if [ ${MACHINE_TYPE} == 'x86_64' ]; then +if [ ${TARGETARCH} == 'amd64' ]; then ./compile.sh linux64 else ./compile.sh linux32 @@ -36,7 +35,7 @@ fi #Generate distribution chmod +x make_distrib.sh -if [ ${MACHINE_TYPE} == 'x86_64' ]; then +if [ ${TARGETARCH} == 'amd64' ]; then ./make_distrib.sh linux64 else ./make_distrib.sh linux32