Added update scripts & Ajusted package.json for cross platfrom builds

This commit is contained in:
Ethan van Ballegooyen
2019-09-04 16:46:43 +02:00
parent 56fb48d890
commit aed1a962cf
6 changed files with 57 additions and 4 deletions

14
build-linux.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env sh
[ $SUDO_USER ] && _user=$SUDO_USER || _user=`whoami`
rm -r node_moudles
rm package-lock.json
rm -r dist
npm install
npm run dist-linux
echo 'Done!'

14
build-osx.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env sh
[ $SUDO_USER ] && _user=$SUDO_USER || _user=`whoami`
rm -r node_moudles
rm package-lock.json
rm -r dist
npm install
npm run dist-osx
echo 'Done!'

5
build_win.bat Executable file → Normal file
View File

@@ -1,2 +1,5 @@
@ECHO OFF
call npm run dist
call git pull
call npm run dist

View File

@@ -1,12 +1,14 @@
{
"name": "Ether1Wallet",
"version": "0.3.1",
"description": "Desktop wallet for Ether1 currency",
"description": "Desktop wallet for Ether-1 ($ETHO)",
"main": "main.js",
"scripts": {
"start": "electron .",
"pack": "build --dir",
"dist": "build"
"pack-win": "build --windows --dir",
"dist-win": "build --platform=win --arch=x64",
"dist-linux": "build --platform=linux --arch=x64",
"dist-osx": "build --platform=mac --arch=x64"
},
"build": {
"appId": "Ether1DesktopWallet",

10
update-linux.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env sh
[ $SUDO_USER ] && _user=$SUDO_USER || _user=`whoami`
rm -r dist
git pull
npm run dist-linux
echo 'Done!'

10
update-osx.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env sh
[ $SUDO_USER ] && _user=$SUDO_USER || _user=`whoami`
rm -r dist
git pull
npm run dist-osx
echo 'Done!'