mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-11 13:03:05 +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",
|
"name": "gns3-web-ui",
|
||||||
"version": "2019.2.0-alpha.2dev",
|
"version": "2019.2.0-alpha.1",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "GNS3 Technology Inc.",
|
"name": "GNS3 Technology Inc.",
|
||||||
"email": "developers@gns3.com"
|
"email": "developers@gns3.com"
|
||||||
|
@ -208,10 +208,12 @@ def download_command(arguments):
|
|||||||
|
|
||||||
if arguments.l:
|
if arguments.l:
|
||||||
version = get_latest_version()
|
version = get_latest_version()
|
||||||
|
download_url = "https://api.github.com/repos/GNS3/gns3-server/zipball/v{version}"
|
||||||
else:
|
else:
|
||||||
version = DEFAULT_GNS3_SERVER_DEV_BRANCH
|
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)
|
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