From 9fcc074af39f0c88313179eacc3b2a8dd32e94f3 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 5 Sep 2018 21:46:55 +0300 Subject: initial --- setup-linux.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 setup-linux.sh (limited to 'setup-linux.sh') diff --git a/setup-linux.sh b/setup-linux.sh new file mode 100755 index 0000000..64da971 --- /dev/null +++ b/setup-linux.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +fix_cacerts() { + cd sdk_tools/ + mv cacerts.txt cacerts.txt.old + wget https://gist.githubusercontent.com/OrcaXS/df9db730a12f7e1f8b713cd3761de2c5/raw/52d9216cb8577050668ef9f6f58947be913d83b0/cacerts.txt + cd .. + + ./naclsdk list +} + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR + +wget https://github.com/electron/electron/releases/download/v1.8.8/electron-v1.8.8-linux-x64.zip +wget https://storage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_sdk.zip + +unzip nacl_sdk.zip +unzip -d electron electron-v1.8.8-linux-x64.zip + +cd nacl_sdk + +# gentoo fix +export EPYTHON=python2.7 + +# twice +fix_cacerts +fix_cacerts + +./naclsdk update -- cgit v1.2.3