Skip to content

Commit

Permalink
doc: update tauri.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 23, 2024
1 parent dd0d19c commit 564ef54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/tauri.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,15 @@ tauri = { version = "...", features = ["...", "devtools"] }

安卓开发
---

### 环境变量
<!--rehype:wrap-class=col-span-2-->
`JAVA_HOME`

`ANDROID_HOME`

`NDK_HOME`

### 准备目标
<!--rehype:wrap-class=col-span-2-->

Expand All @@ -173,20 +175,24 @@ $ rm -r src-tauri/gen
$ npm run tauri android init
$ npm run tauri icon
```

修改应用名:%app_path%\src-tauri\gen\android\app\src\main\res\values\strings.xml

### 编译
<!--rehype:wrap-class=col-span-2-->
```bash
$ npm run tauri android dev
$ npm run tauri android build
```

### 签名
<!--rehype:wrap-class=col-span-2-->
```bash
$ keytool -genkey -alias android.keystore -keyalg RSA -validity 20000 -keystore android.keystore
$ zipalign -p -f -v 4 unsigned.apk release.apk
$ apksigner sign --ks android.keystore release.apk
```

配置
---

Expand Down

0 comments on commit 564ef54

Please sign in to comment.