diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b4995a..9a7be40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -150,14 +150,26 @@ jobs: tccutil-rs_v*_darwin-amd64.tar.gz checksums.txt - - name: Bump Homebrew formula on uinaf/homebrew-tap - # Computes the tarball sha256 from the GitHub-hosted release archive, - # rewrites Formula/tccutil-rs.rb on the tap, and opens a PR. Runs - # after the assets are attached so the action can fetch them. + - name: Update Homebrew tap + # Same action putdotio/putio-cli uses. Reads our release assets, picks + # the ones whose filename ends with `darwin-arm64.tar.gz` / + # `darwin-amd64.tar.gz`, regenerates the formula, and pushes straight + # to uinaf/homebrew-tap's main branch — no fork, no PR. Now that the + # repo is named `tccutil-rs`, Formula/tccutil-rs.rb is what the action + # writes by default (it derives the formula filename from the repo + # name), so no overrides are needed. if: steps.release.outputs.new_release_published == 'true' - uses: dawidd6/action-homebrew-bump-formula@v5 + uses: Justintime50/homebrew-releaser@v3 with: - token: ${{ secrets.TAP_GITHUB_TOKEN }} - tap: uinaf/homebrew-tap - formula: tccutil-rs - tag: ${{ steps.release.outputs.new_release_git_tag }} \ No newline at end of file + homebrew_owner: uinaf + homebrew_tap: homebrew-tap + github_token: ${{ secrets.TAP_GITHUB_TOKEN }} + commit_owner: glitch418x + commit_email: 189487110+glitch418x@users.noreply.github.com + branch: main + formula_folder: Formula + install: 'bin.install "tccutil-rs"' + test: | + assert_match "Manage macOS TCC permissions", shell_output("#{bin}/tccutil-rs --help") + target_darwin_arm64: true + target_darwin_amd64: true \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5964c96..3f77e54 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,7 @@ Thanks for sending changes. ## Setup ```sh -git clone git@github.com:uinaf/tccutil.git +git clone git@github.com:uinaf/tccutil-rs.git cd tccutil cargo build --release ``` @@ -80,4 +80,4 @@ Required secrets on this repo: - Command output for new flags or subcommands - Before-and-after for output formatting changes - SQLite schema notes when the digest set in `KNOWN_DIGESTS` changes - - Rollout notes when touching write paths or root checks + - Rollout notes when touching write paths or root checks \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 211e129..98dfbbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,8 +4,8 @@ version = "0.2.1" edition = "2024" description = "CLI tool for managing macOS TCC permissions" license = "MIT" -repository = "https://github.com/uinaf/tccutil" -homepage = "https://github.com/uinaf/tccutil" +repository = "https://github.com/uinaf/tccutil-rs" +homepage = "https://github.com/uinaf/tccutil-rs" readme = "README.md" # Binary crate, not intended for crates.io. publish = false @@ -24,4 +24,4 @@ libc = "0.2" sha1_smol = "1" [dev-dependencies] -tempfile = "3" +tempfile = "3" \ No newline at end of file diff --git a/README.md b/README.md index d6bf91d..3b381a5 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ brew install tccutil-rs ### Direct install ```sh -curl -sSL https://raw.githubusercontent.com/uinaf/tccutil/main/scripts/install.sh | sh +curl -sSL https://raw.githubusercontent.com/uinaf/tccutil-rs/main/scripts/install.sh | sh ``` ### Source build @@ -254,4 +254,4 @@ See [SECURITY.md](SECURITY.md). Report vulnerabilities privately to `dev@uinaf.d ## License -[MIT](LICENSE) +[MIT](LICENSE) \ No newline at end of file diff --git a/scripts/install.sh b/scripts/install.sh index 4657121..8e3cac2 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -REPO="uinaf/tccutil" +REPO="uinaf/tccutil-rs" BINARY_NAME="tccutil-rs" INSTALL_PATH="/usr/local/bin/${BINARY_NAME}" @@ -95,4 +95,4 @@ else fi printf 'Installed %s to %s\n' "$BINARY_NAME" "$INSTALL_PATH" -"$INSTALL_PATH" --version +"$INSTALL_PATH" --version \ No newline at end of file