feat(ci): use Azure Artifact Signing for Windows releases (#15201)

This commit is contained in:
Luke Parker
2026-03-28 11:20:19 +10:00
committed by GitHub
parent 2145d97f18
commit 82fc493520
12 changed files with 298 additions and 62 deletions

View File

@@ -48,6 +48,9 @@ export async function copyBinaryToSidecarFolder(source: string, target = RUST_TA
await $`mkdir -p src-tauri/sidecars`
const dest = windowsify(`src-tauri/sidecars/opencode-cli-${target}`)
await $`cp ${source} ${dest}`
if (process.platform === "win32" && process.env.GITHUB_ACTIONS === "true") {
await $`pwsh -NoLogo -NoProfile -ExecutionPolicy Bypass -File ../../script/sign-windows.ps1 ${dest}`
}
console.log(`Copied ${source} to ${dest}`)
}