Compare commits
2 Commits
+2
-2
@@ -5,8 +5,8 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"author": "OpportunityLiu",
|
"author": "OpportunityLiu",
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"repository": "https://github.com/xmake-io/github-action-setup-xmake.git",
|
"repository": "https://git.soulmc.cn/wed15/github-action-setup-xmake.git",
|
||||||
"homepage": "https://github.com/xmake-io/github-action-setup-xmake",
|
"homepage": "https://git.soulmc.cn/wed15/github-action-setup-xmake",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"watch": "tsc --watch",
|
"watch": "tsc --watch",
|
||||||
"build": "ncc build src/index.ts",
|
"build": "ncc build src/index.ts",
|
||||||
|
|||||||
+3
-3
@@ -23,7 +23,7 @@ async function getInstallerUrl(version: GitVersion, _fallback: boolean = false):
|
|||||||
if (vers !== 'dev' && vers !== 'master') {
|
if (vers !== 'dev' && vers !== 'master') {
|
||||||
vers = latestVers;
|
vers = latestVers;
|
||||||
}
|
}
|
||||||
finalUrl = `https://github.com/xmake-io/xmake/releases/download/${latestVers}/xmake-${vers}.${arch}.exe`;
|
finalUrl = `https://github.bibk.top/xmake-io/xmake/releases/download/${latestVers}/xmake-${vers}.${arch}.exe`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'pull': {
|
case 'pull': {
|
||||||
@@ -35,8 +35,8 @@ async function getInstallerUrl(version: GitVersion, _fallback: boolean = false):
|
|||||||
case 'tags': {
|
case 'tags': {
|
||||||
const arch = os.arch() === 'arm64' ? 'arm64' : os.arch() === 'x64' ? 'win64' : 'win32';
|
const arch = os.arch() === 'arm64' ? 'arm64' : os.arch() === 'x64' ? 'win64' : 'win32';
|
||||||
finalUrl = semver.gt(vers, '2.2.6')
|
finalUrl = semver.gt(vers, '2.2.6')
|
||||||
? `https://github.com/xmake-io/xmake/releases/download/${vers}/xmake-${vers}.${arch}.exe`
|
? `https://github.bibk.top/xmake-io/xmake/releases/download/${vers}/xmake-${vers}.${arch}.exe`
|
||||||
: `https://github.com/xmake-io/xmake/releases/download/${vers}/xmake-${vers}.exe`;
|
: `https://github.bibk.top/xmake-io/xmake/releases/download/${vers}/xmake-${vers}.exe`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|||||||
Reference in New Issue
Block a user