mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-11-03 09:45:49 +00:00
WIP - windows support
This commit is contained in:
1 parent
31e4885c24
commit
b7eed610b6
3 files changed
+8
-34
No files matched your search
+4
-9
@@ -7,15 +7,10 @@ import { parseScript } from './script-parser';
|
||||
|
||||
async function run() {
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user