Added update scripts & Ajusted package.json for cross platfrom builds
This commit is contained in:
14
build-linux.sh
Normal file
14
build-linux.sh
Normal 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
14
build-osx.sh
Executable 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!'
|
||||
3
build_win.bat
Executable file → Normal file
3
build_win.bat
Executable file → Normal file
@@ -1,2 +1,5 @@
|
||||
@ECHO OFF
|
||||
|
||||
call git pull
|
||||
|
||||
call npm run dist
|
||||
@@ -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
10
update-linux.sh
Normal 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
10
update-osx.sh
Normal 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!'
|
||||
Reference in New Issue
Block a user