diff options
author | Evgeny Zinoviev <me@ch1p.com> | 2018-09-05 21:46:55 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.com> | 2018-09-05 21:46:55 +0300 |
commit | 9fcc074af39f0c88313179eacc3b2a8dd32e94f3 (patch) | |
tree | d7422e669f584414f2d9274745206141fb93272d /setup-macos.sh |
initial
Diffstat (limited to 'setup-macos.sh')
-rwxr-xr-x | setup-macos.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/setup-macos.sh b/setup-macos.sh new file mode 100755 index 0000000..88378c6 --- /dev/null +++ b/setup-macos.sh @@ -0,0 +1,26 @@ +#!/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-win32-x64.zip || exit +wget https://storage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_sdk.zip || exit + +unzip nacl_sdk.zip +unzip electron-v1.8.8-darwin-x64.zip + +cd nacl_sdk + +fix_cacerts + +./naclsdk update |