Skip to content

release: add upload-mac target that clobbers unsigned darwin assets - #48

Merged
guygrigsby merged 1 commit into
mainfrom
guy/upload-mac-clobber
Sep 23, 2026
Merged

guygrigsby merged 1 commit into
mainfrom
guy/upload-mac-clobber

Conversation

@guygrigsby

@guygrigsby guygrigsby commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Uploading the signed zips next to the goreleaser assets left the release
with both: the signed aperture_darwin.zip and the unsigned
aperture_darwin_.tar.gz, with checksums.txt still pointing at the
unsigned tarballs, so anyone verifying a download got the unsigned build.

Uploading the signed zips next to the goreleaser assets left the release
with both: the signed aperture_<ver>_darwin_<arch>.zip and the unsigned
aperture_darwin_<arch>.tar.gz, with checksums.txt still pointing at the
unsigned tarballs, so anyone verifying a download got the unsigned build.

upload-mac deletes the darwin assets on the tag's release, uploads the
signed zips, then rewrites checksums.txt in place (linux lines kept,
darwin lines replaced with the zip sums). -R is explicit because a
checkout whose origin is the corp git proxy cannot be resolved by gh.

Also fix notarize-mac writing full .build/release/ paths into the
checksums file, which made shasum -c fail from any download directory;
the sums now carry bare filenames.

Verified in-sandbox with a stubbed gh: only the two darwin tarballs are
deleted, linux assets untouched, merged checksums.txt correct, and the
target aborts before any gh call when the local artifacts are missing.
@guygrigsby
guygrigsby merged commit 967d9fd into main Sep 23, 2026
2 checks passed
@guygrigsby
guygrigsby deleted the guy/upload-mac-clobber branch September 23, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant