support to select xmake/branch and fix links
This reverts commit ce4766f0f3.
ce4766f0f3
fix version detection