fix(ci): URL-encode asset filenames and allow release updates

Spaces in Electron Forge filenames (e.g. "5chan Setup.exe") broke
markdown download links in the release body. Also add allowUpdates
to finalize-release so it succeeds when a release already exists.
This commit is contained in:
plebeius
2026-03-10 18:55:28 +08:00
parent ec2c2d5d70
commit 3401ec147f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ if (remoteFiles.length) {
files = remoteFiles;
}
const linkTo = (file) => `https://github.com/bitsocialnet/5chan/releases/download/v${version}/${file}`;
const linkTo = (file) => `https://github.com/bitsocialnet/5chan/releases/download/v${version}/${encodeURIComponent(file)}`;
const has = (s, sub) => s.toLowerCase().includes(sub);
const isArm = (s) => has(s, 'arm64') || has(s, 'aarch64');
const isX64 = (s) => has(s, 'x64') || has(s, 'x86_64') || !isArm(s);