Browse Source

fix version

ruki 4 years ago
parent
commit
398029aaa4

+ 1 - 1
packages/d/directxshadercompiler/xmake.lua

@@ -5,7 +5,7 @@ package("directxshadercompiler")
     set_license("LLVM")
     set_license("LLVM")
 
 
     local date = {["1.5.2010"] = "2020_10-22"}
     local date = {["1.5.2010"] = "2020_10-22"}
-    add_urls("https://github.com/microsoft/DirectXShaderCompiler/releases/download/v$(version).zip", {version = function (version) return version .. "/dxc_" .. date[version] end})
+    add_urls("https://github.com/microsoft/DirectXShaderCompiler/releases/download/v$(version).zip", {version = function (version) return version .. "/dxc_" .. date[tostring(version)] end})
     add_versions("1.5.2010", "b691f63778f470ebeb94874426779b2f60685fc8711adf1b1f9f01535d9b67f8")
     add_versions("1.5.2010", "b691f63778f470ebeb94874426779b2f60685fc8711adf1b1f9f01535d9b67f8")
 
 
     set_kind("binary")
     set_kind("binary")

+ 1 - 1
packages/d/directxtk/xmake.lua

@@ -9,7 +9,7 @@ package("DirectXTK")
                 local versions = {
                 local versions = {
                     ["20.9.0"] = "sept2020"
                     ["20.9.0"] = "sept2020"
                 }
                 }
-                return versions[version]
+                return versions[tostring(version)]
             end})
             end})
 
 
     add_versions("20.9.0", "9d5131243bf3e33db2e3a968720d860abdcbbe7cb037c2cb5dd06046d439ed09")
     add_versions("20.9.0", "9d5131243bf3e33db2e3a968720d860abdcbbe7cb037c2cb5dd06046d439ed09")

+ 1 - 1
packages/l/libwebp/xmake.lua

@@ -6,7 +6,7 @@ package("libwebp")
 
 
     local commits = {["1.1.0"] = "d7844e9762b61c9638c263657bd49e1690184832"}
     local commits = {["1.1.0"] = "d7844e9762b61c9638c263657bd49e1690184832"}
     add_urls("https://github.com/webmproject/libwebp/archive/v$(version).tar.gz", {alias = "github"})
     add_urls("https://github.com/webmproject/libwebp/archive/v$(version).tar.gz", {alias = "github"})
-    add_urls("https://chromium.googlesource.com/webm/libwebp/+archive/$(version).tar.gz", {alias = "google", version = function (version) return commits[version] end})
+    add_urls("https://chromium.googlesource.com/webm/libwebp/+archive/$(version).tar.gz", {alias = "google", version = function (version) return commits[tostring(version)] end})
     add_versions("github:1.1.0", "424faab60a14cb92c2a062733b6977b4cc1e875a6398887c5911b3a1a6c56c51")
     add_versions("github:1.1.0", "424faab60a14cb92c2a062733b6977b4cc1e875a6398887c5911b3a1a6c56c51")
     add_versions("google:1.1.0", "538fa4368f303251f7a672db5bf9970089493fab58c0d457e31a89703d9a786b")
     add_versions("google:1.1.0", "538fa4368f303251f7a672db5bf9970089493fab58c0d457e31a89703d9a786b")
 
 

+ 1 - 1
packages/s/sfntly/xmake.lua

@@ -4,7 +4,7 @@ package("sfntly")
     set_description("The sfntly project contains Java and C++ libraries for reading, editing, and writing sfnt container fonts (OpenType, TrueType, AAT/GX, and Graphite.)")
     set_description("The sfntly project contains Java and C++ libraries for reading, editing, and writing sfnt container fonts (OpenType, TrueType, AAT/GX, and Graphite.)")
 
 
     local commits = {["20190917"] = "1e7adf313bd9c488a70015f8df8782f7c65e9ce7"}
     local commits = {["20190917"] = "1e7adf313bd9c488a70015f8df8782f7c65e9ce7"}
-    add_urls("https://github.com/googlefonts/sfntly/archive/$(version).zip", {version = function (version) return commits[version] end})
+    add_urls("https://github.com/googlefonts/sfntly/archive/$(version).zip", {version = function (version) return commits[tostring(version)] end})
     add_versions("20190917", "8b27d570624dcbe1769c64274c75cfce4afc9d12893b0b8acba090e5c870e51f")
     add_versions("20190917", "8b27d570624dcbe1769c64274c75cfce4afc9d12893b0b8acba090e5c870e51f")
 
 
     add_deps("icu4c")
     add_deps("icu4c")