|
|
2 months ago | |
|---|---|---|
| .. | ||
| README.md | 2 months ago | |
| build_app.sh | 4 months ago | |
| compress_audio.sh | 5 months ago | |
| convert_audio.sh | 4 months ago | |
| run_emulator.py | 2 months ago | |
| run_emulator.sh | 2 months ago | |
This directory contains shell scripts for automating common development tasks for the ZenTap project.
convert_audio.shConverts audio files to the proper format and specifications for the ZenTap game.
build_app.shBuilds APK and AAB files for Android in debug and release modes.
run_emulator.py ⭐ NEWComprehensive Python script to launch ZenTap in Android emulators with selectable resolutions.
run_emulator.sh ⭐ NEWBash script to launch ZenTap in Android emulators with resolution options.
sudo apt install ffmpegbrew install ffmpeg./scripts/convert_audio.sh
assets/audio/source/assets/audio/README.md:
assets/audio/source/assets/audio/menu/assets/audio/ingame/assets/audio/compressed/bubble_pop.mp3 - Primary bubble pop sound effectbubble_pop_alt.mp3 - Alternative bubble pop sound effectambient_background.mp3 - Legacy background musicmenu_default.mp3 - Default theme menu musicmenu_spring.mp3 - Spring theme menu musicmenu_summer.mp3 - Summer theme menu musicmenu_autumn.mp3 - Autumn theme menu musicmenu_winter.mp3 - Winter theme menu musicingame_default_001.mp3 - Default theme gameplay musicingame_spring_001.mp3 - Spring theme gameplay musicingame_summer_001.mp3 - Summer theme gameplay musicingame_autumn_001.mp3 - Autumn theme gameplay musicingame_winter_001.mp3 - Winter theme gameplay music (track 1)ingame_winter_002.mp3 - Winter theme gameplay music (track 2)WAV, MP3, OGG, FLAC, M4A
flutter doctor to ensure all dependencies are satisfied./scripts/build_app.sh
# Debug only
./scripts/build_app.sh --debug
# Release only
./scripts/build_app.sh --release
# APK files only
./scripts/build_app.sh --apk-only
# AAB files only
./scripts/build_app.sh --aab-only
# Clean build before building
./scripts/build_app.sh --clean --all
./scripts/build_app.sh --help
| Variant | Description | Use Case |
|---|---|---|
| Debug APK | Development build with debugging symbols | Testing on devices, debugging |
| Release APK | Optimized build for production | Side-loading, testing stores |
| Debug AAB | Development Android App Bundle | Play Console internal testing |
| Release AAB | Production Android App Bundle | Google Play Store release |
Built files are saved in build/outputs/ with timestamps:
build/outputs/apk/build/outputs/bundle/ZenTap_debug_YYYYMMDD_HHMMSS.apkZenTap_release_YYYYMMDD_HHMMSS.aab# Install via ADB
adb install build/outputs/apk/ZenTap_release_*.apk
# Or transfer to device and install manually
assets/audio/source/flutter doctor and follow the suggestionsflutter clean and try building again# Check Flutter installation
flutter doctor
# Clean Flutter project
flutter clean && flutter pub get
# Run app in debug mode
flutter run
# Check connected devices
flutter devices
Both scripts follow the fSociety.hu color scheme defined in ../SCHEME_COLORS.md:
ANDROID_SDK_ROOTANDROID_HOMErun_emulator.py (Recommended)A comprehensive Python script with full features and error handling.
Features:
# Interactive mode (recommended for first-time use)
./scripts/run_emulator.py
# Command line mode with preset resolution
./scripts/run_emulator.py --resolution 3 --build-mode release
# Custom resolution
./scripts/run_emulator.py --width 1080 --height 1920
# List available AVDs
./scripts/run_emulator.py --list-avds
# Full command line example
./scripts/run_emulator.py --resolution 2 --cold-boot --build-mode debug
run_emulator.shA bash script for Unix-like systems (Linux, macOS).
Features:
# Interactive mode
./scripts/run_emulator.sh
# Command line mode
./scripts/run_emulator.sh --width 411 --height 731 --build-mode release
# List AVDs
./scripts/run_emulator.sh --list-avds
# Cold boot with custom resolution
./scripts/run_emulator.sh --width 800 --height 1280 --cold-boot
| Option | Name | Resolution | Description |
|---|---|---|---|
| 1 | Phone Small | 360×640 | Small phone screen |
| 2 | Phone Medium | 411×731 | Standard phone screen |
| 3 | Phone Large | 414×896 | Large phone screen |
| 4 | Tablet 7" | 600×960 | 7-inch tablet |
| 5 | Tablet 10" | 800×1280 | 10-inch tablet |
| 6 | Foldable | 673×841 | Foldable device |
| 7 | Desktop | 1920×1080 | Desktop resolution |
| 8 | Custom | User-defined | Specify your own resolution |
| Argument | Description | Example |
|---|---|---|
--width, -w |
Screen width in pixels | --width 1080 |
--height |
Screen height in pixels | --height 1920 |
--avd, -a |
Use specific AVD name | --avd My_Custom_AVD |
--cold-boot, -c |
Wipe data and cold boot | --cold-boot |
--build-mode, -b |
Build mode (debug/release) | --build-mode release |
--list-avds, -l |
List available AVDs | --list-avds |
--resolution, -r - Use preset resolution (1-8)--no-launch - Don't auto-launch app"Emulator not found"
"No AVDs available"
flutter emulators --create"Build failed"
flutter doctor to check Flutter setupflutter clean and rebuild"Emulator won't start"
When modifying these scripts: