// A test project for Dev Updater, not a real app. See ../README.md. // // The two-component case: a server on the build machine beside an APK for // the phone. That pairing is what Dev Updater itself is, so it is the shape // most worth having a second of -- a project where breaking something // cannot take the updater down with it. // // What it exercises that a one-component project cannot: two builds running // at once with a bar and a timing each, the project area at the bottom // holding only what belongs to the whole project, and the whole service // contract -- install, start, stop, status, restart, and a runtime log that // is not this server's own. label: "Test: Service + App", // Declared, so the Uninstall dialog has real paths to show and its data and // config toggles are enabled. `hello-app` deliberately declares nothing, // which is the other half of that test. resources: Ron("resources.ron"), components: [ Server( name: "daemon", build: "./build-daemon.sh", // Managed, so Dev Updater's own service script drives it and this // project needs no systemd or OpenRC knowledge of its own. The // unit is named `-daemon` after the key this project is added // under. // // The leading `./` is load-bearing: service-default.sh resolves a // program containing a slash against the working directory and // looks anything else up on PATH. service: Managed("./serve.sh"), ), Apk( name: "app", build: ["../lib/build-apk.sh", "--package", "com.example.dutest.service", "--label", "Test Service"], ), ],