mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 18:06:38 +00:00
parent
2c6a2e7a8b
commit
949eaf2b8b
@ -52,3 +52,6 @@ win:
|
|||||||
|
|
||||||
nsis:
|
nsis:
|
||||||
perMachine: true
|
perMachine: true
|
||||||
|
oneClick: false
|
||||||
|
allowToChangeInstallationDirectory: true
|
||||||
|
license: "LICENSE"
|
||||||
|
8
main.js
8
main.js
@ -48,6 +48,10 @@ const createServerProc = () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (serverPath == null) {
|
||||||
|
console.error('gns3server cannot be found');
|
||||||
|
}
|
||||||
|
|
||||||
if (serverPath != null) {
|
if (serverPath != null) {
|
||||||
serverProc = require('child_process').execFile(serverPath, []);
|
serverProc = require('child_process').execFile(serverPath, []);
|
||||||
|
|
||||||
@ -113,8 +117,8 @@ function createWindow () {
|
|||||||
// Some APIs can only be used after this event occurs.
|
// Some APIs can only be used after this event occurs.
|
||||||
app.on('ready', createWindow);
|
app.on('ready', createWindow);
|
||||||
|
|
||||||
// app.on('ready', createServerProc);
|
app.on('ready', createServerProc);
|
||||||
// app.on('will-quit', exitServerProc);
|
app.on('will-quit', exitServerProc);
|
||||||
|
|
||||||
// Quit when all windows are closed.
|
// Quit when all windows are closed.
|
||||||
app.on('window-all-closed', function () {
|
app.on('window-all-closed', function () {
|
||||||
|
@ -84,7 +84,7 @@ def download_command(arguments):
|
|||||||
shutil.rmtree(SOURCE_DESTINATION, ignore_errors=True)
|
shutil.rmtree(SOURCE_DESTINATION, ignore_errors=True)
|
||||||
os.makedirs(SOURCE_DESTINATION)
|
os.makedirs(SOURCE_DESTINATION)
|
||||||
|
|
||||||
download("https://github.com/GNS3/gns3-server/archive/2.1.zip", SOURCE_ZIP)
|
download("https://github.com/GNS3/gns3-server/archive/2.2.zip", SOURCE_ZIP)
|
||||||
|
|
||||||
files = unzip(SOURCE_ZIP, SOURCE_DESTINATION)
|
files = unzip(SOURCE_ZIP, SOURCE_DESTINATION)
|
||||||
source_directory = os.path.join(SOURCE_DESTINATION, files[0].filename)
|
source_directory = os.path.join(SOURCE_DESTINATION, files[0].filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user