2
0
star9029 7 сар өмнө
parent
commit
2801e1540c

+ 6 - 3
packages/w/w64devkit/xmake.lua

@@ -7,17 +7,20 @@ package("w64devkit")
     if os.arch() == "x64" then
     if os.arch() == "x64" then
         add_urls("https://github.com/skeeto/w64devkit/releases/download/v$(version)/w64devkit-x64-$(version).exe")
         add_urls("https://github.com/skeeto/w64devkit/releases/download/v$(version)/w64devkit-x64-$(version).exe")
 
 
+        add_versions("2.1.0", "3839da025a192e9cacd5caa3ed5150153ab2255800d3672213a5c66e11d6e618")
         add_versions("2.0.0", "cea23fc56a5e61457492113a8377c8ab0c42ed82303fcc454ccd1963a46f8ce1")
         add_versions("2.0.0", "cea23fc56a5e61457492113a8377c8ab0c42ed82303fcc454ccd1963a46f8ce1")
     elseif os.arch() == "x86" then
     elseif os.arch() == "x86" then
         add_urls("https://github.com/skeeto/w64devkit/releases/download/v$(version)/w64devkit-x86-$(version).exe")
         add_urls("https://github.com/skeeto/w64devkit/releases/download/v$(version)/w64devkit-x86-$(version).exe")
 
 
+        add_versions("2.1.0", "fadf16261e03c7ca3169e89ca274e0bb673e4c31f8f572bd005e401fb39a7023")
         add_versions("2.0.0", "20ad6ef39c6b5fa0a0f49ec11891224a5856071976f4cb4042106a2451feef61")
         add_versions("2.0.0", "20ad6ef39c6b5fa0a0f49ec11891224a5856071976f4cb4042106a2451feef61")
     end
     end
 
 
+    set_policy("package.precompiled", false)
+
     on_install("@windows|x64", function (package)
     on_install("@windows|x64", function (package)
-        local archive = format("../w64devkit-%s-%s.exe", package:arch(), package:version_str())
-        os.vrunv("7z", {"x", archive, "-o."})
-        os.cp("w64devkit/*", package:installdir())
+        os.vrunv("7z", {"x", package:originfile(), "-o."})
+        os.mv("w64devkit/*", package:installdir())
     end)
     end)
 
 
     on_test(function (package)
     on_test(function (package)