init: Added stuff

This commit is contained in:
Darwin Cereska
2025-06-19 16:19:41 -04:00
commit 40d1101d44
5 changed files with 37 additions and 0 deletions

24
Formula/xswitcher.rb Normal file
View File

@@ -0,0 +1,24 @@
class XSwitcher < Formula
version "0.1.2"
desc ""
homepage "https://github.com/darwincereska/xswitcher"
url "https://github.com/darwincereska/xswitcher/archive/refs/tags/v#{version}.tar.gz"
sha256 ""
license "MIT"
def install
args = []
if Hardware::CPU.arm?
args << "ARCH=arm64"
elsif Hardware::CPU.intel?
args << "ARCH=x86_64"
end
system "make", "build", *args
bin.install "xswitcher"
end
test do
system "#{bin}/xswitcher", "-v"
end
end