this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

run.sh -> r, add wipe

alice 51d870f8 293b94e2

+74 -64
+5 -5
README.md
··· 33 33 34 34 ## Build & Installation 35 35 36 - Use the included `run.sh` helper script to streamline common tasks: 36 + Use the included `r` helper script to streamline common tasks: 37 37 38 38 ```bash 39 39 # 1) Generate timezone and airport data 40 - ./run.sh generate 40 + ./r generate 41 41 42 42 # 2) Build the project 43 - ./run.sh build 43 + ./r build 44 44 45 45 # 3) Install onto the emulator (Basalt) 46 - ./run.sh install 46 + ./r install 47 47 48 48 # 4) Build and install in one step 49 - ./run.sh debug 49 + ./r debug 50 50 ```
+69
r
··· 1 + #!/bin/bash 2 + 3 + # Exit immediately if a command exits with a non-zero status. 4 + set -e 5 + 6 + # Function to run the timezone generation script 7 + generate_tz_list() { 8 + echo "Generating timezone lists..." 9 + uv run python scripts/generate_tz_list.py 10 + uv run python scripts/generate_airport_tz_list.py 11 + } 12 + 13 + # Function to build the project 14 + build() { 15 + echo "Building project..." 16 + rebble build 17 + } 18 + 19 + # Function to install the project on the emulator 20 + install() { 21 + echo "Installing project on emulator..." 22 + rebble install --emulator basalt 23 + } 24 + 25 + # Function to wipe the emulator 26 + wipe() { 27 + echo "Wiping emulator..." 28 + rebble wipe 29 + } 30 + 31 + # Parse the command line argument 32 + COMMAND=$1 33 + USAGE="Usage: ./r {generate|build|install|debug|wipe}" 34 + 35 + # Check if a command was provided 36 + if [ -z "$COMMAND" ]; then 37 + echo "$USAGE" 38 + exit 1 39 + fi 40 + 41 + # Execute the corresponding command 42 + case "$COMMAND" in 43 + generate) 44 + generate_tz_list 45 + ;; 46 + wipe) 47 + wipe 48 + ;; 49 + build) 50 + build 51 + ;; 52 + install) 53 + install 54 + ;; 55 + debug) 56 + wipe 57 + build 58 + install 59 + # Stream verbose emulator logs for live debugging 60 + rebble logs --emulator basalt -v 61 + ;; 62 + *) 63 + echo "$USAGE" 64 + exit 1 65 + ;; 66 + esac 67 + 68 + echo "Command '$COMMAND' completed successfully." 69 + exit 0
-59
run.sh
··· 1 - #!/bin/bash 2 - 3 - # Exit immediately if a command exits with a non-zero status. 4 - set -e 5 - 6 - # Function to run the timezone generation script 7 - generate_tz_list() { 8 - echo "Generating timezone lists..." 9 - uv run python scripts/generate_tz_list.py 10 - uv run python scripts/generate_airport_tz_list.py 11 - } 12 - 13 - # Function to build the project 14 - build_project() { 15 - echo "Building project..." 16 - rebble build 17 - } 18 - 19 - # Function to install the project on the emulator 20 - install_project() { 21 - echo "Installing project on emulator..." 22 - rebble install --emulator basalt 23 - } 24 - 25 - # Parse the command line argument 26 - COMMAND=$1 27 - 28 - # Check if a command was provided 29 - if [ -z "$COMMAND" ]; then 30 - echo "Usage: ./run.sh {generate|build|install|debug}" 31 - exit 1 32 - fi 33 - 34 - # Execute the corresponding command 35 - case "$COMMAND" in 36 - generate) 37 - generate_tz_list 38 - ;; 39 - build) 40 - build_project 41 - ;; 42 - install) 43 - install_project 44 - ;; 45 - debug) 46 - echo "Running debug (build, install, and tail logs)..." 47 - build_project 48 - install_project 49 - # Stream verbose emulator logs for live debugging 50 - rebble logs --emulator basalt -v 51 - ;; 52 - *) 53 - echo "Usage: ./run.sh {generate|build|install|debug}" 54 - exit 1 55 - ;; 56 - esac 57 - 58 - echo "Command '$COMMAND' completed successfully." 59 - exit 0