Privacy.
The app has no account and no analytics. The painting happens on your Mac. This policy says exactly what Outbound and this website do with personal data, who handles it, and what you can ask of us.
-
Last updated 2 November 2026
+
Last updated 21 November 2026
1. Who we are
@@ -69,7 +69,7 @@ import Topbar from "../components/Topbar.astro";
Updates
- Once a day Outbound asks this website whether there is a new version, and downloads it from GitHub if there is. Nothing about you is sent beyond what any web request carries: your IP address, and the versions of Outbound and macOS.
+ Once a day Outbound asks this website whether there is a new version, and downloads it from this website if there is, or from GitHub if this website can't send it. Nothing about you is sent beyond what any web request carries: your IP address, and the versions of Outbound and macOS.
5. What stays on your Mac
@@ -132,12 +132,12 @@ import Topbar from "../components/Topbar.astro";
11. Who else handles it
- Cloudflare : hosting, security and email forwarding for this website.
+ Cloudflare : hosting this website and the downloads, security, and email forwarding.
Polar : our reseller for purchases on this website. It handles payments, tax, receipts and refunds as the seller, and keeps license keys for us. See Polar's privacy policy .
Apple : purchases, updates and refunds for the App Store copy.
Plausible : counting visits, without cookies or personal data.
Supabase : the database for the waitlist and feedback.
- GitHub : hosting the downloads and the source code. See GitHub's privacy statement .
+ GitHub : hosting the source code, and the downloads when this website can't send them. See GitHub's privacy statement .
We share personal data only with these services, only for these purposes, and otherwise only when the law requires it or to protect our rights. If Outbound is ever sold, it would pass to the new owner under this policy.
diff --git a/scripts/release.sh b/scripts/release.sh
index 19730c3..01b0a5a 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -6,15 +6,18 @@ cd "$(dirname "$0")/.."
#
# scripts/release.sh 1.1 "What's new, in a sentence or two."
#
-# It bumps the version, builds, signs and notarizes the app, publishes it as a GitHub release, and adds it to
-# the appcast and the changelog on the website. Every copy checks that appcast once a day, downloads the update, checks its
-# signature, and installs it the next time the Mac is left alone.
+# It bumps the version, builds, signs and notarizes the app, publishes it as a GitHub release and in the site's own
+# storage on Cloudflare, where downloads and updates come from, and adds it to the appcast and the changelog on the
+# website. Every copy checks that appcast once a day, downloads the update, checks its signature, and installs it the
+# next time the Mac is left alone.
#
# Needs the Developer ID identity, the outbound-notary profile, and Sparkle's signing key in the login
-# keychain (made once with generate_keys --account app.outbound.Outbound; keep a backup of it).
+# keychain (made once with generate_keys --account app.outbound.Outbound; keep a backup of it), and Wrangler
+# logged in to Cloudflare (npx wrangler login).
usage='Usage: scripts/release.sh ""'
version="${1:?$usage}"
notes="${2:?$usage}"
+[[ "$version" =~ ^[0-9]+(\.[0-9]+){1,2}$ ]] || { echo "A version looks like 1.9 or 1.9.1." >&2; exit 1; }
identity="Developer ID Application: Kartik Kulloli (55W3P96VL4)"
plist=Configuration/Info.plist
appcast=Website/public/appcast.xml
@@ -25,6 +28,13 @@ git pull --ff-only --quiet
! gh release view "v$version" >/dev/null 2>&1 || { echo "v$version is already out." >&2; exit 1; }
swift package resolve >/dev/null
sign_update=.build/artifacts/sparkle/Sparkle/bin/sign_update
+[[ -d node_modules ]] || npm ci --silent
+bucket=outbound-downloads
+npx wrangler r2 bucket info "$bucket" >/dev/null 2>&1 ||
+ { echo "Can't reach the $bucket bucket on Cloudflare: log in with npx wrangler login." >&2; exit 1; }
+# Caches near downloaders keep a file for a day, so once the appcast offers a version, its files are never replaced.
+# A release that stopped before that can be run again: nothing was offered yet.
+! grep -qF "/Outbound-v$version.dmg\"" "$appcast" || { echo "The appcast already offers v$version." >&2; exit 1; }
# The new version, and a build number one past the last, which is what Sparkle compares.
build=$(( $(plutil -extract CFBundleVersion raw "$plist") + 1 ))
@@ -39,7 +49,11 @@ zip="build/Outbound-v$version.zip"
cp build/Outbound.dmg "$dmg"
cp build/Outbound.zip "$zip"
-# Publish the disk image first, so the appcast never points at a file that isn't there yet.
+# Publish the disk image first, so the appcast never points at a file that isn't there yet: in the bucket, which the
+# site serves downloads and updates from at /download/, and on GitHub, as the record of the release.
+for file in "$dmg" "$zip"; do
+ npx wrangler r2 object put "$bucket/$(basename "$file")" --file "$file" --remote >/dev/null
+done
gh release create "v$version" "$dmg" "$zip" --target "$(git rev-parse HEAD)" \
--title "Outbound v$version" --notes "$notes"
@@ -52,7 +66,7 @@ item=" -
$build
$version
$(plutil -extract LSMinimumSystemVersion raw Configuration/Info.plist)
-
+
"
ITEM="$item" awk '{ print } // && !done { print ENVIRON["ITEM"]; done = 1 }' "$appcast" > "$appcast.new"
mv "$appcast.new" "$appcast"
@@ -69,7 +83,6 @@ fi
git add "$entry"
# The site serves the appcast, so it has to build before the update can go out.
-[[ -d node_modules ]] || npm ci --silent
npm run build >/dev/null ||
{ echo "The site doesn't build, so v$version isn't offered yet: fix it, then commit and push." >&2; exit 1; }
git commit --quiet -am "Offer Outbound v$version as an update"
diff --git a/worker/index.js b/worker/index.js
index be1ad64..8cf9a83 100644
--- a/worker/index.js
+++ b/worker/index.js
@@ -7,7 +7,8 @@
// With ?from=appstore, as the Mac App Store copy opens them, without any way
// to buy or download it here (forAppStore).
// GET /buy[?currency=usd] On to a new Polar checkout for Outbound, in that money, or in dollars.
-// GET /download The newest disk image, Outbound-v1.0.dmg and so on, from GitHub.
+// GET /download On to the newest disk image, /download/Outbound-v1.0.dmg and so on.
+// GET /download/Outbound-v1.0.dmg That version's disk image, or its .zip, from the site's own storage.
// POST /api/checkout A new Polar checkout for Outbound, in the buyer's money: { id, url, expires_at }.
// POST /api/license { checkout } That checkout's license key once it is paid:
// { status: "ready", key, email, paid } or { status: "pending" | "open" | ... }.
@@ -42,6 +43,9 @@ const MESSAGE_LIMIT = 2000;
const VERSION = /^\d{1,3}(\.\d{1,3}){0,2}$/;
// The app's line about how the painting runs on that Mac: chip, macOS, holds, GPU errors and cost.
const DIAG = /^[A-Za-z0-9 =:,._-]{1,160}$/;
+// What a release puts up for download: its disk image and its zip, by version. scripts/release.sh makes versions like
+// 1.9 and 1.9.1; a name of any other version still finds its GitHub release.
+const RELEASE_FILE = /^Outbound-v(\d[\w.-]{0,30})\.(dmg|zip)$/;
// Outbound's price in the visitor's own money, in the countries most buyers come from, as Cloudflare places them:
// the currency its checkout charges, and how the pages write the price. The Outbound product in Polar needs a price
// of that amount in each currency. Everywhere else, and for anyone who asks for dollars, it's $4.99. Turkish pages
@@ -77,9 +81,10 @@ const PRICES = {
const PRICE_OR_DOLLARS = /(]*\sdata-dollars\b[^>]*>)([\s\S]*?<\/a>)|\$4\.99(?![\d.,])/g;
export default {
- async fetch(request, env) {
+ async fetch(request, env, ctx) {
const url = new URL(request.url);
- if (url.pathname === "/download") return download(request, env);
+ if (url.pathname === "/download") return newest(request, env);
+ if (url.pathname.startsWith("/download/")) return download(request, env, ctx, url);
if (url.pathname === "/buy") return buy(request, env, url);
if (TRANSLATED.has(url.pathname)) return forAppStore(url, await page(request, env, url));
if (!url.pathname.startsWith("/api/")) return forAppStore(url, await priced(request, env));
@@ -98,15 +103,87 @@ export default {
},
};
-// The newest disk image, read from the site's own update feed, which scripts/release.sh writes once the release
+// The newest disk image is the first in the site's own update feed, which scripts/release.sh writes once the release
// is up. No call to GitHub's API, whose limits shared addresses run into. Before any release, the releases page.
-async function download(request, env) {
+async function newest(request, env) {
const feed = await env.ASSETS.fetch(new Request(new URL("/appcast.xml", request.url)));
- const match = (await feed.text()).match(/ null);
+ if (kept) return kept;
+ }
+ let file;
+ try {
+ if (request.method === "HEAD") {
+ file = await env.DOWNLOADS.head(name);
+ } else if (part) {
+ // A range storage can't serve, past the end or in several pieces, gets the whole file instead. So does a
+ // download resumed on a file that has changed since it began.
+ file = await env.DOWNLOADS.get(name, { range: request.headers }).catch(() => undefined);
+ const since = request.headers.get("If-Range");
+ if (file?.range && since && since !== file.httpEtag) {
+ file.body?.cancel();
+ file = undefined;
+ }
+ if (file === undefined) file = await env.DOWNLOADS.get(name);
+ } else {
+ file = await env.DOWNLOADS.get(name);
+ }
+ } catch (error) {
+ console.error(`/download/${name}: ${error.message}`);
+ return redirect(github);
+ }
+ if (!file) return redirect(github);
+ const headers = new Headers({
+ "Content-Type": release[2] === "dmg" ? "application/x-apple-diskimage" : "application/zip",
+ "Content-Disposition": `attachment; filename="${name}"`,
+ "Content-Length": String(file.size),
+ "Accept-Ranges": "bytes",
+ // Only a day, in case a file ever has to be replaced, though scripts/release.sh never replaces one already offered.
+ "Cache-Control": "public, max-age=86400",
+ ETag: file.httpEtag,
+ // As every page has (Website/public/_headers, which reaches only the files the site serves itself).
+ "Strict-Transport-Security": "max-age=63072000; includeSubDomains; preload",
+ "X-Content-Type-Options": "nosniff",
});
+ if (!file.body) return new Response(null, { headers });
+ const [first, last] = file.range ? span(file.range, file.size) : [0, file.size - 1];
+ if (first > 0 || last < file.size - 1) {
+ headers.set("Content-Range", `bytes ${first}-${last}/${file.size}`);
+ headers.set("Content-Length", String(last - first + 1));
+ return new Response(file.body, { status: 206, headers });
+ }
+ const response = new Response(file.body, { headers });
+ // A plain download fills the cache; one that asked for a part and got the whole file is left out of it.
+ if (!part) ctx.waitUntil(caches.default.put(key, response.clone()).catch(() => {}));
+ return response;
+}
+
+// The first and last byte an R2 range covers, in a file of that size.
+function span(range, size) {
+ if (range.suffix !== undefined) return [Math.max(size - range.suffix, 0), size - 1];
+ const first = range.offset ?? 0;
+ const last = range.length === undefined ? size - 1 : first + range.length - 1;
+ return [first, Math.min(last, size - 1)];
}
// An English page, or a redirect to the same page in the visitor's language. Search engines, which send no
diff --git a/wrangler.jsonc b/wrangler.jsonc
index 717d3ca..4bfe867 100644
--- a/wrangler.jsonc
+++ b/wrangler.jsonc
@@ -6,7 +6,12 @@
// Secrets, set once and kept across deploys with npx wrangler secret put NAME: POLAR_ACCESS_TOKEN, and for the
// waitlist and feedback SUPABASE_URL, SUPABASE_KEY and WAITLIST_TOKEN (worker/supabase.sql). Locally they go in
// .dev.vars.
+ //
+ // Each release's disk image and zip go in the R2 bucket outbound-downloads (scripts/release.sh puts them there), which
+ // the Worker serves at /download/Outbound-v1.0.dmg and so on. It is private: nothing reaches it but the Worker.
"name": "outbound",
+ // The edbn.me account, which holds the site and its bucket.
+ "account_id": "1f859c2c2ed610755277b10e37f7005e",
"main": "worker/index.js",
"compatibility_date": "2026-10-01",
"build": { "command": "npm run build" },
@@ -15,8 +20,8 @@
"binding": "ASSETS",
"not_found_handling": "404-page",
"run_worker_first": [
- "/api/*", "/buy", "/download", "/", "/support", "/thanks", "/waitlist", "/feedback", "/*/", "/*/support", "/*/thanks",
- "/*/waitlist", "/*/feedback", "/license", "/privacy", "/terms"
+ "/api/*", "/buy", "/download", "/download/*", "/", "/support", "/thanks", "/waitlist", "/feedback", "/*/",
+ "/*/support", "/*/thanks", "/*/waitlist", "/*/feedback", "/license", "/privacy", "/terms"
]
},
"vars": {
@@ -32,6 +37,7 @@
// Polar's own checkout link for Outbound for 1 Mac, where the site's Buy goes when a checkout can't be made.
"POLAR_CHECKOUT_LINK": "https://buy.polar.sh/polar_cl_6pzC7vjcRHCZEWxV1M5mQ6zrmGvVYPv3dJpzc2Qv9a9"
},
+ "r2_buckets": [{ "binding": "DOWNLOADS", "bucket_name": "outbound-downloads" }],
"ratelimits": [
{ "name": "CHECKOUTS", "namespace_id": "1101", "simple": { "limit": 10, "period": 60 } },
{ "name": "LOOKUPS", "namespace_id": "1102", "simple": { "limit": 60, "period": 60 } },