Update new.lua

pull/799/head
ruki 3 years ago committed by GitHub
parent cab1c5ccc2
commit 4657600cfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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"

Loading…
Cancel
Save