mirror of
https://gitlab.com/vyla-entertainment/go.git
synced 2026-11-12 14:37:21 -05:00
57 lines
1.3 KiB
Markdown
57 lines
1.3 KiB
Markdown
Install dependencies:
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
Build the update payload:
|
|
```bash
|
|
npm run build:payload
|
|
```
|
|
|
|
Compile and assemble the release APK:
|
|
```bash
|
|
npm run build:apk
|
|
```
|
|
|
|
Release to GitLab:
|
|
```bash
|
|
npm run release
|
|
```
|
|
|
|
## Logs
|
|
|
|
Stream live device logs:
|
|
```powershell
|
|
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" logcat -s VylaGo
|
|
```
|
|
|
|
Clear the logcat buffer then stream:
|
|
```powershell
|
|
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" logcat -c; & "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" logcat -s VylaGo
|
|
```
|
|
|
|
Dump logs to file:
|
|
```powershell
|
|
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" logcat -d -s VylaGo > vyla-go.log
|
|
```
|
|
|
|
Show all crash/fatal logs:
|
|
```powershell
|
|
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" logcat -d | Select-String "VylaGo|AndroidRuntime|FATAL"
|
|
```
|
|
|
|
List connected devices:
|
|
```powershell
|
|
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" devices
|
|
```
|
|
|
|
Install APK directly to device:
|
|
```powershell
|
|
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" install -r "src-tauri\gen\android\app\build\outputs\apk\universal\release\app-universal-release.apk"
|
|
```
|
|
|
|
Force-stop and clear app data:
|
|
```powershell
|
|
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" shell am force-stop com.vyla.go
|
|
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" shell pm clear com.vyla.go
|
|
``` |