소스 검색

Update new.lua

ruki 3 년 전
부모
커밋
4657600cfa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/new.lua

+ 1 - 1
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"