diff --git a/docs/README.md b/docs/README.md index fe49b29..67c6c03 100644 --- a/docs/README.md +++ b/docs/README.md @@ -2,18 +2,25 @@ Android Studio Virtual Device Emulator Runner -## 调试说明 +
+调试说明 + 1. Applications 文件夹下必须要有 类似 `Android 13.app` 文件夹 2. `Android 13.app` 文件夹可以从 release 下载 3. electron安装可使用镜像源`yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/` +4. adb 技术资料 https://github.com/mzlogin/awesome-adb +
-## TODO +
+TODO - [ ] nodejs 读取ini配置文件 - [ ] EmulateConfig 路由参数传递问题 传递ID和 emulatorLists 或者直接传个JSON 过去, 如果有变更就提示 保存, 没有变更就不提示 - [ ] `console` 提示的几个问题 +
-## REQ +
+REQ 1. [Android Studio](https://developer.android.com/studio) 2. [Android SDK](https://developer.android.com/studio/releases/platform-tools) @@ -24,6 +31,10 @@ Android Studio Virtual Device Emulator Runner 7. [XML Config](https://dl.google.com/android/repository/addons_list-5.xml) 8. [Android 12 System Image](https://dl.google.com/android/repository/sys-img/android/x86_64-32_r01.zip) 9[Android 12 System Image With Google API](https://dl.google.com/android/repository/sys-img/google_apis/x86_64-32_r07.zip) +
+ +
+Android Api Map - Android 5.1 (Lollipop): API level 22 - Android 6.0 (Marshmallow): API level 23 @@ -36,9 +47,7 @@ Android Studio Virtual Device Emulator Runner - Android 12: API level 32 - Android 13: API level 33 - Android 14: API level 34 - - - +
diff --git a/electron/main/index.ts b/electron/main/index.ts index fc939e3..ed7a047 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -66,7 +66,7 @@ if (!app.requestSingleInstanceLock()) { let staticPath = join(process.env.DIST, '/assets') if (process.env.DIST.includes('/Contents/Resources/')) { process.env.configFilePath = join(process.env.DIST, '../../config.json') - staticPath = join(process.env.DIST, '../../Resources/') + staticPath = join(process.env.DIST, '../../') } switch (process.platform) { case 'darwin': @@ -133,7 +133,7 @@ async function createWindow() { // frame: true, titleBarStyle: 'hiddenInset', icon: join(process.env.VITE_PUBLIC, 'icon.png'), - alwaysOnTop: true, + // alwaysOnTop: true, webPreferences: { preload, // Warning: Enable nodeIntegration and disable contextIsolation is not secure in production @@ -320,7 +320,8 @@ ipcMain.on('getICons', (event, args) => { console.log("getICons error", args) return; } - if (!existsSync(args[0])) { + console.log(staticPath) + if (!existsSync(args[1])) { try { copyFileSync(args[0], join(staticPath, args[1] + '.png')) event.returnValue = join(staticPath, args[1] + '.png') diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index b6f8a5d..d793f4f 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -59,7 +59,6 @@ function emulatorListApp() { } catch (err) { avdIcon = "/icon.png"; } - if (emulatorLists.value[avdID] === undefined) { emulatorLists.value[avdID] = { avd: avdID, @@ -637,4 +636,4 @@ ul { .text-shadow-primary { text-shadow: 0 0 6px rgb(44 138 248 / 40%); } - \ No newline at end of file +