Rebuild electron

This commit is contained in:
Bob Mottram 2017-09-15 19:21:09 +01:00
parent 338dbbe3f9
commit 44d8d33d56
1 changed files with 9 additions and 5 deletions

View File

@ -561,18 +561,22 @@ INSTALL_DIR=$HOME/build
INSTALLING_MESH= INSTALLING_MESH=
PATCHWORK_REPO="https://github.com/ssbc/patchwork"
PATCHWORK_COMMIT='25cb5fbe705ef585e23e59387689122668c9c1b3'
install_patchwork() { install_patchwork() {
get_npm_arch get_npm_arch
git clone https://github.com/ssbc/patchwork $rootdir/etc/patchwork git clone $PATCHWORK_REPO $rootdir/etc/patchwork
cd $rootdir/etc/patchwork
git checkout $PATCHWORK_COMMIT -b $PATCHWORK_COMMIT
cat <<EOF > $rootdir/usr/bin/install_patchwork cat <<EOF > $rootdir/usr/bin/install_patchwork
#!/bin/bash #!/bin/bash
cd /etc/patchwork cd /etc/patchwork
npm install --arch=$NPM_ARCH electron npm install --arch=$NPM_ARCH --build-from-source
npm install --arch=$NPM_ARCH npm install --arch=$NPM_ARCH --save-dev electron-rebuild
#npm rebuild --arch=$NPM_ARCH leveldown ./node_modules/.bin/electron-rebuild
npm rebuild --arch=$NPM_ARCH
EOF EOF
chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork
chroot "$rootdir" /usr/bin/install_patchwork chroot "$rootdir" /usr/bin/install_patchwork