install: polish install/uninstall scripts with Docker setup, dep checks, and first-run flow
Nightly Build / build (push) Failing after 2m58s

This commit is contained in:
2026-07-20 14:36:05 +01:00
parent 44dc67cda0
commit 780524a765
5 changed files with 564 additions and 51 deletions
+12 -1
View File
@@ -86,10 +86,21 @@ fn usage() -> String {
SKALD_SKIP_SETUP=1 never prompt, even on a terminal"
.to_string()
}
async fn run(mode: Mode) -> Result<std::process::ExitCode> {
// Opening the pool creates `database/system.db` and its schema if absent —
// the same call the server makes, so setup and server agree on the layout.
let pool = std::sync::Arc::new(
db::init_system_pool(SYSTEM_DB_PATH)
.await
.context("opening the system database")?,
let db_path = exe_dir.join(SYSTEM_DB_PATH);
// Opening the pool creates the database and its schema if absent — the same
// call the server makes, so setup and server agree on the layout.
let pool = std::sync::Arc::new(
db::init_system_pool(&db_path)
.await
.context("opening the system database")?,
let pool = std::sync::Arc::new(
db::init_system_pool(SYSTEM_DB_PATH)
.await