Build App (Preview) / compute-version (pull_request) Successful in 5s
Secret Scan / scan (push) Successful in 8s
Secret Scan / scan (pull_request) Successful in 7s
Build App (Preview) / create-release (pull_request) Successful in 2s
Build App (Preview) / build-macos (pull_request) Successful in 6m42s
Build App (Preview) / build-linux (pull_request) Successful in 12m41s
Build App (Preview) / build-windows (pull_request) Successful in 13m57s
Build App (Preview) / test (pull_request) Successful in 23m29s
Build App (Preview) / prune-previews (pull_request) Successful in 3s
AWS ships its prebuilt plugin as "AWS Content" under the AWS Customer Agreement; the source is Apache-2.0. Replace the binary fetch with scripts/build-ssm-plugin.sh (any triple, cross-compiles; universal via lipo) and build-ssm-plugin.ps1 (Windows runner): - source: tag 1.2.896.0 at commit 6430675a, GitHub archive SHA-256 checked before extraction; - Go 1.26.11 from go.dev, published SHA-256 checked before use; - the repo's own build (GOPATH mode, vendored deps, -s -w, sessionmanagerplugin-main) with VERSION stamped to the tag, plus -trimpath, no VCS stamp, empty build id, CGO off; - output must equal a pinned SHA-256 per target (reproducible builds). Each platform job builds its own targets. Windows: the exe is now ours and unsigned, so windows-sign.ps1 allowlists it and windows-verify-signatures.ps1 requires it signed by the installer's own certificate in the MSI and NSIS. THIRD_PARTY_NOTICES now carries the source's LICENSE/NOTICE/THIRD-PARTY, the commit, every linked vendored module's licence and Go's. AWS's GPG key and the AWS-signature checks are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.5 KiB
Rust
33 lines
1.5 KiB
Rust
//! The stand-in `build.rs` writes for the bundled `session-manager-plugin` sidecar in a
|
|
//! **debug** build that has no real one, and how the app recognises it.
|
|
//!
|
|
//! `bundle.externalBin` makes tauri-build fail outright when the per-target file is missing,
|
|
//! for `cargo test`, `cargo check` and `tauri dev` as much as for a release. The real binary
|
|
//! is built from AWS's pinned source by `scripts/build-ssm-plugin.sh` (`.ps1` on Windows), with
|
|
//! a downloaded Go toolchain; requiring that for every test run would put a Go build and the
|
|
//! network on the path of every `cargo test`. So debug builds get this placeholder instead, a
|
|
//! release build refuses it (`build.rs`), and `host::ssm::find_plugin` skips it and falls back to
|
|
//! an installed plugin.
|
|
//!
|
|
//! Shared by `build.rs` (through `#[path]`) and the app, so the two cannot disagree.
|
|
|
|
/// The first bytes of a placeholder. Not an executable format on any platform.
|
|
pub const MARKER: &[u8] = b"TRIPLE-C SSM PLUGIN PLACEHOLDER";
|
|
|
|
/// The whole placeholder file.
|
|
#[allow(dead_code)] // build.rs only
|
|
pub fn contents() -> Vec<u8> {
|
|
let mut v = MARKER.to_vec();
|
|
v.extend_from_slice(
|
|
b"\nNot the AWS Session Manager plugin. Debug builds get this when \
|
|
app/src-tauri/binaries has no real one; run scripts/build-ssm-plugin.sh \
|
|
(scripts/build-ssm-plugin.ps1 on Windows) to build the real plugin.\n",
|
|
);
|
|
v
|
|
}
|
|
|
|
/// Whether `bytes` (the start of a file) is a placeholder.
|
|
pub fn is_placeholder(bytes: &[u8]) -> bool {
|
|
bytes.starts_with(MARKER)
|
|
}
|