Skip to content

Commit 1efdcf1

Browse files
committed
更新
1 parent 20749d8 commit 1efdcf1

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

Diff for: docs/README.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@
22

33
Android Studio Virtual Device Emulator Runner
44

5-
## 调试说明
5+
<details>
6+
<summary>调试说明</summary>
7+
68
1. Applications 文件夹下必须要有 类似 `Android 13.app` 文件夹
79
2. `Android 13.app` 文件夹可以从 release 下载
810
3. electron安装可使用镜像源`yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/`
11+
4. adb 技术资料 https://github.com/mzlogin/awesome-adb
12+
</details>
913

10-
## TODO
14+
<details>
15+
<summary>TODO</summary>
1116

1217
- [ ] nodejs 读取ini配置文件
1318
- [ ] EmulateConfig 路由参数传递问题 传递ID和 emulatorLists 或者直接传个JSON 过去, 如果有变更就提示 保存, 没有变更就不提示
1419
- [ ] `console` 提示的几个问题
20+
</details>
1521

16-
## REQ
22+
<details>
23+
<summary>REQ</summary>
1724

1825
1. [Android Studio](https://developer.android.com/studio)
1926
2. [Android SDK](https://developer.android.com/studio/releases/platform-tools)
@@ -24,6 +31,10 @@ Android Studio Virtual Device Emulator Runner
2431
7. [XML Config](https://dl.google.com/android/repository/addons_list-5.xml)
2532
8. [Android 12 System Image](https://dl.google.com/android/repository/sys-img/android/x86_64-32_r01.zip)
2633
9[Android 12 System Image With Google API](https://dl.google.com/android/repository/sys-img/google_apis/x86_64-32_r07.zip)
34+
</details>
35+
36+
<details>
37+
<summary>Android Api Map</summary>
2738

2839
- Android 5.1 (Lollipop): API level 22
2940
- Android 6.0 (Marshmallow): API level 23
@@ -36,9 +47,7 @@ Android Studio Virtual Device Emulator Runner
3647
- Android 12: API level 32
3748
- Android 13: API level 33
3849
- Android 14: API level 34
39-
40-
41-
50+
</details>
4251

4352

4453

Diff for: electron/main/index.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (!app.requestSingleInstanceLock()) {
6666
let staticPath = join(process.env.DIST, '/assets')
6767
if (process.env.DIST.includes('/Contents/Resources/')) {
6868
process.env.configFilePath = join(process.env.DIST, '../../config.json')
69-
staticPath = join(process.env.DIST, '../../Resources/')
69+
staticPath = join(process.env.DIST, '../../')
7070
}
7171
switch (process.platform) {
7272
case 'darwin':
@@ -133,7 +133,7 @@ async function createWindow() {
133133
// frame: true,
134134
titleBarStyle: 'hiddenInset',
135135
icon: join(process.env.VITE_PUBLIC, 'icon.png'),
136-
alwaysOnTop: true,
136+
// alwaysOnTop: true,
137137
webPreferences: {
138138
preload,
139139
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
@@ -320,7 +320,8 @@ ipcMain.on('getICons', (event, args) => {
320320
console.log("getICons error", args)
321321
return;
322322
}
323-
if (!existsSync(args[0])) {
323+
console.log(staticPath)
324+
if (!existsSync(args[1])) {
324325
try {
325326
copyFileSync(args[0], join(staticPath, args[1] + '.png'))
326327
event.returnValue = join(staticPath, args[1] + '.png')

Diff for: src/components/DashBoard.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ function emulatorListApp() {
5959
} catch (err) {
6060
avdIcon = "/icon.png";
6161
}
62-
6362
if (emulatorLists.value[avdID] === undefined) {
6463
emulatorLists.value[avdID] = {
6564
avd: avdID,
@@ -637,4 +636,4 @@ ul {
637636
.text-shadow-primary {
638637
text-shadow: 0 0 6px rgb(44 138 248 / 40%);
639638
}
640-
</style>
639+
</style>

0 commit comments

Comments
 (0)