Skip to main content

max / balanced_breakfast

1.7 KB · 36 lines History Blame Raw
1 // Balanced Breakfast, Windows (x86_64) release recipe for Bento.
2 //
3 // UNSUPPORTED at launch and NOT in the launch wave. Binaries ship unsigned.
4 // Best-effort, not exercised end-to-end through Bento. The checkout is at a
5 // Windows path (not repo()), commands run through PowerShell over ssh, and the
6 // `passwords.ps1` profile supplies the signing env. Mirrors deploy.md.
7 //
8 // Known BB-Windows gotcha (deploy.md): unset RUSTC_WRAPPER if sccache is set ,
9 // it crashes compiling the `ico` crate.
10
11 let h = build_host();
12 let v = version();
13 let win_repo = "C:/Users/me/Code/Apps/balanced_breakfast";
14
15 step("checkout");
16 sh_ok(h, "powershell -Command \"cd " + win_repo + "; git pull --ff-only\"");
17
18 // Gate: no artifact is built from code that fails clippy or its tests. It runs
19 // on this target's own build host, so a break confined to one platform is
20 // caught where it would have shipped.
21 step("prebuild");
22 sh_ok(h, "powershell -Command \"cd " + win_repo + "; cargo clippy --workspace --all-targets " + feature_flags() + " -- -D warnings\"");
23 sh_ok(h, "powershell -Command \"cd " + win_repo + "; cargo test --workspace " + feature_flags() + "\"");
24
25 step("build");
26 sh_ok(h, "powershell -Command \". C:\\Users\\me\\.tauri\\passwords.ps1; " +
27 "$env:RUSTC_WRAPPER=''; " +
28 "$env:TAURI_SIGNING_PRIVATE_KEY='C:\\Users\\me\\.tauri\\balanced-breakfast.key'; " +
29 "$env:TAURI_SIGNING_PRIVATE_KEY_PASSWORD=$env:BB_TAURI_PASSWORD; " +
30 "cd " + win_repo + "; cargo tauri build " + feature_flags() + "\"");
31
32 step("collect");
33 collect(h, win_repo + "/target/release/bundle/msi/*.msi", "balanced_breakfast", v);
34 collect(h, win_repo + "/target/release/bundle/nsis/*-setup.exe", "balanced_breakfast", v);
35 log("Balanced Breakfast windows/x86_64 v" + v + " collected (unsigned, unsupported).");
36