Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Update README file
Browse files Browse the repository at this point in the history
  • Loading branch information
brunto committed Oct 17, 2017
1 parent 174ef7b commit e75b8d3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 884 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
release-builds
release-builds
dist
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# PIA Electron Application

A basic Electron application needs just these files:
## Installation

- `package.json` - Points to the app's main file and lists its details and dependencies.
- `main.js` - Starts the app and creates a browser window to render HTML. This is the app's **main process**.
- `index.html` - A web page to render. This is the app's **renderer process**.
To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer.

You can learn more about each of these components within the [Quick Start Guide](http://electron.atom.io/docs/tutorial/quick-start).
__First you need to build the angular application and copy the `dist` directory to the root of the PIA Electron Application.__

## To Use

To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:
From your command line:

```bash
npm install -g electron
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function createWindow () {

// and load the index.html of the app.
mainWindow.loadURL(url.format({
pathname: 'pia-front.atnosapp.com',
protocol: 'http:',
pathname: path.join(__dirname, 'dist', 'index.html'),
protocol: 'file:',
slashes: true
}))

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"main": "main.js",
"scripts": {
"start": "./node_modules/.bin/electron .",
"package-mac": "electron-packager . --electron-version='1.6.11' --overwrite --prune=true --asar=true --platform=darwin --arch=x64 --icon=icons/mac/icon.icns --out=release-builds",
"package-win": "electron-packager . --electron-version='1.6.11' --overwrite --prune=true --asar=true --platform=win32 --arch=x64 --icon=icons/win/icon.ico --out=release-builds",
"package-linux": "electron-packager . --electron-version='1.6.11' --overwrite --prune=true --asar=true --platform=linux --arch=x64 --out=release-builds"
"package-mac": "electron-packager . --electron-version='1.7.8' --overwrite --prune=true --asar=true --platform=darwin --arch=x64 --icon=icons/mac/icon.icns --out=release-builds",
"package-win": "electron-packager . --electron-version='1.7.8' --overwrite --prune=true --asar=true --platform=win32 --arch=x64 --icon=icons/win/icon.ico --out=release-builds",
"package-linux": "electron-packager . --electron-version='1.7.8' --overwrite --prune=true --asar=true --platform=linux --arch=x64 --out=release-builds"
},
"repository": "https://github.com/atnos/pia-app",
"keywords": [
Expand Down
Loading

0 comments on commit e75b8d3

Please sign in to comment.