-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from james-proxy/electron-builder
Electron builder
- Loading branch information
Showing
23 changed files
with
135 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ package | |
node_modules | ||
binaries | ||
root-ca.crt.pem | ||
root-ca.key.pem | ||
root-ca.key.pem | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,26 @@ | ||
sudo: required | ||
dist: trusty | ||
matrix: | ||
include: | ||
- os: osx | ||
language: node_js | ||
node_js: | ||
- '5.1' | ||
- '5.1' | ||
addons: | ||
apt: | ||
packages: | ||
- wine | ||
- icnsutils | ||
- graphicsmagick | ||
script: | ||
- npm --depth Infinity update | ||
- npm run test-ci | ||
before_deploy: | ||
- npm run zip-binaries | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: KEDggFkivi1iJbO/G4hicXznWk+bGA7sDuKSd36fBB9pIN/JSr08HlasrmqLmRva/rkHinbEdu+f75k/xh/m0UKll5jXUhmJVgbvNjPWQDtRSeeRM8UjveCL9wTZopkM4bLLxmWD2klyCC8qde5mMOJ1gRi+aPboGBgxEmtD69Bdhq1k3Dd2HTFnqQEh+8al2//+ayhne512Mo+lgwR1+4pLbhE/xK0iV7gQllRzTT2/ifbn5an8vbUkwfmm2NivNhSJTaPD2NndLvOVBKKQVcbIx+37gXO1Hn6F7Wr0MMHeh/ypJzGygxPQ2xZHtCKABw8jFetpFaFzm4xFcbyHsqclQlDLCv9J1e5DMvWk2ay29L9qWXT5dc7tnjaIVFPMEw4ViwIC30ThO44HHm6m+/tQAp3cDAD37uunp83wDAImbyCzZ3UoNLcmWHc39fxaD1s4Fzan3/++QbqSgdB+p4dXraxlRyqFcmKW+O5S+oGFolmdLuRbxPaaeIMMGm9AN7+fmGJgmiRzPU5k3/ao6eHoycXVPcIiuFV+2ZxvJS4ewqT+HiH6cNOFeeHEXx2O0fjEuj7mZG5Jey5GNsOdcq7loPnipcGbDnIHs+wRyqPCQ5aZ+94gQAemjBdtVnDTKd7RSjKHWmbo3Xx260XnwAEsTDtVuUJmyVjpIdCdNAs= | ||
file: | ||
- binaries/James-darwin-x64.zip | ||
- binaries/James-linux-ia32.zip | ||
- binaries/James-linux-x64.zip | ||
- binaries/James-win32-ia32.zip | ||
- binaries/James-win32-x64.zip | ||
skip_cleanup: true | ||
on: | ||
repo: james-proxy/james | ||
tags: true | ||
- npm prune | ||
- npm --depth Infinity update | ||
- npm run test-ci | ||
- npm run dist | ||
cache: | ||
apt: true | ||
directories: | ||
- node_modules | ||
- $HOME/.electron | ||
- node_modules | ||
- "$HOME/.electron" | ||
env: | ||
global: | ||
secure: JGVJJ2FeysfDzsh6sLiZZ4djQPKLA81SpBsph1cvo+FHB9E9fXiLNbIIqVALsq2b3nNgtUD/LFgYOTvfJbHr5P6ZP9oHJzh2Fv3O5WR+bPaaqVkSJKRuY7w1SBTxD0NG2+sZwR6/E0mEk6+TW27FSRccmAYCBjqBcLbpCw7wDBZXmmJ4kB2ziwFKyw7bwRrmW+pTQqYIun08sTCTlu7me4ucVEjqLTOVrYlbNIpmcKKzZs7jK+9SHtFjN2DeSnX8tu2go20M8TitkqESlQF8ztNGjkbdyC+mjRyCnfWvN8tv2SbV5EI62RPswd+bY4jIPM8aqrsMZ+pHc+nNIEc/nELhVfywPx2jfcYf6Egv36AIkVu3LJRUdhny/54cDDn2g7WT3BesX8gy0/rF59SNExdmNJHs8X3/of6ZLn8x9XvTmiKNbTYDjgc+ks3UvSRk//ToqtbziG2FKJ1wTZjKbnxyv7Ll3Z9PyAIc/7qlxvweloV5phTkL1DjU/9wHcn5BW07GXN5AH+FH7h5PyJurmJtBuC4Y9goRX+P78UuBT5rpAD5MXDeg82yb0DLZDKxaaXbzJpelqYGOZ6qUzEwTMZfvfi4YIy3BybU1L4K4j65vF+leve2JHV2poeRDLkOz5zCv596r0WlwE86sdqtO/obXwuwrDJieACkZvhfN3w= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '{build}' | ||
|
||
platform: | ||
- x64 | ||
|
||
cache: | ||
- node_modules | ||
- '%USERPROFILE%\.electron' | ||
|
||
install: | ||
- ps: Install-Product node 5 x64 | ||
- npm install | ||
- npm prune | ||
- npm --depth Infinity update | ||
|
||
build_script: | ||
- npm run test-ci | ||
- npm run dist:win64 | ||
|
||
environment: | ||
GH_TOKEN: | ||
secure: HnT2ViVK97gtyZrlPH1C9zM/m3YErp8kY9FtO7wUhcoLG8TZiR1oLiBx+27eCWrX | ||
|
||
test: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
{ | ||
"name": "james", | ||
"version": "1.4.5", | ||
"description": "", | ||
"description": "HTTP/HTTPS proxy built in Electron and React", | ||
"author": "Julian Hollmann <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/james-proxy/james.git" | ||
}, | ||
"main": "electron-app.js", | ||
"scripts": { | ||
"build": "gulp", | ||
"start": "electron ./build", | ||
"watch": "gulp watch", | ||
"development": "gulp livereload", | ||
"package": "gulp clean package", | ||
"zip-binaries": "cd binaries; rm *.zip; for i in *; do zip --symlinks -r \"${i%/}.zip\" \"$i\"; done", | ||
"start": "electron ./build", | ||
"lint": "eslint ./src ./test", | ||
"test": "mocha --reporter dot --recursive -r setup-referee-sinon/globals test/unit --compilers js:babel-core/register", | ||
"test-ci": "npm run lint && npm run test && npm run package" | ||
}, | ||
"author": "Julian Hollmann <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/james-proxy/james.git" | ||
"test-ci": "npm run lint && npm run test", | ||
"package": "npm run dist", | ||
"predist": "gulp clean dist-prep", | ||
"predist:win64": "gulp clean dist-prep", | ||
"dist": "build --arch all", | ||
"dist:win64": "build --platform win32 --arch x64" | ||
}, | ||
"dependencies": { | ||
"electron-squirrel-startup": "^0.1.4", | ||
"hoxy": "^3.2.0", | ||
"james-browser-launcher": "^1.2.1", | ||
"materialize-css": "^0.97.5", | ||
|
@@ -39,9 +43,9 @@ | |
"babel-preset-react": "^6.3.13", | ||
"browserify": "^13.0.0", | ||
"del": "^2.2.0", | ||
"electron-builder": "^3.17.1", | ||
"electron-connect": "^0.4.0", | ||
"electron-localshortcut": "^0.6.0", | ||
"electron-packager": "7.0.1", | ||
"electron-prebuilt": "1.1.0", | ||
"envify": "^3.4.0", | ||
"eslint": "^2.2.0", | ||
|
@@ -53,6 +57,7 @@ | |
"gulp-babel": "^6.1.1", | ||
"gulp-changed": "^1.3.0", | ||
"gulp-if": "^2.0.0", | ||
"gulp-json-editor": "^2.2.1", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sass": "^2.1.1", | ||
"gulp-sourcemaps": "^1.6.0", | ||
|
@@ -75,5 +80,25 @@ | |
"plugins": [ | ||
"transform-object-rest-spread" | ||
] | ||
}, | ||
"build": { | ||
"app-bundle-id": "com.jamesproxy.james", | ||
"app-category-type": "public.app-category.productivity", | ||
"productName": "James", | ||
"osx": { | ||
"icon": "resource-compile/icon.icns", | ||
"background": "resource-compile/icon.png" | ||
}, | ||
"win": { | ||
"iconUrl": "https://github.com/mitchhentges/james/blob/electron-builder/resource-compile/icon.ico?raw=true" | ||
}, | ||
"linux": { | ||
"synopsis": "Web proxy" | ||
} | ||
}, | ||
"directories": { | ||
"buildResources": "resource-compile", | ||
"output": "binaries", | ||
"app": "./package" | ||
} | ||
} |
File renamed without changes.
Binary file not shown.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "james", | ||
"description": "HTTP/HTTPS proxy built in Electron and React", | ||
"main": "electron-app.js", | ||
"author": "Julian Hollmann <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/james-proxy/james.git" | ||
} | ||
} |
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters