Skip to content
Merged
Show file tree
Hide file tree
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
30 changes: 21 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
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
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -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
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,4 +24,4 @@ libc = "0.2"
sha1_smol = "1"

[dev-dependencies]
tempfile = "3"
tempfile = "3"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -254,4 +254,4 @@ See [SECURITY.md](SECURITY.md). Report vulnerabilities privately to `dev@uinaf.d

## License

[MIT](LICENSE)
[MIT](LICENSE)
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -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}"

Expand Down Expand Up @@ -95,4 +95,4 @@ else
fi

printf 'Installed %s to %s\n' "$BINARY_NAME" "$INSTALL_PATH"
"$INSTALL_PATH" --version
"$INSTALL_PATH" --version
Loading