Update to Node 24. (#466)

This commit is contained in:
Yang
2026-03-14 19:10:07 +11:00
committed by GitHub
parent 597aa7c21b
commit 6fe36e1748
19 changed files with 4425 additions and 3576 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ export async function createAvd(
ramSize: string,
sdcardPathOrSize: string,
systemImageApiLevel: string,
target: string
target: string,
): Promise<void> {
try {
console.log(`::group::Create AVD`);
@@ -27,7 +27,7 @@ export async function createAvd(
const sdcardPathOrSizeOption = sdcardPathOrSize.trim() !== '' ? `--sdcard '${sdcardPathOrSize}'` : '';
console.log(`Creating AVD.`);
await exec.exec(
`sh -c \\"echo no | avdmanager create avd --force -n "${avdName}" --package 'system-images;android-${systemImageApiLevel};${target};${arch}' ${profileOption} ${sdcardPathOrSizeOption}"`
`sh -c \\"echo no | avdmanager create avd --force -n "${avdName}" --package 'system-images;android-${systemImageApiLevel};${target};${arch}' ${profileOption} ${sdcardPathOrSizeOption}"`,
);
}
@@ -71,7 +71,7 @@ export async function launchEmulator(
emulatorBootTimeout: number,
emulatorOptions: string,
enableHardwareKeyboard: boolean,
port: number
port: number,
): Promise<void> {
try {
console.log(`::group::Launch Emulator`);
+1 -1
View File
@@ -33,7 +33,7 @@ async function run() {
linuxSupportKVM = true;
} catch {
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.`
`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 {
+1 -1
View File
@@ -21,7 +21,7 @@ export async function installAndroidSdk(
channelId: number,
emulatorBuild?: string,
ndkVersion?: string,
cmakeVersion?: string
cmakeVersion?: string,
): Promise<void> {
try {
console.log(`::group::Install Android SDK`);