download dev from github releases

fix ci

remove unused import

fix releases
This commit is contained in:
ruki
2021-07-16 22:37:18 +08:00
committed by Opportunity
Unverified
parent 2f05f7c4ad
commit b126f6b6d1
6 changed files with 30 additions and 22 deletions
+6 -3
View File
@@ -9,10 +9,13 @@ const unix_install_1 = require("./unix-install");
async function run() {
try {
const version = await versions_1.selectVersion();
if (os.platform() === 'win32' || os.platform() === 'cygwin')
await win_install_1.winInstall(version);
else
if (os.platform() === 'win32' || os.platform() === 'cygwin') {
const latest = await versions_1.selectVersion('latest');
await win_install_1.winInstall(version, latest);
}
else {
await unix_install_1.unixInstall(version);
}
await exec_1.exec('xmake --version');
}
catch (error) {