From 844e1cfb001d029852142209f96eb1953b4f5d71 Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 18 Sep 2018 12:39:53 +0900 Subject: [PATCH] ing --- config/build/{ => windows/nsis}/installer.nsh | 0 electron-builder.json | 69 +++++++++++++++++++ package.json | 30 -------- src/app/pages/home/home-page.component.ts | 2 +- 4 files changed, 70 insertions(+), 31 deletions(-) rename config/build/{ => windows/nsis}/installer.nsh (100%) create mode 100644 electron-builder.json diff --git a/config/build/installer.nsh b/config/build/windows/nsis/installer.nsh similarity index 100% rename from config/build/installer.nsh rename to config/build/windows/nsis/installer.nsh diff --git a/electron-builder.json b/electron-builder.json new file mode 100644 index 0000000..b0f540f --- /dev/null +++ b/electron-builder.json @@ -0,0 +1,69 @@ +{ + "appId": "com.loafle.overflow.scanner", + "copyright": "LOAFLE", + "productName": "overFlow Network Scanner", + "files": "**/*", + "asar": true, + "compression": "normal", + "npmRebuild": false, + "npmSkipBuildFromSource": false, + "artifactName": "${productName}[${env.WAVES_CONFIGURATION}]-${version}-${os}.${ext}", + "directories": { + "buildResources": "electron/" + }, + "linux": { + "category": "Utility", + "target": [ + { + "target": "deb", + "arch": [ + "x64", + "ia32" + ] + }, + { + "target": "zip", + "arch": [ + "x64" + ] + } + ], + "executableName": "overFlow-Network-Scanner" + }, + "mac": { + "category": "public.app-category.utilities", + "target": [ + "dmg" + ], + "icon": "electron/icons/icon.icns" + }, + "win": { + "target": [ + { + "target": "nsis", + "arch": [ + "x64", + "ia32" + ] + }, + { + "target": "zip", + "arch": [ + "x64" + ] + } + ], + "legalTrademarks": "overFlow", + "icon": "electron/icons/icon.ico" + }, + "nsis": { + "artifactName": "overFlow-Network-Scanner[${env.WAVES_CONFIGURATION}]-setup-${version}.${ext}", + "include": "config/build/windows/nsis/installer.nsh", + "installerIcon": "electron/icons/icon.ico", + "uninstallerIcon": "electron/icons/icon.ico" + }, + "dmg": { + "icon": null, + "background": "electron/icons/macos-installer-bg.tiff" + } +} \ No newline at end of file diff --git a/package.json b/package.json index d25be21..f0ad0ed 100644 --- a/package.json +++ b/package.json @@ -16,36 +16,6 @@ "electron:builder:install-app-deps": "electron-builder install-app-deps" }, "private": true, - "productName": "overFlow Network Scanner", - "build": { - "appId": "com.loafle.overflow.scanner", - "files": [ - "" - ], - "win": { - "target": [ - { - "target": "nsis", - "arch": [ - "x64", - "ia32" - ] - } - ], - "icon": ".ico" - }, - "nsis": { - "oneClick": false, - "perMachine": true, - "allowToChangeInstallationDirectory": true, - "language": 1042, - "include": "config/build/installer.nsh", - "shortcutName": "" - }, - "directories": { - "output": "build/packages" - } - }, "dependencies": { "electron-devtools-installer": "^2.2.4", "rxjs": "^6.2.2", diff --git a/src/app/pages/home/home-page.component.ts b/src/app/pages/home/home-page.component.ts index f8da59f..9158feb 100644 --- a/src/app/pages/home/home-page.component.ts +++ b/src/app/pages/home/home-page.component.ts @@ -200,7 +200,7 @@ export class HomePageComponent implements OnInit, OnDestroy { const svg = d3.select(this.discoveryTargetRef.nativeElement); this.zoomBehavior = d3.zoom() - .scaleExtent([0.5, 4]) + .scaleExtent([0.2, 4]) .on('zoom', () => { const transform = d3.event.transform; svg.select('g').attr('transform', 'translate(' + transform.x + ',' + transform.y + ') scale(' + transform.k + ')');