You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eb354e3
Browse filesBrowse the repository at this point in the historyBrowse files
feat(tray): macOS menu bar icon, and brew services starts it at login
The tray code is shared between Windows and macOS; the platform files hold the
icon format, the clipboard and browser commands, and the left-click behaviour.
macOS binaries are now built with CGO on a macOS runner.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
--notes "Windows: download the .exe and double-click it (a tray icon appears; Windows may warn because the file is not code-signed: More info > Run anyway). macOS: brew install hong4rc/tap/dpi-bypass (avoids the Apple could-not-verify warning), or extract the .tar.gz, run xattr -d com.apple.quarantine dpi-bypass, then ./dpi-bypass in a terminal (experimental). Linux: extract the .tar.gz and run ./dpi-bypass in a terminal (experimental). See the README."
--notes "Windows: download the .exe and double-click it (a tray icon appears; Windows may warn because the file is not code-signed: More info > Run anyway). macOS: brew install hong4rc/tap/dpi-bypass (a dot appears in the menu bar, and it avoids the Apple could-not-verify warning; brew services start dpi-bypass runs it at login), or extract the .tar.gz, run xattr -d com.apple.quarantine dpi-bypass, then ./dpi-bypass. Linux: extract the .tar.gz and run ./dpi-bypass in a terminal (experimental). See the README."
60
112
61
113
# Opens a pull request on the Homebrew tap that points the formula at this release.
62
114
# Needs a repository secret TAP_TOKEN: a personal access token that can write
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Download from [Releases](../../releases). Each download is everything you need:
11
11
| OS | Download | Run |
12
12
|---|---|---|
13
13
| Windows |`dpi-bypass-windows-amd64.exe`| double-click it. A tray icon appears. Windows may warn because the file is not code-signed: **More info > Run anyway**|
14
-
| macOS |`brew install hong4rc/tap/dpi-bypass` (recommended), or `dpi-bypass-macos-apple-silicon.tar.gz` / `dpi-bypass-macos-intel.tar.gz`| run `dpi-bypass`in a terminal (experimental). Homebrew avoids the "Apple could not verify" warning. With a manual download, macOS blocks it until you run `xattr -d com.apple.quarantine dpi-bypass`|
14
+
| macOS |`brew install hong4rc/tap/dpi-bypass` (recommended), or `dpi-bypass-macos-apple-silicon.tar.gz` / `dpi-bypass-macos-intel.tar.gz`| run `dpi-bypass`; a dot appears in the menu bar (experimental). Homebrew avoids the "Apple could not verify" warning. With a manual download, macOS blocks it until you run `xattr -d com.apple.quarantine dpi-bypass`|
15
15
| Linux |`dpi-bypass-linux-amd64.tar.gz`| extract, then `./dpi-bypass` in a terminal (experimental) |
16
16
17
17
macOS and Linux are `.tar.gz` because a plain downloaded binary loses its "executable" permission; the archive keeps it. `SHA256SUMS.txt` lists the checksums.
@@ -27,7 +27,9 @@ Or build it yourself: `just build` / `go build -o dpi.exe ./cmd/dpi-bypass`.
27
27
3.**Right-click the tray icon** for quick actions: Turn on/off, Share with other devices, Open dashboard, Clear log, Start with Windows, Quit. There are no notifications for normal things (starting, switching something, learning a site): the icon colour, the checkmarks and the dashboard are the feedback. A notification only appears when something really failed, for example when something else is using the port.
28
28
4.**Left-click the tray icon** to turn the bypass on or off. For the dashboard, choose Open dashboard, start the exe a second time, or open `http://127.0.0.1:18080/`.
29
29
30
-
macOS/Linux: run the binary in a terminal, open the dashboard address it prints, stop with Ctrl+C. On Linux without GNOME, set your system proxy auto-config (PAC) URL to `http://127.0.0.1:18080/proxy.pac` yourself.
30
+
macOS: run `dpi-bypass` in a terminal, or start it at every login with `brew services start dpi-bypass`. A dot appears in the menu bar (green when the bypass is on). **Click it** for the same menu as on Windows (Turn on/off, Share with other devices, Open dashboard, Clear log, Quit). The menu has no "Start with Windows" item: use `brew services` for that.
31
+
32
+
Linux: run the binary in a terminal, open the dashboard address it prints, stop with Ctrl+C. On Linux without GNOME, set your system proxy auto-config (PAC) URL to `http://127.0.0.1:18080/proxy.pac` yourself.
31
33
32
34
## Dashboard
33
35
@@ -125,7 +127,7 @@ The app is meant to run for a very long time without a restart:
125
127
126
128
- Only fixes **SNI-based** blocking over HTTPS. Not IP or DNS blocking, not UDP/QUIC.
127
129
- Only apps that honor the system proxy are covered (browsers, Steam client, most launchers).
128
-
- macOS and Linux builds are untested on real machines and have no tray icon.
130
+
-The macOS and Linux builds are experimental. Linux has no tray icon.
129
131
130
132
## Develop
131
133
@@ -135,4 +137,4 @@ just run # run from source with console output
Copy file name to clipboardExpand all lines: docs/releasing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ A release is a `v*` tag pushed to `main`. `.github/workflows/release.yml` does t
4
4
5
5
## What the workflow does
6
6
7
-
1.**release** runs the tests, builds the Windows `.exe` and the macOS and Linux`.tar.gz` archives, writes `SHA256SUMS.txt`, and publishes the GitHub release.
7
+
1.**build-windows-linux** runs the tests and builds the Windows `.exe` and the Linux `.tar.gz` on Linux. **build-macos** builds the two macOS `.tar.gz` archives on a macOS runner with CGO, because the menu bar icon is Cocoa code and cannot be cross-compiled from Linux. **release** then writes `SHA256SUMS.txt` and publishes the GitHub release.
8
8
2.**tap** points `Formula/dpi-bypass.rb` in [hong4rc/homebrew-tap](https://github.com/hong4rc/homebrew-tap) at the new tag, using `scripts/bump-formula.py` and the release checksums, and opens a pull request there.
9
9
3.**verify-brew** installs from that pull request's branch on a clean macOS runner. It runs `brew audit --strict --online`, `brew install`, `brew test`, then checks that `dpi-bypass --version` equals the tag and that the installed binary has no `com.apple.quarantine` attribute (that attribute is what triggers the "Apple could not verify" warning).
0 commit comments