-
-
Notifications
You must be signed in to change notification settings - Fork 10
fix(desktop): add Dock icon and fix undeletable failed clusters #4896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8628168
fix(desktop): add Dock icon to the macOS app bundle
devantler 972c95e
fix(ui): make cluster delete idempotent so failed clusters can be rem…
devantler e442b4e
fix(ui): treat ErrClusterNotFound as idempotent-delete success
devantler b3fa991
Merge branch 'main' into claude/busy-banach-7e30b6
devantler 4f13c3d
chore: Apply megalinter fixes
devantler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| #!/usr/bin/env bash | ||
| # Generate the KSail.app icon (AppIcon.icns) from a square source PNG. Shared by make-macos-app.sh | ||
| # (local builds) and the desktop GoReleaser config (release builds) so the bundle icon has a single | ||
| # source of truth. macOS only: relies on sips + iconutil, which is fine because the .app bundle is | ||
| # only ever built on macOS. | ||
| # | ||
| # Usage: make-icns.sh <source-png> <output-icns> | ||
| set -euo pipefail | ||
|
|
||
| src="${1:?source PNG path required}" | ||
| out="${2:?output .icns path required}" | ||
|
|
||
| for tool in sips iconutil; do | ||
| command -v "$tool" >/dev/null 2>&1 || { | ||
| echo "make-icns.sh: '$tool' not found; the KSail.app icon can only be built on macOS" >&2 | ||
| exit 1 | ||
| } | ||
| done | ||
|
|
||
| mkdir -p "$(dirname "$out")" | ||
|
|
||
| iconset="$(mktemp -d)/AppIcon.iconset" | ||
| mkdir -p "$iconset" | ||
| trap 'rm -rf "$(dirname "$iconset")"' EXIT | ||
|
|
||
| # The standard macOS icon sizes (point size + @1x/@2x). sips downsamples crisply; the larger slots | ||
| # upsample the source where needed. | ||
| for spec in \ | ||
| "16:icon_16x16" \ | ||
| "32:icon_16x16@2x" \ | ||
| "32:icon_32x32" \ | ||
| "64:icon_32x32@2x" \ | ||
| "128:icon_128x128" \ | ||
| "256:icon_128x128@2x" \ | ||
| "256:icon_256x256" \ | ||
| "512:icon_256x256@2x" \ | ||
| "512:icon_512x512" \ | ||
| "1024:icon_512x512@2x"; do | ||
| size="${spec%%:*}" | ||
| name="${spec##*:}" | ||
| sips -z "$size" "$size" "$src" --out "$iconset/$name.png" >/dev/null | ||
| done | ||
|
|
||
| iconutil --convert icns "$iconset" --output "$out" | ||
|
|
||
| echo "built $out from $src" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.