[PR #653] [MERGED] Just replace artifacts on release #645

Closed
opened 2026-02-28 14:33:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jpochyla/psst/pull/653
Author: @jacksongoode
Created: 6/28/2025
Status: Merged
Merged: 6/28/2025
Merged by: @jacksongoode

Base: mainHead: once-more-release


📝 Commits (1)

📊 Changes

2 files changed (+12 additions, -45 deletions)

View changed files

📝 .github/workflows/build.yml (+7 -7)
📝 .homebrew/generate_formula.sh (+5 -38)

📄 Description

It's a little bit annoying but given that we're on GitHub where artifacts are not guaranteed to be kept we don't really have a nice way of keeping the history of our nightly builds. The brew file for Psst is:

cask "psst" do
  version :latest
  sha256 :no_check

  url "https://github.com/jpochyla/psst/releases/latest/download/Psst.dmg"
  name "Psst"
  desc "Spotify client"
  homepage "https://github.com/jpochyla/psst/"

  depends_on macos: ">= :big_sur"

  app "Psst.app"

  zap trash: [
    "~/Library/Application Support/Psst",
    "~/Library/Caches/com.jpochyla.psst",
    "~/Library/Caches/Psst",
    "~/Library/HTTPStorages/com.jpochyla.psst",
    "~/Library/Preferences/com.jpochyla.psst.plist",
    "~/Library/Saved Application State/com.jpochyla.psst.savedState",
  ]
end

So right now its not updated until we provide a Psst.dmg in the release.

Eventually this could all be resolved by adding semvar releases. I think we should probably do this given this is not a stable way of providing backwards compatibility.

This fixes:

brew install psst
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Upgrading 1 outdated package:
psst 0.1.0,20250525.150831 -> latest
==> Upgrading psst
==> Downloading https://github.com/jpochyla/psst/releases/latest/download/Psst.dmg
curl: (22) The requested URL returned error: 404

==> Purging files for version latest of Cask psst
Error: psst: Download failed on Cask 'psst' with message: Download failed: https://github.com/jpochyla/psst/releases/latest/download/Psst.dmg

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jpochyla/psst/pull/653 **Author:** [@jacksongoode](https://github.com/jacksongoode) **Created:** 6/28/2025 **Status:** ✅ Merged **Merged:** 6/28/2025 **Merged by:** [@jacksongoode](https://github.com/jacksongoode) **Base:** `main` ← **Head:** `once-more-release` --- ### 📝 Commits (1) - [`9f3b3b7`](https://github.com/jpochyla/psst/commit/9f3b3b77b465a8a0a0d1e0bfe81b283cb1db3c4c) Just replace artifacts ### 📊 Changes **2 files changed** (+12 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build.yml` (+7 -7) 📝 `.homebrew/generate_formula.sh` (+5 -38) </details> ### 📄 Description It's a little bit annoying but given that we're on GitHub where artifacts are not guaranteed to be kept we don't really have a nice way of keeping the history of our nightly builds. The brew file for Psst is: ```rb cask "psst" do version :latest sha256 :no_check url "https://github.com/jpochyla/psst/releases/latest/download/Psst.dmg" name "Psst" desc "Spotify client" homepage "https://github.com/jpochyla/psst/" depends_on macos: ">= :big_sur" app "Psst.app" zap trash: [ "~/Library/Application Support/Psst", "~/Library/Caches/com.jpochyla.psst", "~/Library/Caches/Psst", "~/Library/HTTPStorages/com.jpochyla.psst", "~/Library/Preferences/com.jpochyla.psst.plist", "~/Library/Saved Application State/com.jpochyla.psst.savedState", ] end ``` So right now its not updated until we provide a `Psst.dmg` in the release. Eventually this could all be resolved by adding semvar releases. I think we should probably do this given this is not a stable way of providing backwards compatibility. This fixes: ``` brew install psst ==> Downloading https://formulae.brew.sh/api/formula.jws.json ==> Downloading https://formulae.brew.sh/api/cask.jws.json ==> Upgrading 1 outdated package: psst 0.1.0,20250525.150831 -> latest ==> Upgrading psst ==> Downloading https://github.com/jpochyla/psst/releases/latest/download/Psst.dmg curl: (22) The requested URL returned error: 404 ==> Purging files for version latest of Cask psst Error: psst: Download failed on Cask 'psst' with message: Download failed: https://github.com/jpochyla/psst/releases/latest/download/Psst.dmg ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:33:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#645
No description provided.