2
0
Эх сурвалжийг харах

export npm_config_target_arch instead of npm_config_arch on arm64

JL2210 6 жил өмнө
parent
commit
7b764d5c5b
2 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 2 0
      build.sh
  2. 1 0
      install_deps.sh

+ 2 - 0
build.sh

@@ -6,10 +6,12 @@ if [[ "$SHOULD_BUILD" == "yes" ]]; then
 
   if [[ "$BUILDARCH" == "ia32" ]]; then
     export npm_config_arch=ia32
+    export npm_config_target_arch=ia32
   fi
 
   if [[ "$BUILDARCH" == "arm64" ]]; then
     export npm_config_arch=arm64
+    export npm_config_target_arch=arm64
   fi
 
   ../update_settings.sh

+ 1 - 0
install_deps.sh

@@ -17,6 +17,7 @@ else
     export CC_host=/usr/bin/gcc
     export CXX_host=/usr/bin/g++
   elif [[ $BUILDARCH == "arm64" ]]; then
+    echo "deb http://ports.ubuntu.com/ubuntu-ports/ trusty main" | sudo tee -a /etc/apt/sources.list.d/arm64.list >/dev/null
     sudo dpkg --add-architecture arm64
     sudo apt-get update
     sudo apt-get install libc6-dev-arm64-cross gcc-aarch64-linux-gnu g++-aarch64-linux-gnu