From 4657600cfabb19a19f1701049fae218fbf5fc288 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 26 Dec 2021 21:59:01 +0800 Subject: [PATCH] Update new.lua --- scripts/new.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/new.lua b/scripts/new.lua index 17637cb5a..c9ca78802 100644 --- a/scripts/new.lua +++ b/scripts/new.lua @@ -64,7 +64,7 @@ function _generate_package_from_github(reponame) if type(latest_release) == "table" then local url = ("https://github.com/%s/archive/refs/tags/%s.tar.gz"):format(reponame, latest_release.tagName) local giturl = ("https://github.com/%s.git"):format(reponame) - file:print(' add_urls("%s",', url) + file:write(' add_urls("https://github.com/' .. reponame .. '/archive/refs/tags/$(version).tar.gz",\n') file:print(' "%s")', giturl) local tmpfile = os.tmpfile({ramdisk = false}) .. ".tar.gz" repodir = tmpfile .. ".dir"