mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 18:48:55 +00:00
Cleanup
This commit is contained in:
parent
51acbaaa9c
commit
0abde3e865
@ -12,7 +12,7 @@ import inferOs from './infer/inferOs';
|
|||||||
|
|
||||||
const {inferPlatform, inferArch} = inferOs;
|
const {inferPlatform, inferArch} = inferOs;
|
||||||
|
|
||||||
const TEMPLATE_APP_DIR = path.join(__dirname, '../', 'app');
|
const PLACEHOLDER_APP_DIR = path.join(__dirname, '../', 'app');
|
||||||
const ELECTRON_VERSION = '0.36.4';
|
const ELECTRON_VERSION = '0.36.4';
|
||||||
const DEFAULT_APP_NAME = 'APP';
|
const DEFAULT_APP_NAME = 'APP';
|
||||||
|
|
||||||
@ -30,13 +30,13 @@ const DEFAULT_APP_NAME = 'APP';
|
|||||||
function optionsFactory(inpOptions, callback) {
|
function optionsFactory(inpOptions, callback) {
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
dir: TEMPLATE_APP_DIR,
|
dir: PLACEHOLDER_APP_DIR,
|
||||||
name: inpOptions.name,
|
name: inpOptions.name,
|
||||||
targetUrl: normalizeUrl(inpOptions.targetUrl),
|
targetUrl: normalizeUrl(inpOptions.targetUrl),
|
||||||
platform: inpOptions.platform || inferPlatform(),
|
platform: inpOptions.platform || inferPlatform(),
|
||||||
arch: inpOptions.arch || inferArch(),
|
arch: inpOptions.arch || inferArch(),
|
||||||
version: ELECTRON_VERSION,
|
version: ELECTRON_VERSION,
|
||||||
out: inpOptions.out|| process.cwd(),
|
out: inpOptions.out || process.cwd(),
|
||||||
overwrite: inpOptions.overwrite || false,
|
overwrite: inpOptions.overwrite || false,
|
||||||
asar: inpOptions.conceal || false,
|
asar: inpOptions.conceal || false,
|
||||||
icon: inpOptions.icon,
|
icon: inpOptions.icon,
|
||||||
|
Loading…
Reference in New Issue
Block a user