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 -2
View File
@@ -8,8 +8,12 @@ import { unixInstall } from './unix-install';
async function run(): Promise<void> {
try {
const version = await selectVersion();
if (os.platform() === 'win32' || os.platform() === 'cygwin') await winInstall(version);
else await unixInstall(version);
if (os.platform() === 'win32' || os.platform() === 'cygwin') {
const latest = await selectVersion('latest');
await winInstall(version, latest);
} else {
await unixInstall(version);
}
await exec('xmake --version');
} catch (error) {
const ex = error as Error;