Rebuild electron
This commit is contained in:
parent
338dbbe3f9
commit
44d8d33d56
|
@ -561,18 +561,22 @@ INSTALL_DIR=$HOME/build
|
|||
|
||||
INSTALLING_MESH=
|
||||
|
||||
PATCHWORK_REPO="https://github.com/ssbc/patchwork"
|
||||
PATCHWORK_COMMIT='25cb5fbe705ef585e23e59387689122668c9c1b3'
|
||||
|
||||
install_patchwork() {
|
||||
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
|
||||
#!/bin/bash
|
||||
cd /etc/patchwork
|
||||
npm install --arch=$NPM_ARCH electron
|
||||
npm install --arch=$NPM_ARCH
|
||||
#npm rebuild --arch=$NPM_ARCH leveldown
|
||||
npm rebuild --arch=$NPM_ARCH
|
||||
npm install --arch=$NPM_ARCH --build-from-source
|
||||
npm install --arch=$NPM_ARCH --save-dev electron-rebuild
|
||||
./node_modules/.bin/electron-rebuild
|
||||
EOF
|
||||
chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork
|
||||
chroot "$rootdir" /usr/bin/install_patchwork
|
||||
|
|
Loading…
Reference in New Issue