WIP - windows support

This commit is contained in:
Yang
2020-08-12 18:13:27 +10:00
parent 31e4885c24
commit b7eed610b6
3 changed files with 8 additions and 34 deletions
+2 -8
View File
@@ -37,14 +37,8 @@ const script_parser_1 = require("./script-parser");
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
// only support running on macOS or Linux
if (process.platform !== 'darwin') {
if (process.platform === 'linux') {
console.warn(`You're running a Linux VM where hardware acceleration is not available. Please consider using a macOS VM instead to take advantage of native hardware acceleration support provided by HAXM.`);
}
else {
throw new Error('Unsupported virtual machine: please use either macos or ubuntu VM.');
}
if (process.platform === 'linux') {
console.warn(`You're running a Linux VM where hardware acceleration is not available. Please consider using a macOS VM instead to take advantage of native hardware acceleration support provided by HAXM.`);
}
// API level of the platform and system image
const apiLevelInput = core.getInput('api-level', { required: true });