This commit is contained in:
2026-09-08 16:58:04 -07:00
parent 1612d70da0
commit 6d38d9c335
3 changed files with 29 additions and 22 deletions

View File

@@ -1,3 +1,6 @@
## Development & Build
Install dependencies:
```bash
npm install
@@ -13,11 +16,18 @@ Compile and assemble the release APK:
npm run build:apk
```
Release to GitLab:
```bash
## 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:
@@ -35,7 +45,7 @@ Dump logs to file:
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" logcat -d -s VylaGo > vyla-go.log
```
Show all crash/fatal logs:
Show all crash and fatal logs:
```powershell
& "$env:LOCALAPPDATA\Android\Sdk\platform-tools\adb.exe" logcat -d | Select-String "VylaGo|AndroidRuntime|FATAL"
```

View File

@@ -3,31 +3,17 @@
Vyla Go is the native Android mobile launcher for the Vyla media ecosystem.
## Features
- **Native Android APK Architecture**: Built on Tauri v2 with native hardware acceleration.
- **Automated Resource Management**: Downloads, unpacks, and updates core services directly from official releases.
- **Hardware Shader Interface**: Real-time WebGL shader lighting and glassmorphism elements.
## Prerequisites
- Node.js 20+
- Rust & Cargo
- Android Studio with Android SDK & NDK 29+
- Toolchain targets:
```bash
rustup target add aarch64-linux-android
```
## Development & Build
Install dependencies:
```bash
npm install
```
Compile and assemble the release APK:
```bash
npm run build:apk
```
Release packages to GitLab:
```bash
npm run release
rustup target add aarch64-linux-android x86_64-linux-android
```

View File

@@ -137,11 +137,22 @@ async function main() {
const version = `v${rawVersion}`;
console.log(`Releasing ${version}...`);
const androidHome = process.env.ANDROID_HOME || `${process.env.LOCALAPPDATA}\\Android\\Sdk`;
const ndkHome = process.env.NDK_HOME || `${androidHome}\\ndk\\29.0.13846066`;
const buildEnv = {
...process.env,
ANDROID_HOME: androidHome,
NDK_HOME: ndkHome,
GITLAB_TOKEN: TOKEN,
VYLA_GITLAB_TOKEN: TOKEN,
};
console.log('Building payload...');
execSync('npm run build:payload', { stdio: 'inherit' });
execSync('npm run build:payload', { stdio: 'inherit', env: buildEnv });
console.log('Building APK...');
execSync('npm run build:apk', { stdio: 'inherit' });
execSync('npm run build:apk', { stdio: 'inherit', env: buildEnv });
const apkSearchDirs = [
path.join(__dirname, 'src-tauri', 'gen', 'android', 'app', 'build', 'outputs', 'apk', 'universal', 'release'),