mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-02-02 11:48:25 +00:00
Override output directory by default
This commit is contained in:
parent
7ad7c346ef
commit
e6dc4b8441
20
README.md
20
README.md
@ -150,13 +150,13 @@ Processor architecture, automatically determined based on the current OS. Can be
|
||||
|
||||
Electron version without the `v`, see https://github.com/atom/electron/releases.
|
||||
|
||||
#### [overwrite]
|
||||
#### [no-overwrite]
|
||||
|
||||
```
|
||||
-o, --overwrite
|
||||
--no-overwrite
|
||||
```
|
||||
|
||||
Specifies if the destination directory should be overwritten.
|
||||
Specifies if the destination directory should be not overwritten, defaults to false.
|
||||
|
||||
#### [conceal]
|
||||
|
||||
@ -296,22 +296,22 @@ In your `.js` file:
|
||||
```javascript
|
||||
var nativefier = require('nativefier').default;
|
||||
|
||||
// possible options
|
||||
// possible options, defaults unless specified otherwise
|
||||
var options = {
|
||||
name: 'Web WhatsApp',
|
||||
name: 'Web WhatsApp', // will be inferred if not specified
|
||||
targetUrl: 'http://web.whatsapp.com', // required
|
||||
platform: 'darwin',
|
||||
arch: 'x64',
|
||||
platform: 'darwin', // defaults to the current system
|
||||
arch: 'x64', // defaults to the current system
|
||||
version: '0.36.4',
|
||||
out: '~/Desktop',
|
||||
overwrite: true,
|
||||
out: '.',
|
||||
overwrite: false,
|
||||
asar: false, // see conceal
|
||||
icon: '~/Desktop/icon.png',
|
||||
counter: false,
|
||||
width: 1280,
|
||||
height: 800,
|
||||
showMenuBar: false,
|
||||
userAgent: null,
|
||||
userAgent: 'Mozilla ...', // will infer a default for your current system
|
||||
ignoreCertificate: false,
|
||||
insecure: false,
|
||||
honest: false
|
||||
|
@ -25,7 +25,7 @@ if (require.main === module) {
|
||||
.option('-p, --platform <value>', '\'linux\', \'win32\', or \'darwin\'')
|
||||
.option('-a, --arch <value>', '\'ia32\' or \'x64\'')
|
||||
.option('-e, --electron-version <value>', 'electron version to package, without the \'v\', see https://github.com/atom/electron/releases')
|
||||
.option('-o, --overwrite', 'if output directory for a platform already exists, replaces it rather than skipping it, defaults to false')
|
||||
.option('--no-overwrite', 'do not override output directory if it already exists, defaults to false')
|
||||
.option('-c, --conceal', 'packages the source code within your app into an archive, defaults to false, see http://electron.atom.io/docs/v0.36.0/tutorial/application-packaging/')
|
||||
.option('--counter', 'if the target app should use a persistant counter badge in the dock (OSX only), defaults to false')
|
||||
.option('-i, --icon <value>', 'the icon file to use as the icon for the app (should be a .icns file on OSX, .png for Windows and Linux)')
|
||||
|
@ -38,7 +38,7 @@ function optionsFactory(inpOptions, callback) {
|
||||
version: inpOptions.electronVersion || ELECTRON_VERSION,
|
||||
nativefierVersion: packageJson.version,
|
||||
out: inpOptions.out || process.cwd(),
|
||||
overwrite: inpOptions.overwrite || false,
|
||||
overwrite: inpOptions.overwrite,
|
||||
asar: inpOptions.conceal || false,
|
||||
icon: inpOptions.icon,
|
||||
counter: inpOptions.counter || false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user