Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements #4

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restructure release workflow. Now using electron-builder.
  • Loading branch information
jcrowthe committed Feb 14, 2017
commit 753ae3e2717d9d20889a29600126690fbb609f73
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
node_debug.log
/dist
**.DS_Store
/build
/release
2 changes: 1 addition & 1 deletion app/main.js → app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function createWindow() {
mainWindow.loadURL('file:https://' + __dirname + '/index.html');

// Open the DevTools.
mainWindow.webContents.openDevTools();
if (process.env.CRYPTR_ENV && process.env.CRYPTR_ENV == 'development') mainWindow.webContents.openDevTools();

if (process.platform == 'darwin') {
// Menu items for MacOS. Specifically, this enables Copy/Paste while disallowing opening DevTools.
Expand Down
10 changes: 10 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "cryptr",
"author": "Jacob Crowther <[email protected]>",
"version": "0.0.1",
"description": "A GUI for Vault",
"repository": {
"url": "https://github.com/jcrowthe/cryptr.git"
},
"license": "MIT"
}
49 changes: 30 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
{
"name": "cryptr",
"author": "Jacob Crowther <[email protected]>",
"version": "0.1",
"description": "A GUI for Vault",
"main": "app/main.js",
"repository": {
"url": "https://github.com/jcrowthe/cryptr.git"
},
"license": "MIT",
"scripts": {
"start": "electron app/main.js",
"build": "electron-zip-packager ./ Cryptr --platform=all --arch=all --app-version=1.0.9 prune --asar --icon=app/images/cryptr --overwrite --out=dist --ignore=dist --ignore=README.md"
},
"devDependencies": {
"devtron": "^1.3.0",
"electron": "^1.4.15",
"electron-packager": "^7.7.0",
"electron-zip-packager": "^3.0.0"
}
"name": "cryptr",
"author": "Jacob Crowther <[email protected]>",
"version": "0.0.1",
"description": "A GUI for Vault",
"main": "app/index.js",
"repository": {
"url": "https://github.com/jcrowthe/cryptr.git"
},
"license": "MIT",
"scripts": {
"postinstall": "install-app-deps",
"start": "electron ./app --enable-logging",
"dev": "CRYPTR_ENV='development' npm run start",
"release": "build -mwl --x64 --ia32"
},
"devDependencies": {
"electron": "^1.4.15",
"electron-builder": "^13.7.0"
},
"build": {
"appId": "io.cryptr",
"mac": {
"category": "public.app-category.productivity",
"publish": ["github"]
},
"win": {
"iconUrl": "https://github.com/jcrowthe/cryptr/blob/vault-integration/app/images/cryptr-internal.png",
"publish": ["github"]
}
}
}