Skip to content

Commit

Permalink
Add safari-webarchiver cli tool
Browse files Browse the repository at this point in the history
  • Loading branch information
caius committed Jun 5, 2024
1 parent 9165af3 commit b6d18e7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Formula/safari-webarchiver.rb
Original file line number Diff line number Diff line change
@@ -0,0 1,20 @@
class SafariWebarchiver < Formula
desc "Create Safari webarchive files on the command-line"
homepage "https://github.com/alexwlchan/safari-webarchiver"
url "https://github.com/alexwlchan/safari-webarchiver/archive/refs/tags/v1.0.0.tar.gz"
sha256 "e0727521df075d050413e564b5951fcc176755afe4f9726b654f68d633eafba7"
license "MIT"

# Use modern swift
depends_on xcode: "13.3"
uses_from_macos "swift", since: :big_sur

def install
system "swiftc", "save_safari_webarchive.swift"
bin.install "save_safari_webarchive"
end

test do
system "#{bin}/save_safari_webarchive", "--version"
end
end

0 comments on commit b6d18e7

Please sign in to comment.