mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-18 20:47:51 +00:00
Fix download url for gns3server, Ref: #387
This commit is contained in:
parent
940a93c66d
commit
b1cf54b03a
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gns3-web-ui",
|
||||
"version": "2019.2.0-alpha.2dev",
|
||||
"version": "2019.2.0-alpha.1",
|
||||
"author": {
|
||||
"name": "GNS3 Technology Inc.",
|
||||
"email": "developers@gns3.com"
|
||||
|
@ -208,10 +208,12 @@ def download_command(arguments):
|
||||
|
||||
if arguments.l:
|
||||
version = get_latest_version()
|
||||
download_url = "https://api.github.com/repos/GNS3/gns3-server/zipball/v{version}"
|
||||
else:
|
||||
version = DEFAULT_GNS3_SERVER_DEV_BRANCH
|
||||
download_url = "https://github.com/GNS3/gns3-server/archive/{version}.zip"
|
||||
|
||||
download("https://github.com/GNS3/gns3-server/archive/{version}.zip".format(version=version), SOURCE_ZIP)
|
||||
download(download_url.format(version=version), 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