Skip to content

Commit 564ef54

Browse files
committed
doc: update tauri.md
1 parent dd0d19c commit 564ef54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/tauri.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,15 @@ tauri = { version = "...", features = ["...", "devtools"] }
155155

156156
安卓开发
157157
---
158+
158159
### 环境变量
159160
<!--rehype:wrap-class=col-span-2-->
160161
`JAVA_HOME`
161162

162163
`ANDROID_HOME`
163164

164165
`NDK_HOME`
166+
165167
### 准备目标
166168
<!--rehype:wrap-class=col-span-2-->
167169

@@ -173,20 +175,24 @@ $ rm -r src-tauri/gen
173175
$ npm run tauri android init
174176
$ npm run tauri icon
175177
```
178+
176179
修改应用名:%app_path%\src-tauri\gen\android\app\src\main\res\values\strings.xml
180+
177181
### 编译
178182
<!--rehype:wrap-class=col-span-2-->
179183
```bash
180184
$ npm run tauri android dev
181185
$ npm run tauri android build
182186
```
187+
183188
### 签名
184189
<!--rehype:wrap-class=col-span-2-->
185190
```bash
186191
$ keytool -genkey -alias android.keystore -keyalg RSA -validity 20000 -keystore android.keystore
187192
$ zipalign -p -f -v 4 unsigned.apk release.apk
188193
$ apksigner sign --ks android.keystore release.apk
189194
```
195+
190196
配置
191197
---
192198

0 commit comments

Comments
 (0)