mirror of
https://gitlab.com/vyla-entertainment/go.git
synced 2026-11-09 13:07:21 -05:00
67 lines
1.7 KiB
Markdown
67 lines
1.7 KiB
Markdown
|
|
## Development & Build
|
|
|
|
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
|
|
|
|
Set credentials once per session, then run release:
|
|
```powershell
|
|
$env:ANDROID_HOME = "$env:LOCALAPPDATA\Android\Sdk"
|
|
$env:NDK_HOME = "$env:LOCALAPPDATA\Android\Sdk\ndk\29.0.13846066"
|
|
$env:GITLAB_TOKEN = "your-token-here"
|
|
npm run release
|
|
```
|
|
|
|
This builds the payload, compiles the APK for arm64 and x86_64, commits and tags the version, uploads all artifacts, and creates the GitLab release automatically.
|
|
|
|
## 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 and 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
|
|
``` |