refactor progress
This commit is contained in:
25
fluxer_desktop/packaging/homebrew/README.md
Normal file
25
fluxer_desktop/packaging/homebrew/README.md
Normal 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.
|
||||
37
fluxer_desktop/packaging/homebrew/fluxer.rb
Normal file
37
fluxer_desktop/packaging/homebrew/fluxer.rb
Normal 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
|
||||
Reference in New Issue
Block a user