#!/bin/sh # Rebuilds this server and its app, in the order a self-update needs. # # For running by hand. The "Dev Updater" card no longer calls this: the two # halves are declared as a Server and an Apk component in # app/.dev-updater.ron, and a build walks components in order, so the order # below is expressed there now. # # Still has two callers, so it stays: ./start.sh builds through it, and a # server started before the components change has the old declaration in # memory pointing straight here -- the pull that carries that change is # built from it. # # The APK is built last and deliberately after the binary: if the build # fails, the phone keeps being offered the APK it already had rather than # a half-updated pair. set -eu cd "$(dirname "$0")" echo "==> Building the server" cargo build --release --manifest-path server/Cargo.toml echo "==> Building the app" ./app/build-apk.sh