diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index af1d7e14..8d20ea6b 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -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 < $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