Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow resource to be a git repository #1442

Closed
xq114 opened this issue Jun 4, 2021 · 4 comments
Closed

Allow resource to be a git repository #1442

xq114 opened this issue Jun 4, 2021 · 4 comments

Comments

@xq114
Copy link
Contributor

xq114 commented Jun 4, 2021

你在什么场景下需要该功能?

resource为git repo,带submodules

描述可能的解决方案

add_resources("foo", "https://github.com/foo/bar.git", "")

其他信息

https://bkaradzic.github.io/bgfx/build.html

@waruqi
Copy link
Member

waruqi commented Jun 4, 2021

支持了,dev ,你试试

add_resources("foo", "https://github.com/foo/bar.git", "commit_or_tag")

package:resourcefile(xx) 返回的就是 resource git dir

@waruqi waruqi added this to the v2.5.5 milestone Jun 4, 2021
@xq114
Copy link
Contributor Author

xq114 commented Jun 4, 2021

第二次测试的时候报错

git clone https://github.com/bkaradzic/bimg.git C:\Users\xq114\AppData\Local\.xmake\cache\packages\2106\b\bgfx\7816\resources\bimg\bimg.git
fatal: destination path 'C:\Users\xq114\AppData\Local\.xmake\cache\packages\2106\b\bgfx\7816\resources\bimg\bimg.git' already exists and 
is not an empty directory.

是否可以加一个探测,类似download url那样?

@waruqi
Copy link
Member

waruqi commented Jun 5, 2021

再更新下试试 dev

@waruqi
Copy link
Member

waruqi commented Jun 7, 2021

这个应该可以的,你先试试吧,有问题再开。

@waruqi waruqi closed this as completed Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants