summaryrefslogtreecommitdiff
path: root/setup-macos.sh
blob: 89a41bb9bf881186e9879e963227e7b6176eca0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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-darwin-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