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!'
|
||||||
5
build_win.bat
Executable file → Normal file
5
build_win.bat
Executable file → Normal file
@@ -1,2 +1,5 @@
|
|||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
call npm run dist
|
|
||||||
|
call git pull
|
||||||
|
|
||||||
|
call npm run dist
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "Ether1Wallet",
|
"name": "Ether1Wallet",
|
||||||
"version": "0.3.1",
|
"version": "0.3.1",
|
||||||
"description": "Desktop wallet for Ether1 currency",
|
"description": "Desktop wallet for Ether-1 ($ETHO)",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"pack": "build --dir",
|
"pack-win": "build --windows --dir",
|
||||||
"dist": "build"
|
"dist-win": "build --platform=win --arch=x64",
|
||||||
|
"dist-linux": "build --platform=linux --arch=x64",
|
||||||
|
"dist-osx": "build --platform=mac --arch=x64"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "Ether1DesktopWallet",
|
"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