Skip to content

Commit

Permalink
Add strict-ssl option
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage committed Dec 4, 2015
1 parent f4f791b commit 30bdd0b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
var fs = require('fs')
var args = require('minimist')(process.argv.slice(2), {boolean: ['prune', 'asar', 'all', 'overwrite']})
var args = require('minimist')(process.argv.slice(2), {boolean: ['prune', 'asar', 'all', 'overwrite', 'strict-ssl']})
var packager = require('./')
var usage = fs.readFileSync(__dirname + '/usage.txt').toString()

Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function createSeries (opts, archs, platforms) {
platform: platform,
arch: arch,
version: opts.version,
cache: opts.cache
cache: opts.cache,
strictSSL: opts['strict-ssl']
})
})
})
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ If the file extension is omitted, it is auto-completed to the correct extension

`sign` - *String*

`strict-ssl` - *Boolean*

Whether SSL certificates are required to be valid when downloading Electron. Defaults to true.

`version-string` - *Object*

Object hash of application metadata to embed into the executable (Windows only):
Expand Down
2 changes: 2 additions & 0 deletions usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ out the dir to put the app into at the end. defaults to current w
overwrite if output directory for a platform already exists, replaces it rather than skipping it
prune runs `npm prune --production` on the app
sign should contain the identity to be used when running `codesign` (only for building for the darwin platform, on OS X)
strict-ssl whether SSL certificates are required to be valid when downloading Electron.
It defaults to true, use --strict-ssl=false to disable checks.
version-string should contain a hash of the application metadata to be embedded into the executable (win32 platform only).
These can be specified on the command line via dot notation,
e.g. --version-string.CompanyName="Company Inc." --version-string.ProductName="Product"
Expand Down

1 comment on commit 30bdd0b

@eberon
Copy link

@eberon eberon commented on 30bdd0b Apr 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow.

Please sign in to comment.