refactor progress

This commit is contained in:
Hampus Kraft
2026-02-17 12:22:36 +00:00
parent cb31608523
commit d5abd1a7e4
8257 changed files with 1190207 additions and 761040 deletions

View File

@@ -0,0 +1,25 @@
# Fluxer Homebrew cask
Homebrew cask definition for installing Fluxer on macOS.
## Placeholders
The `version` and `sha256` fields are set to placeholder values. Update them before publishing or submitting to a tap.
## Livecheck
The cask includes a `livecheck` block that queries the Fluxer download API for the latest stable version. Homebrew's automated tooling uses this to detect new releases.
## Testing locally
```bash
brew install --cask ./fluxer.rb
```
## Fetching the latest version
```bash
curl -s https://api.fluxer.app/dl/desktop/stable/darwin/arm64/latest | jq
```
This returns a JSON object containing `version`, `pub_date`, and `files` with download URLs and SHA256 checksums for each format.

View File

@@ -0,0 +1,37 @@
cask "fluxer" do
arch arm: "arm64", intel: "x64"
version "PLACEHOLDER_VERSION"
on_arm do
sha256 "PLACEHOLDER_SHA256_ARM64"
end
on_intel do
sha256 "PLACEHOLDER_SHA256_X64"
end
url "https://api.fluxer.app/dl/desktop/stable/darwin/#{arch}/#{version}/dmg"
name "Fluxer"
desc "Instant messaging and VoIP application"
homepage "https://fluxer.app"
livecheck do
url "https://api.fluxer.app/dl/desktop/stable/darwin/arm64/latest"
strategy :json do |json|
json["version"]
end
end
auto_updates true
depends_on macos: ">= :catalina"
app "Fluxer.app"
zap trash: [
"~/Library/Application Support/Fluxer",
"~/Library/Caches/app.fluxer",
"~/Library/Caches/app.fluxer.ShipIt",
"~/Library/Preferences/app.fluxer.plist",
"~/Library/Saved Application State/app.fluxer.savedState",
]
end