generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease.bat
More file actions
69 lines (61 loc) · 1.77 KB
/
release.bat
File metadata and controls
69 lines (61 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@echo off
REM Release script for Bando-Fi AI (Windows)
echo ======================================
echo Bando-Fi AI Release Build Script
echo ======================================
echo.
echo Step 1: Installing dependencies...
call npm install --legacy-peer-deps
if %errorlevel% neq 0 exit /b %errorlevel%
echo.
echo Step 2: Building web application...
call npm run build:web
if %errorlevel% neq 0 exit /b %errorlevel%
echo [OK] Web build complete
echo.
echo Step 3: Building Windows executable...
call npm run dist:win
if %errorlevel% neq 0 exit /b %errorlevel%
echo [OK] Windows build complete
echo.
echo Step 4: Syncing mobile platforms...
call npx cap sync
if %errorlevel% neq 0 exit /b %errorlevel%
echo [OK] Mobile platforms synced
echo.
echo Step 5: Building Android APK...
cd android
if exist gradlew.bat (
call gradlew.bat assembleRelease
cd ..
if %errorlevel% neq 0 (
echo [WARNING] Android build failed or Java not available
) else (
echo [OK] Android APK build complete
)
) else (
cd ..
echo [WARNING] Android project not found. Run 'npx cap add android' first.
)
echo.
echo ======================================
echo Build Summary
echo ======================================
echo.
echo Artifacts created:
echo [OK] Web build: dist/
echo [OK] Windows: release/
dir release\*.exe /b 2>nul
if %errorlevel% neq 0 echo (no .exe files found)
if exist "android\app\build\outputs\apk\release\app-release-unsigned.apk" (
echo [OK] Android: android/app/build/outputs/apk/release/app-release-unsigned.apk
)
echo.
echo Next steps:
echo 1. Test all platform builds
echo 2. Sign mobile apps (if not already signed)
echo 3. Create git tag and push
echo 4. Create GitHub release and upload artifacts
echo.
echo ======================================
pause