Permalink
Browse files

Pass node_modules/ and electron zip

This builds the Electron application but is specific for Linux 64.
  • Loading branch information...
manuq committed Jun 1, 2017
1 parent 1136ce0 commit d36b6f31b34051d9608718530708d56ed13f85fb
Showing with 23 additions and 1 deletion.
  1. +4 −1 Makefile
  2. +7 −0 electron/bundle-npm-deps.sh
  3. +12 −0 org.sugarizer.Sugarizer.json
View
@@ -1,7 +1,10 @@
all:
mkdir -p `npm config get cache`
tar -zxf npm-cache.tgz -C `npm config get cache`
cd electron && npm install --offline
tar -zxf node-modules.tgz
mkdir -p ~/.electron
cp electron-v1.6.10-linux-x64.zip ~/.electron
cp SHASUMS256.txt-1.6.10 ~/.electron
cd electron && npm run pack
install:
@@ -35,3 +35,10 @@ pushd cache
tar -zcf ../npm-cache.tgz *
popd
$npm5 config set cache ${ORIG_CACHE}
echo "Bundling node_modules/..."
tar -zcf node-modules.tgz node_modules/
wget https://github.com/electron/electron/releases/download/v1.6.10/electron-v1.6.10-linux-x64.zip
wget https://github.com/electron/electron/releases/download/v1.6.10/SHASUMS256.txt
mv SHASUMS256.txt SHASUMS256.txt-1.6.10
@@ -66,6 +66,18 @@
{
"type": "file",
"path": "electron/npm-cache.tgz"
},
{
"type": "file",
"path": "electron/node-modules.tgz"
},
{
"type": "file",
"path": "electron/electron-v1.6.10-linux-x64.zip"
},
{
"type": "file",
"path": "electron/SHASUMS256.txt-1.6.10"
}
]
}

0 comments on commit d36b6f3

Please sign in to comment.