Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jspears committed Oct 14, 2016
0 parents commit 77bf676
Show file tree
Hide file tree
Showing 31 changed files with 869 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"presets": ["es2015", "stage-0", "react"],
"plugins": ["add-module-exports"],
"env": {
"production": {
"presets": ["react-optimize"],
"plugins": [
"babel-plugin-dev-expression"
]
},
"development": {
"presets": ["react-hmre"]
},
"test": {
"plugins": [
["webpack-loaders", { "config": "webpack.config.test.js", "verbose": false }]
]
}
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

# OSX
.DS_Store

# App packaged
dist
release

#ide
.idea
13 changes: 13 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2016 WalmartLabs

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Electrode OTA Desktop
===
A GUI for the code-push command line.

Download the latest [here](releases)


![NewToken.png](./docs/imgs/NewToken.png)
![install](./docs/imgs/DMG.png)
![Login.png](./docs/imgs/Login.png)
![GettingStarted.png](./docs/imgs/GettingStarted.png)
![NewAppSuccess.png](./docs/imgs/NewAppSuccess.png)
![NewDeployment.png](./docs/imgs/NewDeployment.png)
![NewDeployment1.png](./docs/imgs/NewDeployment1.png)
![Releases.png](./docs/imgs/Releases.png)
![Collaborate.png](./docs/imgs/Collaborate.png)
![AddKey.png](./docs/imgs/AddKey.png)
![NewKey.png](./docs/imgs/NewKey.png)



###Development
The Electrode OTA Desktop is an electron app. Most of the UI code is in [electrode-ota-ui](../electrode-ota-ui). Due
to various technical and time constraints both need to be installed for this to work correctly. They have not been publicly
published yet so bear with the nuttyness.

First you need node/npm install >6.5.0 [node](https://nodejs.org/en/) from https://nodejs.org/en/

```sh
$ mkdir electrode-ota
$ cd electrode-ota
$ git clone https://gecgithub01.walmart.com/jspear1/electrode-ota-ui
$ git clone https://gecgithub01.walmart.com/jspear1/electrode-ota-desktop
$ cd electrode-ota-ui
$ npm install
$ npm run electron
$ cd ../electrode-ota-desktop
$ npm install
$ npm run distro
$ #To test the app
$ open dist/mac/ElectrodeOTA.app
$ #To test the dmg
$ open dist/mac/ElectrodeOTA-{version}.dmg
```
### To debug/develop
To develop, it runs a webpack-dev-server in the background, for hmr. However app/browser/main is not webpacked or
transpiled, its plain old javascript. But all the ui is there under ../electrode-ota-ui so have fun, and send PR's.

```sh
$ npm run hot
```

This project uses [electron-builder](https://github.com/electron-userland/electron-builder) to buid the dmg and .app.
To add an app signature there are some tools [see](https://github.com/electron-userland/electron-osx-sign/wiki/1.-Getting-Started)
and for more [details](https://github.com/electron-userland/electron-builder/wiki/Options)
Loading

0 comments on commit 77bf676

Please sign in to comment.