mirror of
https://gitlab.com/vyla-entertainment/go.git
synced 2026-11-15 07:57:21 -05:00
chore: initial commit
This commit is contained in:
57
DOCUMENTATION/FORDEV.md
Normal file
57
DOCUMENTATION/FORDEV.md
Normal file
@@ -0,0 +1,57 @@
|
||||
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
|
||||
```
|
||||
Reference in New Issue
Block a user