Skip to content

Update check, coffee link guard, macOS Application Firewall rules (0.2.2) - #3

Merged
th3r-dev merged 3 commits into
mainfrom
dev
Sep 26, 2026
Merged

th3r-dev merged 3 commits into
mainfrom
dev

Conversation

@th3r-dev

@th3r-dev th3r-dev commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

What

  • Update check: src/piewall/update.py (stdlib only) asks api.github.com/repos/TheeraphatStudent/piewall/releases/latest when the window opens, in a background thread. If the tag is newer than the installed version, a dialog offers the download for this machine: piewall-setup.exe on Windows, piewall-macos-arm64.pkg / -x86_64.pkg on macOS. Offline, rate limits or bad JSON are ignored until the next launch. The CLI and MCP server do not check.
  • Packaging: the Windows spec no longer excludes ssl/_hashlib (HTTPS needs them; the exes get a few MB bigger). Both specs bundle piewall's dist metadata so the frozen app knows its version.
  • Site: a production build now fails when PUBLIC_COFFEE_URL is missing or isn't a https://buy.stripe.com/ link. Before, the button silently fell back to #coffee.

Verified

  • pytest 80 passed: version comparison, asset choice per OS/arch, and the GUI dialog → browser flow.
  • Live GitHub call from source and from a frozen (PyInstaller) macOS build: pretending to be 0.2.0, it offers the v0.2.1 arm64 .pkg.
  • Site build fails without the coffee URL and passes with it.

Not verified

  • Frozen Windows HTTPS (runs in CI only at release time).

macOS: Application Firewall rules

piewall on macOS listed only the pf rules it created itself, so a fresh install showed nothing. PfBackend now also lists the Application Firewall's app list (socketfilterfw --listapps, no password needed) as incoming per-app rules. Allow/Block/Delete and new per-program rules go through socketfilterfw, batched into the same single password prompt as pf changes. Those rules show as disabled while the Application Firewall is off; per-app disable is refused with a clear message (macOS has no such switch).

Verified on this Mac: piewall list shows its 8 app rules; the window shows 8 rows.

- update.py asks GitHub releases/latest (stdlib urllib); the window offers the
  installer for this OS/arch when a newer version exists, silently skips on
  any network error. Windows builds keep ssl; both builds carry piewall's
  metadata so the frozen app knows its version.
- site: a production build fails without PUBLIC_COFFEE_URL instead of
  shipping a coffee button that links to #coffee.
piewall listed only the pf rules it had created, so a fresh install showed
an empty window. It now also lists the macOS Application Firewall's app list
(readable without a password) and routes Allow/Block/Delete and per-program
rules to socketfilterfw, batched into the same single password prompt as pf.
@th3r-dev th3r-dev changed the title Update check on startup (Windows + macOS); coffee link guard Update check, coffee link guard, macOS Application Firewall rules (0.2.2) Sep 26, 2026
@sonarqubecloud

Copy link
Copy Markdown

@th3r-dev
th3r-dev merged commit 5856246 into main Sep 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant