mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-29 04:39:04 +00:00
Convert app name capitalized camel case if building for linux to prevent dock problems
This commit is contained in:
parent
0cb4098eb8
commit
f4130f940f
@ -6,6 +6,7 @@ import request from 'request';
|
|||||||
import cheerio from 'cheerio';
|
import cheerio from 'cheerio';
|
||||||
import validator from 'validator';
|
import validator from 'validator';
|
||||||
import sanitize from 'sanitize-filename';
|
import sanitize from 'sanitize-filename';
|
||||||
|
import _ from 'lodash';
|
||||||
|
|
||||||
const TEMPLATE_APP_DIR = path.join(__dirname, '../', 'app');
|
const TEMPLATE_APP_DIR = path.join(__dirname, '../', 'app');
|
||||||
const ELECTRON_VERSION = '0.36.4';
|
const ELECTRON_VERSION = '0.36.4';
|
||||||
@ -88,6 +89,10 @@ function optionsFactory(name,
|
|||||||
|
|
||||||
function sanitizeOptions(options) {
|
function sanitizeOptions(options) {
|
||||||
options.name = sanitize(options.name);
|
options.name = sanitize(options.name);
|
||||||
|
|
||||||
|
if (options.platform === 'linux') {
|
||||||
|
options.name = _.upperFirst(_.camelCase(options.name));
|
||||||
|
}
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user