2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 02:28:55 +00:00

Bump deps: electron-packager, ts-loader, types

This commit is contained in:
Ronan Jouchet 2020-07-18 01:47:46 -04:00
parent c18fc1ef9a
commit 792156f376
3 changed files with 8 additions and 8 deletions

View File

@ -52,17 +52,17 @@
}, },
"dependencies": { "dependencies": {
"@types/cheerio": "0.x", "@types/cheerio": "0.x",
"@types/electron-packager": "14.x", "@types/electron-packager": "15.x",
"@types/lodash": "4.x", "@types/lodash": "4.x",
"@types/ncp": "2.x", "@types/ncp": "2.x",
"@types/node": "8.x", "@types/node": "10.x",
"@types/page-icon": "0.x", "@types/page-icon": "0.x",
"@types/shelljs": "0.x", "@types/shelljs": "0.x",
"@types/tmp": "0.x", "@types/tmp": "0.x",
"axios": "0.x", "axios": "0.x",
"cheerio": "^1.0.0-rc.3", "cheerio": "^1.0.0-rc.3",
"commander": "4.x", "commander": "4.x",
"electron-packager": "14.x", "electron-packager": "15.x",
"gitcloud": "0.x", "gitcloud": "0.x",
"hasbin": "1.x", "hasbin": "1.x",
"lodash": "4.x", "lodash": "4.x",
@ -84,7 +84,7 @@
"jest": "26.x", "jest": "26.x",
"prettier": "2.x", "prettier": "2.x",
"rimraf": "3.x", "rimraf": "3.x",
"ts-loader": "7.x", "ts-loader": "8.x",
"typescript": "3.x", "typescript": "3.x",
"webpack": "4.x", "webpack": "4.x",
"webpack-cli": "3.x" "webpack-cli": "3.x"

View File

@ -2,6 +2,7 @@ import * as electronPackager from 'electron-packager';
export interface ElectronPackagerOptions extends electronPackager.Options { export interface ElectronPackagerOptions extends electronPackager.Options {
targetUrl: string; targetUrl: string;
platform: string;
} }
export interface AppOptions { export interface AppOptions {

View File

@ -135,13 +135,12 @@ export async function getOptions(rawOptions: any): Promise<AppOptions> {
options.nativefier.userAgent = null; options.nativefier.userAgent = null;
} }
if (options.packager.platform.toLowerCase() === 'windows') { const platform = options.packager.platform.toLowerCase();
if (platform === 'windows') {
options.packager.platform = 'win32'; options.packager.platform = 'win32';
} }
if ( if (['osx', 'mac', 'macos'].includes(platform)) {
['osx', 'mac', 'macos'].includes(options.packager.platform.toLowerCase())
) {
options.packager.platform = 'darwin'; options.packager.platform = 'darwin';
} }