ing
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
setcap cap_net_raw,cap_net_admin=eip '/opt/${productFilename}/bin/probe'
|
3
config/build/linux/debian/after-install.tpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
setcap cap_net_raw,cap_net_admin=eip '/opt/${productFilename}/resources/bin/probe'
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 103 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 109 KiB |
1
electron-builder.env
Normal file
|
@ -0,0 +1 @@
|
|||
BUILD_NUMBER=0.0.1-SNAPSHOT
|
|
@ -1,74 +1,80 @@
|
|||
{
|
||||
"appId": "com.loafle.overflow.scanner",
|
||||
"productName": "overFlow Network Scanner",
|
||||
"productName": "overFlow-NetworkScanner",
|
||||
"copyright": "Copyright © 2016 LOAFLE",
|
||||
"asar": false,
|
||||
"asar": true,
|
||||
"compression": "normal",
|
||||
"npmRebuild": false,
|
||||
"npmSkipBuildFromSource": false,
|
||||
"artifactName": "${name}-${version}-${os}-${arch}.${ext}",
|
||||
"artifactName": "${productName}-${version}-${os}-${arch}.${ext}",
|
||||
"directories": {
|
||||
"buildResources": "./config/build/",
|
||||
"output": "./build/package"
|
||||
},
|
||||
"files": [
|
||||
"packages.json",
|
||||
{
|
||||
"filter": ["**/*", "!*.ts", "!*.scss", "!yarn.lock"],
|
||||
"filter": [
|
||||
"**/*",
|
||||
"!*.ts",
|
||||
"!*.scss",
|
||||
"!yarn.lock"
|
||||
],
|
||||
"from": "./build/dist/",
|
||||
"to": "."
|
||||
},
|
||||
"packages.json"
|
||||
{
|
||||
"filter": [
|
||||
"**/*"
|
||||
],
|
||||
"from": "config/build/${os}/icon/",
|
||||
"to": "./assets/image/icon/"
|
||||
}
|
||||
],
|
||||
"extraFiles": [
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "config/_database.sqlite",
|
||||
"to": "./bin/database.sqlite"
|
||||
},
|
||||
{
|
||||
"filter": ["**/*"],
|
||||
"from": "config/build/${os}/icon/",
|
||||
"to": "./icon/"
|
||||
"from": "config/build/${os}/bin/probe-${os}-${arch}",
|
||||
"to": "./bin/probe"
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"target": [
|
||||
{
|
||||
"target": "deb",
|
||||
"arch": ["ia32", "x64"]
|
||||
"arch": [
|
||||
"ia32",
|
||||
"x64"
|
||||
]
|
||||
}
|
||||
],
|
||||
"executableName": "overFlow-NetworkScanner",
|
||||
"icon": "config/build/linux/icon/",
|
||||
"synopsis": "overFlow Network Scanner",
|
||||
"category": "Utility",
|
||||
"extraFiles": [
|
||||
{
|
||||
"from": "config/build/linux/bin/probe-${os}-${arch}",
|
||||
"to": "./bin/probe"
|
||||
}
|
||||
]
|
||||
"category": "Network;Monitor;",
|
||||
"synopsis": "The network scanner from LOAFLE",
|
||||
"icon": "config/build/linux/icon/"
|
||||
},
|
||||
"deb": {
|
||||
"depends": ["libpcap0.8"],
|
||||
"afterInstall": "config/build/linux/after-install.tpl"
|
||||
"depends": [
|
||||
"libpcap0.8"
|
||||
],
|
||||
"afterInstall": "config/build/linux/debian/after-install.tpl"
|
||||
},
|
||||
"mac": {
|
||||
"target": [
|
||||
"dmg"
|
||||
],
|
||||
"category": "public.app-category.utilities",
|
||||
"artifactName": "${productName}-${version}-${arch}.${ext}",
|
||||
"minimumSystemVersion": "10.12.0",
|
||||
"extendInfo": "config/build/mac/Info.plist",
|
||||
"icon": "config/build/mac/icon/overflow_1024.icns",
|
||||
"target": ["dmg"],
|
||||
"extraFiles": [
|
||||
{
|
||||
"from": "config/build/mac/bin/probe-${os}-${arch}",
|
||||
"to": "./bin/probe"
|
||||
}
|
||||
]
|
||||
"icon": "config/build/mac/icon/overflow_1024.icns"
|
||||
},
|
||||
"dmg": {
|
||||
"icon": null,
|
||||
"iconSize": 150,
|
||||
"background": "config/build/mac/dmg/background.png",
|
||||
"icon": "config/build/mac/dmg/icon.icns",
|
||||
"iconSize": 80,
|
||||
"iconTextSize": 12,
|
||||
"contents": [
|
||||
{
|
||||
"x": 480,
|
||||
|
@ -81,28 +87,30 @@
|
|||
"y": 240,
|
||||
"type": "file"
|
||||
}
|
||||
],
|
||||
"background": "config/build/mac/icon/background/background.png"
|
||||
]
|
||||
},
|
||||
"win": {
|
||||
"target": [
|
||||
{
|
||||
"target": "nsis",
|
||||
"arch": ["x64", "ia32"]
|
||||
"arch": [
|
||||
"x64",
|
||||
"ia32"
|
||||
]
|
||||
}
|
||||
],
|
||||
"legalTrademarks": "overFlow",
|
||||
"publisherName": "LOAFLE",
|
||||
"icon": "config/build/windows/icon/icon.ico"
|
||||
"icon": "config/build/windows/icon/overflow_256.ico"
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
"perMachine": true,
|
||||
"allowToChangeInstallationDirectory": true,
|
||||
"installerIcon": "config/build/windows/icon/icon.ico",
|
||||
"uninstallerIcon": "config/build/windows/icon/icon.ico",
|
||||
"allowToChangeInstallationDirectory": false,
|
||||
"installerIcon": "config/build/windows/icon/overflow_256.ico",
|
||||
"installerHeader": "installerHeader.bmp",
|
||||
"uninstallerIcon": "config/build/windows/icon/overflow_256.ico",
|
||||
"include": "config/build/windows/nsis/installer.nsh",
|
||||
"artifactName": "${productName} Setup ${version}.${ext}",
|
||||
"menuCategory": "overFlow"
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "overflow-network-scanner-app",
|
||||
"name": "@overflow/network-scanner",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"author": {
|
||||
|
@ -8,7 +8,7 @@
|
|||
"url": "https://www.loafle.com"
|
||||
},
|
||||
"homepage": "https://www.loafle.com",
|
||||
"description": "Desktop App for overFlow Network Scanner",
|
||||
"description": "overFlow Network Scanner is a utility that finds and manages network resources.",
|
||||
"scripts": {
|
||||
"postinstall": "npm-run-all -s electron:builder:install-app-deps",
|
||||
"ng": "ng",
|
||||
|
|
|
@ -79,8 +79,8 @@ export class AppWindow {
|
|||
)
|
||||
: path.join(
|
||||
__dirname,
|
||||
'..',
|
||||
'..',
|
||||
'assets',
|
||||
'image',
|
||||
'icon',
|
||||
'512x512.png'
|
||||
)
|
||||
|
|
|
@ -190,7 +190,7 @@ app.on('ready', () => {
|
|||
|
||||
const dbPath = __DEV__
|
||||
? path.join(__dirname, '..', '..', 'config', '_database.sqlite')
|
||||
: path.join(__dirname, '..', '..', 'bin', 'database.sqlite');
|
||||
: path.join(__dirname, '..', 'bin', 'database.sqlite');
|
||||
|
||||
db = new sqlite3.Database(dbPath, sqlite3.OPEN_READONLY, (err: Error) => {
|
||||
if (err) {
|
||||
|
@ -200,7 +200,7 @@ app.on('ready', () => {
|
|||
});
|
||||
|
||||
if (!__DEV__) {
|
||||
const probePath = path.join(__dirname, '..', '..', 'bin', 'probe');
|
||||
const probePath = path.join(__dirname, '..', 'bin', 'probe');
|
||||
probeProcess = ChildProcess.spawn(probePath, [], { stdio: ['ignore', 'ignore', 'ignore'], detached: true });
|
||||
}
|
||||
|
||||
|
|