Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions Casks/k/krita.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
cask "krita" do
version "5.2.13"
sha256 "17ccfbf2b72fcca314ce59c6d6f0b62dda1dc230ece71aa42f56031ef75ea6e8"
download_suffix = on_system_conditional linux: "-x86_64.AppImage", macos: "_signed.dmg"
sha256 arm: "17ccfbf2b72fcca314ce59c6d6f0b62dda1dc230ece71aa42f56031ef75ea6e8",

Check failure on line 4 in Casks/k/krita.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-26)

Layout/HashAlignment: Align the keys and values of a hash literal if they span more than one line.
x86_64: "17ccfbf2b72fcca314ce59c6d6f0b62dda1dc230ece71aa42f56031ef75ea6e8",

Check failure on line 5 in Casks/k/krita.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-26)

Layout/HashAlignment: Align the keys and values of a hash literal if they span more than one line.
Comment on lines +4 to +5
Copy link

Copilot AI Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ARM and x86_64 macOS checksums are identical, which is unlikely to be correct since these would be different binaries for different architectures.

Suggested change
sha256 arm: "17ccfbf2b72fcca314ce59c6d6f0b62dda1dc230ece71aa42f56031ef75ea6e8",
x86_64: "17ccfbf2b72fcca314ce59c6d6f0b62dda1dc230ece71aa42f56031ef75ea6e8",
sha256 arm: "REPLACE_WITH_ACTUAL_ARM_SHA256",
x86_64: "REPLACE_WITH_ACTUAL_X86_64_SHA256",

Copilot uses AI. Check for mistakes.
x86_64_linux: "5fd9e52a25caa5cd7d3d3269898cceb1465b3ce497abd8eee0e84d7bd8668c91"

url "https://download.kde.org/stable/krita/#{version}/krita-#{version}#{download_suffix}",
verified: "download.kde.org/stable/krita/"

Check failure on line 9 in Casks/k/krita.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-26)

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.

Check failure on line 10 in Casks/k/krita.rb

View workflow job for this annotation

GitHub Actions / syntax (macos-26)

Cask/StanzaGrouping: stanzas within the same group should have no lines between them
url "https://download.kde.org/stable/krita/#{version}/krita-#{version}_signed.dmg",
verified: "download.kde.org/stable/krita/"
name "Krita"
desc "Free and open-source painting and sketching program"
homepage "https://krita.org/"
Expand All @@ -13,7 +17,14 @@
regex(/href=.*?krita[._-]v?(\d+(?:\.\d+)+)(?:[._-]signed|[._-]release)?\.dmg/i)
end

app "krita.app"
on_macos do
app "krita.app"
end

on_linux do
depends_on arch: [:x86_64]
app_image "krita-#{version}#{download_suffix}"
end

zap trash: [
"~/Library/Application Support/krita",
Expand Down
Loading