summaryrefslogtreecommitdiff
path: root/xmake/packages/git
diff options
context:
space:
mode:
authorruki <[email protected]>2017-09-22 21:02:00 +0800
committerruki <[email protected]>2017-09-22 00:12:03 +0800
commite52dcf0c8dda3fd4f1189af14ce09034d3b31b51 (patch)
treeceab0429427e8ed494d9dd97d057b2a105191e82 /xmake/packages/git
parent7440cc5f7f08f21682571ed33fa02e76a6b02afa (diff)
modify sha256s api for package
Diffstat (limited to 'xmake/packages/git')
-rw-r--r--xmake/packages/git/xmake.lua15
1 files changed, 12 insertions, 3 deletions
diff --git a/xmake/packages/git/xmake.lua b/xmake/packages/git/xmake.lua
index 1029771b1..77e8575c2 100644
--- a/xmake/packages/git/xmake.lua
+++ b/xmake/packages/git/xmake.lua
@@ -3,11 +3,20 @@ package("git")
set_kind("binary")
set_homepage("https://git-scm.com/")
set_description("A free and open source distributed version control system")
+ set_versions("v1.0.1")
if os.host() == "windows" then
- local winenv_arch = ifelse(os.arch() == "x64", "win64", "win32")
- add_urls(format("https://github.com/tboox/xmake-%senv/archive/master.zip", winenv_arch))
- add_urls(format("https://coding.net/u/waruqi/p/xmake-%senv/git/archive/master", winenv_arch))
+ if os.arch() == "x64" then
+ add_urls("https://coding.net/u/waruqi/p/xmake-win64env/git/archive/$(version).zip", {alias = "coding"})
+ add_urls("https://github.com/tboox/xmake-win64env/archive/$(version).zip", {alias = "github"})
+ add_sha256s("[email protected]", "1071c5e43613ff591bad7f5ad90fe1621a070cf20c56f06d5177e095f88c9a74")
+ add_sha256s("[email protected]", "95170b1d144ebb30961611fd87b1e9404bbe37d2d904adb15f3e202bb3e19c21")
+ else
+ add_urls("https://coding.net/u/waruqi/p/xmake-win32env/git/archive/$(version).zip", {alias = "coding"})
+ add_urls("https://github.com/tboox/xmake-win32env/archive/$(version).zip", {alias = "github"})
+ add_sha256s("[email protected]", "de8623309f956619f70a8681201ecacfb99b7694070b63c4d53756de8855697e")
+ add_sha256s("[email protected]", "3c46983379329a246596a2b5f0ff971b55e3eccbbfd34272e7121e13fb346db5")
+ end
else
add_imports("package.manager.install")
end