mirror of
https://github.com/kremalicious/blowfish.git
synced 2024-12-27 07:07:52 +01:00
build updates
This commit is contained in:
parent
8f42243539
commit
6b4e344138
26
README.md
26
README.md
@ -1,8 +1,16 @@
|
||||
# ocean-balance
|
||||
|
||||
> Simple Electron-based desktop app to retrieve and display your total Ocean Token balances.
|
||||
> 🐡 Simple Electron-based desktop app to retrieve and display your total Ocean Token balances.
|
||||
> https://oceanprotocol.com
|
||||
|
||||
---
|
||||
|
||||
- [Usage](#usage)
|
||||
- [Build packages](#build-packages)
|
||||
- [Data Sources](#data-sources)
|
||||
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
Clone, add adresses, and run:
|
||||
@ -21,9 +29,21 @@ npm install
|
||||
npm start
|
||||
```
|
||||
|
||||
## Build package
|
||||
## Build packages
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
npm run create-installer-mac
|
||||
```
|
||||
|
||||
Will build and package the app into platform specific packages for macOS, Windows & Linux.
|
||||
|
||||
On a Mac and Linux machine, packaging requires [`wine`](https://www.winehq.org) in your `PATH`. To install on macOS with [Homebrew](https://brew.sh):
|
||||
|
||||
```bash
|
||||
brew install wine
|
||||
```
|
||||
|
||||
## Data Sources
|
||||
|
||||
- balances are checked via etherscan.io API
|
||||
- spot prices are fetched from coingecko.com API
|
||||
|
20
package.json
20
package.json
@ -2,17 +2,17 @@
|
||||
"name": "ocean-balance",
|
||||
"productName": "Ocean",
|
||||
"version": "1.0.0",
|
||||
"description": "A minimal Electron application",
|
||||
"description": "🐡 Simple Electron-based desktop app to retrieve and display your total Ocean Token balances.",
|
||||
"main": "./src/main.js",
|
||||
"scripts": {
|
||||
"test": "eslint ./src/**/*.{js,jsx} && stylelint ./app/*.css",
|
||||
"test": "eslint ./src/**/*.{js,jsx} && stylelint ./src/**/*.css",
|
||||
"start": "webpack-dev-server --hot --host 0.0.0.0 --config=./webpack.dev.config.js",
|
||||
"build": "webpack --config webpack.build.config.js && npm run package:mac",
|
||||
"package:mac": "electron-packager . --overwrite --asar=true --platform=darwin --arch=x64 --icon=src/images/app.icns --prune=true --out=./builds && open ./builds",
|
||||
"package:win": "electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=./builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Coinbase\"",
|
||||
"package:linux": "electron-packager . --overwrite --asar=true --platform=linux --arch=x64 --icon=assets/icons/png/1024x1024.png --prune=true --out=./builds",
|
||||
"create-installer-mac": "electron-installer-dmg ./builds/Ocean-darwin-x64/Ocean.app Ocean --out=./builds --overwrite --icon=app/app.icns",
|
||||
"create-installer-win": "node installers/windows/createinstaller.js"
|
||||
"build": "webpack --config webpack.build.config.js && npm run package",
|
||||
"package": "npm run package:mac && npm run package:win && npm run package:linux && open ./builds",
|
||||
"package:mac": "electron-packager . --overwrite --asar --platform=darwin --arch=x64 --icon=src/images/icon.icns --prune --out=./builds",
|
||||
"package:linux": "electron-packager . --overwrite --asar --platform=linux --arch=x64 --icon=src/images/iconset/icon1024.png --prune --out=./builds",
|
||||
"package:win": "electron-packager . --overwrite --asar --platform=win32 --arch=ia32 --icon=src/images/icon.ico --prune --out=./builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Ocean\"",
|
||||
"create-installer-mac": "electron-installer-dmg ./builds/Ocean-darwin-x64/Ocean.app Ocean --out=./builds --overwrite --icon=src/images/icon.icns"
|
||||
},
|
||||
"repository": "https://github.com/kremalicious/ocean-balance.git",
|
||||
"author": "Matthias Kretschmann",
|
||||
@ -32,7 +32,7 @@
|
||||
"babel-eslint": "^10.0.1",
|
||||
"babel-loader": "^8.0.5",
|
||||
"css-loader": "^2.1.1",
|
||||
"electron": "^5.0.0",
|
||||
"electron": "^5.0.1",
|
||||
"electron-devtools-installer": "^2.2.4",
|
||||
"electron-installer-dmg": "^2.0.0",
|
||||
"electron-packager": "^13.1.1",
|
||||
@ -47,7 +47,7 @@
|
||||
"stylelint": "^10.0.1",
|
||||
"stylelint-config-standard": "^18.3.0",
|
||||
"webpack": "^4.30.0",
|
||||
"webpack-cli": "^3.3.1",
|
||||
"webpack-cli": "^3.3.2",
|
||||
"webpack-dev-server": "^3.3.1"
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
BIN
src/images/icon.icns
Normal file
BIN
src/images/icon.icns
Normal file
Binary file not shown.
BIN
src/images/icon.ico
Normal file
BIN
src/images/icon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
src/images/icon1024.png
Normal file
BIN
src/images/icon1024.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 145 KiB |
Loading…
Reference in New Issue
Block a user