feat: 添加官方的一些包工具脚本

This commit is contained in:
2025-12-20 16:44:05 +08:00
parent 91a587380d
commit aa54adf108
10 changed files with 1301 additions and 1 deletions

16
scripts/sync.lua Normal file
View File

@@ -0,0 +1,16 @@
import("core.base.option")
function main()
print("update xmake-repo ..")
os.exec("git clone git@github.com:xmake-io/xmake-repo.git -b dev --recurse-submodules")
os.cd("xmake-repo")
os.exec("git push git@gitlab.com:tboox/xmake-repo.git dev")
os.exec("git push git@gitee.com:tboox/xmake-repo.git dev")
os.exec("git push git@gitcode.com:xmake-io/xmake-repo.git dev")
os.exec("git checkout master")
os.exec("git merge dev")
os.exec("git push git@github.com:xmake-io/xmake-repo.git master")
os.exec("git push git@gitlab.com:tboox/xmake-repo.git master")
os.exec("git push git@gitee.com:tboox/xmake-repo.git master")
os.exec("git push git@gitcode.com:xmake-io/xmake-repo.git master")
end