diff --git a/Casks/openless.rb b/Casks/openless.rb index 60a88dc6..6a0535e2 100644 --- a/Casks/openless.rb +++ b/Casks/openless.rb @@ -1,9 +1,9 @@ cask "openless" do arch arm: "aarch64", intel: "x64" - version "1.2.22" - sha256 arm: "8e65729eb671f5fec3ce392d4f8dfd33303f1c84f8f4533683f8d3a3afd1e21d", - intel: "6d97fb7cab173b4f3241aa18b3db0f51a03a03d6b2bdea48cab8fe761440df7b" + version "1.2.23" + sha256 arm: "c6544555150459ba616ba43b27e226a88da40c5349c8e19f71a0bedfce7050b4", + intel: "ffcf84f5510ffe369277ddf9980b930fb5fb72a5e799020af4cf4720905625e1" url "https://github.com/appergb/openless/releases/download/v#{version}-tauri/OpenLess_#{version}_#{arch}.dmg" name "OpenLess" diff --git a/Formula/openless.rb b/Formula/openless.rb deleted file mode 100644 index bfc1bf46..00000000 --- a/Formula/openless.rb +++ /dev/null @@ -1,67 +0,0 @@ -class Openless < Formula - desc "Menu-bar voice input layer for macOS" - homepage "https://github.com/appergb/openless" - url "https://github.com/appergb/openless/archive/refs/tags/v1.2.20-tauri.tar.gz" - sha256 "be1363f7762a42b7e932ec3cc687cfdfb5b550b6cf1c96d52a1f87c906f27863" - license "MIT" - - head "https://github.com/appergb/openless.git", branch: "main" - - depends_on "rust" => :build - depends_on "node" => :build - depends_on :macos - depends_on arch: :arm64 - - # qwen-asr submodule for local ASR engine on macOS - resource "qwen-asr" do - url "https://github.com/antirez/qwen-asr.git", - revision: "b00b789b17051aea61e9717458171100662318a4" - end - - def install - # Place submodule at expected path before building - vendor_dir = "openless-all/app/src-tauri/vendor/qwen-asr" - rm_rf vendor_dir - resource("qwen-asr").stage(vendor_dir) - - cd "openless-all/app" do - # Install frontend dependencies - system "npm", "ci" - - # Build Tauri app with ad-hoc signing (no Developer ID required) - ENV["APPLE_SIGNING_IDENTITY"] = "-" - system "npm", "run", "tauri", "--", "build" - - # Install the .app bundle - prefix.install "src-tauri/target/release/bundle/macos/OpenLess.app" - end - - # Symlink binary for command-line access - bin.install_symlink prefix/"OpenLess.app/Contents/MacOS/openless" - end - - def caveats - <<~EOS - OpenLess.app has been installed to: - #{prefix}/OpenLess.app - - To use it, link it into /Applications: - ln -sf #{opt_prefix}/OpenLess.app /Applications/OpenLess.app - - Or launch it directly: - open #{opt_prefix}/OpenLess.app - - First-time setup: - - Grant Accessibility permission when prompted - - Grant Microphone permission when prompted - - If Gatekeeper blocks the app (ad-hoc signed), run: - xattr -cr /Applications/OpenLess.app - EOS - end - - test do - assert_path_exists prefix/"OpenLess.app" - assert_predicate prefix/"OpenLess.app/Contents/MacOS/openless", :executable? - end -end