Skip to main content

max / goingson

1.5 KB · 32 lines History Blame Raw
1 // GoingsOn — Windows (x86_64) release recipe for Bento.
2 //
3 // UNSUPPORTED at launch: Windows binaries ship unsigned (code signing is blocked
4 // on the Azure certificate-history requirement — see deploy.md). This recipe is
5 // best-effort and has not been exercised end-to-end through Bento.
6 //
7 // Two Windows-specific deviations from the other recipes:
8 // - The checkout lives at a Windows path, NOT the unix repo() value, so this
9 // recipe hard-codes it and does not call repo().
10 // - Commands run through PowerShell over ssh; quoting is delicate. The
11 // `passwords.ps1` profile supplies the signing env (mirrors deploy.md).
12 // The .msi / NSIS .exe globs are handed to collect directly (windows-x86 is a
13 // remote host, so collect leaves the glob unquoted for the remote shell).
14
15 let h = build_host();
16 let v = version();
17 let win_repo = "C:/Users/me/Code/Apps/goingson";
18
19 step("checkout");
20 sh_ok(h, "powershell -Command \"cd " + win_repo + "; git pull --ff-only\"");
21
22 step("build");
23 sh_ok(h, "powershell -Command \". C:\\Users\\me\\.tauri\\passwords.ps1; " +
24 "$env:TAURI_SIGNING_PRIVATE_KEY='C:\\Users\\me\\.tauri\\goingson.key'; " +
25 "$env:TAURI_SIGNING_PRIVATE_KEY_PASSWORD=$env:GOINGSON_TAURI_PASSWORD; " +
26 "cd " + win_repo + "; cargo tauri build\"");
27
28 step("collect");
29 collect(h, win_repo + "/target/release/bundle/msi/*.msi", "goingson", v);
30 collect(h, win_repo + "/target/release/bundle/nsis/*-setup.exe", "goingson", v);
31 log("GoingsOn windows/x86_64 v" + v + " collected (unsigned, unsupported).");
32