Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Ran-Xing committed May 7, 2024
1 parent 20749d8 commit 1efdcf1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
21 changes: 15 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

Android Studio Virtual Device Emulator Runner

## 调试说明
<details>
<summary>调试说明</summary>

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
</details>

## TODO
<details>
<summary>TODO</summary>

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

## REQ
<details>
<summary>REQ</summary>

1. [Android Studio](https://developer.android.com/studio)
2. [Android SDK](https://developer.android.com/studio/releases/platform-tools)
Expand All @@ -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)
</details>

<details>
<summary>Android Api Map</summary>

- Android 5.1 (Lollipop): API level 22
- Android 6.0 (Marshmallow): API level 23
Expand All @@ -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



</details>



7 changes: 4 additions & 3 deletions electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down
3 changes: 1 addition & 2 deletions src/components/DashBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function emulatorListApp() {
} catch (err) {
avdIcon = "/icon.png";
}
if (emulatorLists.value[avdID] === undefined) {
emulatorLists.value[avdID] = {
avd: avdID,
Expand Down Expand Up @@ -637,4 +636,4 @@ ul {
.text-shadow-primary {
text-shadow: 0 0 6px rgb(44 138 248 / 40%);
}
</style>
</style>

0 comments on commit 1efdcf1

Please sign in to comment.