Skip to content

Commit 6a7b415

Browse files
committed
read signature from sig file
1 parent 682c4ee commit 6a7b415

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/desktop/scripts/finalize-latest-json.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ async function sign(url: string, key: string) {
134134
const tmp = process.env.RUNNER_TEMP ?? "/tmp"
135135
const file = path.join(tmp, name)
136136
await Bun.write(file, await res.arrayBuffer())
137-
const out = await $`bunx @tauri-apps/cli signer sign ${file}`.text()
138-
return out.trim()
137+
await $`bunx @tauri-apps/cli signer sign ${file}`
138+
const sigFile = Bun.file(`${file}.sig`)
139+
if (!(await sigFile.exists())) throw new Error(`Signature file not found for ${name}`)
140+
return (await sigFile.text()).trim()
139141
}
140142

141143
const add = async (data: Record<string, { url: string; signature: string }>, key: string, raw: string | undefined) => {

0 commit comments

Comments
 (0)