Skip to content
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

folderify: remove xcode dependency #191182

Merged
merged 1 commit into from
Sep 19, 2024
Merged
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
10 changes: 6 additions & 4 deletions Formula/f/folderify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class Folderify < Formula
end

depends_on "rust" => :build
depends_on xcode: :build
depends_on "imagemagick"
depends_on :macos

Expand All @@ -29,12 +28,15 @@ def install

test do
# Write an example icon to a file.
File.write("test.svg", '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="40" fill="transparent" stroke="black" stroke-width="20" /></svg>')
(testpath/"test.svg").write <<~EOS
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="40" fill="transparent" stroke="black" stroke-width="20" />
</svg>
EOS

# folderify applies the test icon to a folder
system bin/"folderify", "test.svg", testpath.to_s
# Tests for the presence of the file icon
assert_predicate testpath / "Icon\r", :exist?
assert_predicate testpath/"Icon\r", :exist?
end
end
Loading