doc: update tauri.md
This commit is contained in:
		@@ -155,6 +155,7 @@ tauri = { version = "...", features = ["...", "devtools"] }
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
安卓开发
 | 
					安卓开发
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 环境变量
 | 
					### 环境变量
 | 
				
			||||||
<!--rehype:wrap-class=col-span-2-->
 | 
					<!--rehype:wrap-class=col-span-2-->
 | 
				
			||||||
`JAVA_HOME`
 | 
					`JAVA_HOME`
 | 
				
			||||||
@@ -162,6 +163,7 @@ tauri = { version = "...", features = ["...", "devtools"] }
 | 
				
			|||||||
`ANDROID_HOME`
 | 
					`ANDROID_HOME`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
`NDK_HOME`
 | 
					`NDK_HOME`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 准备目标
 | 
					### 准备目标
 | 
				
			||||||
<!--rehype:wrap-class=col-span-2-->
 | 
					<!--rehype:wrap-class=col-span-2-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -173,13 +175,16 @@ $ rm -r src-tauri/gen
 | 
				
			|||||||
$ npm run tauri android init
 | 
					$ npm run tauri android init
 | 
				
			||||||
$ npm run tauri icon
 | 
					$ npm run tauri icon
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
修改应用名:%app_path%\src-tauri\gen\android\app\src\main\res\values\strings.xml
 | 
					修改应用名:%app_path%\src-tauri\gen\android\app\src\main\res\values\strings.xml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 编译
 | 
					### 编译
 | 
				
			||||||
<!--rehype:wrap-class=col-span-2-->
 | 
					<!--rehype:wrap-class=col-span-2-->
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
$ npm run tauri android dev
 | 
					$ npm run tauri android dev
 | 
				
			||||||
$ npm run tauri android build
 | 
					$ npm run tauri android build
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### 签名
 | 
					### 签名
 | 
				
			||||||
<!--rehype:wrap-class=col-span-2-->
 | 
					<!--rehype:wrap-class=col-span-2-->
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
@@ -187,6 +192,7 @@ $ keytool -genkey -alias android.keystore -keyalg RSA -validity 20000 -keystore
 | 
				
			|||||||
$ zipalign -p -f -v 4 unsigned.apk release.apk
 | 
					$ zipalign -p -f -v 4 unsigned.apk release.apk
 | 
				
			||||||
$ apksigner sign --ks android.keystore release.apk
 | 
					$ apksigner sign --ks android.keystore release.apk
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
配置
 | 
					配置
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user