浏览代码

fix new.lua url

ruki 2 年之前
父节点
当前提交
ad20e070e4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/new.lua

+ 1 - 1
scripts/new.lua

@@ -105,7 +105,7 @@ function generate_package(reponame, get_data)
         local tmpfile = os.tmpfile({ramdisk = false}) .. ".tar.gz"
         repodir = tmpfile .. ".dir"
 
-        file:write('    add_urls("https://' .. host .. '/' .. reponame .. '/-/archive/$(version).tar.gz",\n')
+        file:write('    add_urls("https://' .. host .. '/' .. reponame .. '/archive/refs/tags/$(version).tar.gz",\n')
         file:print('             "%s")\n', giturl)
 
         print("downloading %s", url)