mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-19 04:57:51 +00:00
Merge pull request #243 from GNS3/windows-installation-improvements
License view and ask for path to install on Windows, Fixes: #242, #241
This commit is contained in:
commit
f4fbfe1ed3
@ -52,3 +52,6 @@ win:
|
||||
|
||||
nsis:
|
||||
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) {
|
||||
serverProc = require('child_process').execFile(serverPath, []);
|
||||
|
||||
@ -113,8 +117,8 @@ function createWindow () {
|
||||
// Some APIs can only be used after this event occurs.
|
||||
app.on('ready', createWindow);
|
||||
|
||||
// app.on('ready', createServerProc);
|
||||
// app.on('will-quit', exitServerProc);
|
||||
app.on('ready', createServerProc);
|
||||
app.on('will-quit', exitServerProc);
|
||||
|
||||
// Quit when all windows are closed.
|
||||
app.on('window-all-closed', function () {
|
||||
|
@ -84,7 +84,7 @@ def download_command(arguments):
|
||||
shutil.rmtree(SOURCE_DESTINATION, ignore_errors=True)
|
||||
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)
|
||||
source_directory = os.path.join(SOURCE_DESTINATION, files[0].filename)
|
||||
|
Loading…
Reference in New Issue
Block a user