-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Mobile App | ||
|
||
## Introduction | ||
|
||
The mobile app is a Yew app that is compiled to WebAssembly and runs in Tauri. | ||
|
||
## Development | ||
|
||
### Prerequisites | ||
|
||
- [Rust](https://www.rust-lang.org/tools/install) | ||
- [Tauri](https://next--tauri.netlify.app/next/mobile/) | ||
|
||
```bash | ||
cargo install create-tauri-app | ||
cargo create-tauri-app | ||
cargo install [email protected] | ||
``` | ||
|
||
### Build | ||
|
||
```bash | ||
cd app | ||
cargo tauri android init | ||
cargo tauri build | ||
cargo tauri android build | ||
``` | ||
|
||
### Run | ||
|
||
```bash | ||
cargo tauri android dev | ||
``` | ||
|
||
### Deploy | ||
|
||
```bash | ||
cargo tauri android build | ||
keytool -genkey -v -keystore release.keystore -alias app -keyalg RSA -keysize 2048 -validity 10000 | ||
$ANDROID_HOME/build-tools/33.0.1/apksigner sign --ks release.keystore --out app.apk src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk | ||
adb install -r app.apk | ||
``` |