-
Notifications
You must be signed in to change notification settings - Fork 0
Phase 6: unsigned distribution — ad-hoc codesign + release runbook + install page #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,144 @@ | ||
| <!DOCTYPE html> | ||
| <!-- | ||
| install-page-template.html — user-facing install page. | ||
|
|
||
| Filled by the operator at distribution time via envsubst: | ||
| PKG_URL full URL of the BB-VPN-<ver>.pkg download | ||
| PKG_NAME filename only (BB-VPN-<ver>.pkg) — shown in the UI | ||
| ENROLL_URI bb-vpn://enroll?uuid=<UUID> for THIS user | ||
| USER_NAME human name for the personal greeting | ||
|
|
||
| Hosted on the same cover-site as the .pkg, under a long-random | ||
| path. The .pkg URL and the enrollment URI are both per-cohort | ||
| secrets — anyone with this page can both download and enroll. | ||
| --> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <meta name="robots" content="noindex, nofollow"> | ||
| <title>BB-VPN install — ${USER_NAME}</title> | ||
| <style> | ||
| :root { | ||
| color-scheme: light dark; | ||
| --bg: #f7f7f8; | ||
| --fg: #1a1a1a; | ||
| --muted: #6b7280; | ||
| --card: #ffffff; | ||
| --border: #e5e7eb; | ||
| --accent: #2563eb; | ||
| --accent-fg: #ffffff; | ||
| --warn-bg: #fff8e1; | ||
| --warn-border: #f0c94c; | ||
| } | ||
| @media (prefers-color-scheme: dark) { | ||
| :root { | ||
| --bg: #0b0b0d; | ||
| --fg: #e5e7eb; | ||
| --muted: #9ca3af; | ||
| --card: #18181b; | ||
| --border: #27272a; | ||
| --accent: #3b82f6; | ||
| --warn-bg: #2a2208; | ||
| --warn-border: #92660a; | ||
| } | ||
| } | ||
| html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); | ||
| font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", | ||
| "Helvetica Neue", Arial, sans-serif; } | ||
| .wrap { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; } | ||
| h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; } | ||
| h2 { font-size: 18px; margin: 28px 0 10px; } | ||
| p { margin: 8px 0; } | ||
| .muted { color: var(--muted); font-size: 14px; } | ||
| .card { background: var(--card); border: 1px solid var(--border); | ||
| border-radius: 10px; padding: 18px 20px; margin: 16px 0; } | ||
| .btn { display: inline-block; padding: 12px 18px; border-radius: 8px; | ||
| background: var(--accent); color: var(--accent-fg); text-decoration: none; | ||
| font-weight: 600; } | ||
| .btn:hover { filter: brightness(1.05); } | ||
| ol { padding-left: 22px; } | ||
| ol li { margin: 6px 0; } | ||
| code { background: var(--bg); padding: 1px 6px; border-radius: 4px; | ||
| font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; } | ||
| .warn { background: var(--warn-bg); border: 1px solid var(--warn-border); | ||
| padding: 12px 16px; border-radius: 8px; font-size: 14px; } | ||
| .step-num { display: inline-block; width: 22px; height: 22px; | ||
| background: var(--accent); color: var(--accent-fg); border-radius: 50%; | ||
| text-align: center; font-size: 13px; font-weight: 700; line-height: 22px; | ||
| margin-right: 6px; vertical-align: 1px; } | ||
| hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; } | ||
| details { margin: 12px 0; } | ||
| details summary { cursor: pointer; color: var(--accent); font-size: 14px; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <div class="wrap"> | ||
|
|
||
| <h1>BB-VPN install</h1> | ||
| <p class="muted">Personal link for <strong>${USER_NAME}</strong>. Don't share this page — both the installer and your enrollment link are on it.</p> | ||
|
|
||
| <div class="card"> | ||
| <p><span class="step-num">1</span><strong>Download the installer</strong></p> | ||
| <p><a class="btn" href="${PKG_URL}" download>Download ${PKG_NAME}</a></p> | ||
| <p class="muted">~20 MB. Save it somewhere you can find in Finder (Downloads is fine).</p> | ||
|
fitz123 marked this conversation as resolved.
|
||
| </div> | ||
|
|
||
| <div class="card"> | ||
| <p><span class="step-num">2</span><strong>Right-click → Open the installer</strong></p> | ||
| <p>Find <code>${PKG_NAME}</code> in Finder. Don't double-click it.</p> | ||
| <ol> | ||
| <li>Right-click (or Control-click) the file.</li> | ||
| <li>Choose <strong>Open</strong> from the menu.</li> | ||
| <li>macOS will show a warning: <em>“${PKG_NAME} cannot be opened because Apple cannot check it for malicious software.”</em> Click <strong>Open</strong>.</li> | ||
| <li>The standard installer opens. Click through. Enter your Mac password when asked.</li> | ||
| </ol> | ||
| <div class="warn"> | ||
| <strong>Why the warning?</strong> The installer isn't signed with an Apple Developer ID (we don't have a paid Apple Developer account). Right-click → Open is the official one-time approval flow. macOS remembers your approval; you won't see this dialog again for this file. (Text-only instructions are intentional — no screenshots are shipped with the page.) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="card"> | ||
| <p><span class="step-num">3</span><strong>BBVPN starts automatically</strong></p> | ||
| <p>After the installer finishes, BBVPN launches on its own — a small icon (grey or yellow circle) appears in your menu bar within a few seconds. If the icon doesn't show up, open <strong>/Applications/BBVPN.app</strong> once via right-click → Open → click <strong>Open</strong> on the warning dialog.</p> | ||
| </div> | ||
|
|
||
| <div class="card"> | ||
| <p><span class="step-num">4</span><strong>Enroll</strong></p> | ||
| <p>Click the button below. Your browser will ask if you want to open the link in BBVPN — click <strong>Allow</strong> or <strong>Open BBVPN</strong>.</p> | ||
| <p><a class="btn" href="${ENROLL_URI}">Enroll this Mac</a></p> | ||
| <details> | ||
|
fitz123 marked this conversation as resolved.
|
||
| <summary>The button doesn't open BBVPN — what now?</summary> | ||
| <p>Open Terminal (Spotlight → “Terminal”) and run:</p> | ||
| <p><code>sudo "/Library/Application Support/bb-dpi/bin/bb-vpn" enroll '${ENROLL_URI}'</code></p> | ||
| </details> | ||
| </div> | ||
|
|
||
| <hr> | ||
|
|
||
| <h2>How do I know it's working?</h2> | ||
| <p>The menu bar icon turns <strong>green</strong> within a minute of enrollment. Click the icon to see your exit country and which services are running. Visit <a href="https://ifconfig.co" target="_blank" rel="noopener">ifconfig.co</a> — the IP shown should NOT be your real one.</p> | ||
|
|
||
| <h2>It's stuck on yellow / grey</h2> | ||
| <ol> | ||
| <li>Grey: not enrolled yet — repeat step 4.</li> | ||
| <li>Yellow with “syncing”: wait 15-30 seconds, the first sync is in flight.</li> | ||
| <li>Yellow with an error: click the icon, copy the error line, and DM the operator.</li> | ||
| </ol> | ||
|
|
||
| <h2>Stop / start</h2> | ||
| <p>In Terminal:</p> | ||
| <p><code>sudo "/Library/Application Support/bb-dpi/bin/bb-vpn" stop</code> — turn the VPN off (survives reboots).<br> | ||
| <code>sudo "/Library/Application Support/bb-dpi/bin/bb-vpn" start</code> — turn it back on.</p> | ||
| <p class="muted">The absolute path is needed because <code>sudo</code> resets <code>$PATH</code> and the <code>~/.local/bin/bb-vpn</code> shortcut isn't on its search path.</p> | ||
|
|
||
| <h2>Uninstall</h2> | ||
| <p>If you ever need to remove BB-VPN, in Terminal:</p> | ||
| <p><code>sudo /Library/Application\ Support/bb-dpi/bin/bb-vpn-uninstall</code></p> | ||
|
|
||
| <hr> | ||
| <p class="muted">Trouble? DM the operator. Don't forward this page.</p> | ||
|
|
||
| </div> | ||
| </body> | ||
| </html> | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.