Skip to content

armgit / soju

Public Imported from GitHub
0

Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.

Comments and README trimmed (#218)

Mikekfcedc268c949
diff --git a/docs/windows.html b/docs/windows.html
index 5e6ea38a10b..bae13c56281 100644
--- a/docs/windows.html
+++ b/docs/windows.html
@@ -30,7 +30,7 @@
<a href="#ko" lang="ko" hreflang="ko">한국어</a>
</div></nav>
<main id="main">
-<header class="hero"><h1>Don&#x27;t Sell the Cat on Windows</h1><p class="lead">You bought the game from us and want to play on a PC. It takes about a minute.</p></header><section id="install" aria-labelledby="install-title"><h2 id="install-title">Install</h2><ol class="steps"><li><b>Download</b><p>Open the Polar receipt email (or the page you saw after paying) and download <code>DontSellTheCat-windows-1.0.zip</code>, about 375 MB.</p></li><li><b>Extract</b><p>Right-click the zip, choose <strong>Extract All</strong>, and put the folder wherever you like.</p></li><li><b>Run</b><p>Open the folder and double-click <code>DontSellTheCat.exe</code>.</p></li><li><b>If Windows warns you</b><p>A blue &quot;Windows protected your PC&quot; window can appear the first time, because the game isn&#x27;t from the Microsoft Store and we don&#x27;t pay for a code-signing certificate. Click <strong>More info</strong>, then <strong>Run anyway</strong>.</p></li></ol><div class="table-scroll" role="region" aria-label="Requirements" tabindex="0"><table><thead><tr><th scope="col"></th><th scope="col">Needed</th></tr></thead><tbody><tr><th scope="row">Windows</th><td>10 or 11, 64-bit</td></tr><tr><th scope="row">Graphics</th><td>DirectX 12 GPU. On older laptops set Graphics to Low in Settings.</td></tr><tr><th scope="row">Saves</th><td><code>%APPDATA%\Godot\app_userdata\Don&#x27;t Sell the Cat</code>. Copy this folder to move progress to another PC.</td></tr></tbody></table></div></section><section id="updates" aria-labelledby="updates-title"><h2 id="updates-title">Updates</h2><p>New versions are added to your purchase. Download the zip again from the receipt link or the Polar customer portal and replace the old folder; your saves stay where they are.</p><p>On a Mac, use <a href="./">Soju</a> instead: press Buy in its Didim Labs Store and it installs the game by itself.</p></section><section id="ko" aria-labelledby="ko-title"><h2 id="ko-title">한국어 안내</h2><ol class="steps"><li><b>받기</b><p>Polar 영수증 메일(또는 결제 후 나온 페이지)에서 <code>DontSellTheCat-windows-1.0.zip</code>을 받습니다. 약 375MB입니다.</p></li><li><b>압축 풀기</b><p>zip을 오른쪽 클릭해 <strong>압축 풀기</strong>를 하고 원하는 곳에 폴더를 둡니다.</p></li><li><b>실행</b><p>폴더 안의 <code>DontSellTheCat.exe</code>를 실행합니다. &quot;Windows의 PC 보호&quot; 창이 뜨면 <strong>추가 정보</strong> → <strong>실행</strong>을 누르세요. 처음 한 번만 뜹니다.</p></li></ol><p>세이브는 <code>%APPDATA%\Godot\app_userdata\Don&#x27;t Sell the Cat</code>에 있습니다.</p></section><section id="help" aria-labelledby="help-title"><h2 id="help-title">Help</h2><p>Write to <a href="mailto:[email protected]">[email protected]</a> with your Windows version and what you see.</p></section>
+<header class="hero"><h1>Don&#x27;t Sell the Cat on Windows</h1><p class="lead">You bought the game from us and want to play on a PC. It takes about a minute.</p></header><section id="install" aria-labelledby="install-title"><h2 id="install-title">Install</h2><ol class="steps"><li><b>Download</b><p>Open the Polar receipt email (or the page you saw after paying) and download <code>DontSellTheCat-windows-1.0.zip</code>, about 375 MB.</p></li><li><b>Extract</b><p>Right-click the zip, choose <strong>Extract All</strong>, and put the folder wherever you like.</p></li><li><b>Run</b><p>Open the folder and double-click <code>DontSellTheCat.exe</code>.</p></li><li><b>If Windows warns you</b><p>A blue &quot;Windows protected your PC&quot; window can appear the first time, because the game isn&#x27;t from the Microsoft Store. Click <strong>More info</strong>, then <strong>Run anyway</strong>.</p></li></ol><div class="table-scroll" role="region" aria-label="Requirements" tabindex="0"><table><thead><tr><th scope="col"></th><th scope="col">Needed</th></tr></thead><tbody><tr><th scope="row">Windows</th><td>10 or 11, 64-bit</td></tr><tr><th scope="row">Graphics</th><td>DirectX 12 GPU. On older laptops set Graphics to Low in Settings.</td></tr><tr><th scope="row">Saves</th><td><code>%APPDATA%\Godot\app_userdata\Don&#x27;t Sell the Cat</code>. Copy this folder to move progress to another PC.</td></tr></tbody></table></div></section><section id="updates" aria-labelledby="updates-title"><h2 id="updates-title">Updates</h2><p>New versions are added to your purchase. Download the zip again from the receipt link or the Polar customer portal and replace the old folder; your saves stay where they are.</p><p>On a Mac, use <a href="./">Soju</a> instead: press Buy in its Didim Labs Store and it installs the game by itself.</p></section><section id="ko" aria-labelledby="ko-title"><h2 id="ko-title">한국어 안내</h2><ol class="steps"><li><b>받기</b><p>Polar 영수증 메일(또는 결제 후 나온 페이지)에서 <code>DontSellTheCat-windows-1.0.zip</code>을 받습니다. 약 375MB입니다.</p></li><li><b>압축 풀기</b><p>zip을 오른쪽 클릭해 <strong>압축 풀기</strong>를 하고 원하는 곳에 폴더를 둡니다.</p></li><li><b>실행</b><p>폴더 안의 <code>DontSellTheCat.exe</code>를 실행합니다. &quot;Windows의 PC 보호&quot; 창이 뜨면 <strong>추가 정보</strong> → <strong>실행</strong>을 누르세요. 처음 한 번만 뜹니다.</p></li></ol><p>세이브는 <code>%APPDATA%\Godot\app_userdata\Don&#x27;t Sell the Cat</code>에 있습니다.</p></section><section id="help" aria-labelledby="help-title"><h2 id="help-title">Help</h2><p>Write to <a href="mailto:[email protected]">[email protected]</a> with your Windows version and what you see.</p></section>
</main>
<footer><div class="inner">
<p><span>Didim Labs · <a href="mailto:[email protected]">[email protected]</a> · <a href="./">Soju</a></span></p>
diff --git a/patches/d2r-pcvr/README.md b/patches/d2r-pcvr/README.md
index c8f041cca1c..bd1f9472a1a 100644
--- a/patches/d2r-pcvr/README.md
+++ b/patches/d2r-pcvr/README.md
@@ -46,18 +46,3 @@ Output: `dist/vr-mod/d2rl-pcvr-soju.dll`, a complete patched source archive,
MPL license, and patch. The build prints sizes and SHA-256 hashes. Byte-for-byte
reproducibility across paths/toolchain versions is not assumed; pin the exact
built DLL that will be published. No game assets are included.
-
-## Release gate
-
-The `vr-mod-v2` assets are published (2026-11-24); a real Quest remains unverified. For the next build:
-
-1. Publish the staged DLL at the `vr-mod-v2` URL in resources/d2r-vr.json (with soju-nvngx.dll from tools/ngx-unwrap/build.sh). Confirm
- its size and SHA-256 match `mod_patch`; never replace a published artifact.
-2. Publish `d2r-pcvr-soju-source.tar.xz`, LICENSE, and the patch alongside it.
- Keep the source available for recipients under MPL-2.0, and publish this repo's
- patch and rebuild script with the Soju release. Preserve upstream notices.
-3. If rebuilding changes the bytes, update the manifest to the new exact size
- and digest before release. All setup downloads use the existing verified
- downloader; none bypass checksum validation.
-4. Smoke-test fresh setup and upgrade, then distribute Soju. Do not distribute
- this manifest while the pinned release asset is absent.
diff --git a/site-worker/README.md b/site-worker/README.md
index 359733f19e3..5fc7a268342 100644
--- a/site-worker/README.md
+++ b/site-worker/README.md
@@ -5,5 +5,4 @@ Cloudflare Worker that serves the GitHub Pages site (docs/) at didimlabs.com, so
It also answers POST /api/didim/download for the Didim Labs Store (needs the POLAR_TOKEN secret).
Two deployments use this code: `wrangler.didimlabs.toml` for didimlabs.com and `wrangler.toml` for the old
-soju.snack-wrap.com address, which only redirects to didimlabs.com. They live in different Cloudflare accounts;
-the maintainers' private ops notes say which login deploys which.
+soju.snack-wrap.com address, which only redirects to didimlabs.com.
diff --git a/site-worker/auth.js b/site-worker/auth.js
index 895a752abc0..cd7e631e433 100644
--- a/site-worker/auth.js
+++ b/site-worker/auth.js
@@ -5,7 +5,7 @@
// GET /auth/providers -> which buttons Soju should show
// The result (email and license keys) sits in the AUTH KV namespace for 10 minutes under the state
// that only that Soju knows. The Didim Labs account (email, provider, first and last sign-in day) is kept
-// under a:<email>; list them with: wrangler kv key list --binding AUTH --prefix a: --remote. Secrets: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, APPLE_SERVICES_ID,
+// under a:<email>. Secrets: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, APPLE_SERVICES_ID,
// APPLE_TEAM_ID, APPLE_KEY_ID, APPLE_PRIVATE_KEY (the .p8 text).
import { issueToken } from "./feed.js";
diff --git a/site-worker/community.js b/site-worker/community.js
index a85b3c8095a..e99bd92718a 100644
--- a/site-worker/community.js
+++ b/site-worker/community.js
@@ -1,7 +1,7 @@
// Release news sign-up.
//
// POST /api/notify {"email", "source"} keeps the address in the AUTH KV namespace under "n:<email>"
-// (no expiry). Read the list with: wrangler kv key list --binding AUTH --prefix n: --remote
+// (no expiry).
const json = (body, status = 200) => new Response(JSON.stringify(body), { status, headers: { "content-type": "application/json", "cache-control": "no-store" } });
let minute = 0, notifyCount = 0;
@@ -29,7 +29,6 @@ export async function notify(request, env) {
// POST /api/wishlist {"email", "game"}: someone wants to hear when a game that isn't on sale yet comes out.
// Kept in the AUTH KV namespace under "w:<game>:<email>"; one email per game at launch, nothing else.
-// count: wrangler kv key list --binding AUTH --prefix w:<game>: --remote -c wrangler.didimlabs.toml
export async function wishlist(request, env) {
if (request.method !== "POST") return json({ error: "Use POST." }, 405);
if (!env.AUTH) return json({ error: "Not available right now." }, 503);
diff --git a/site-worker/feed.js b/site-worker/feed.js
index f3ee61b2eb2..23ca20df3cb 100644
--- a/site-worker/feed.js
+++ b/site-worker/feed.js
@@ -19,8 +19,6 @@
// Posting needs "Authorization: Bearer <token>": the token Soju gets once when a sign-in finishes (auth.js, issueToken).
// Only the nickname is ever shown; the address stays in the database. Operators are the addresses in FEED_ADMINS
// (comma separated): their posts may be news (shown as Didim Labs), and they may hide any post.
-//
-// Read: wrangler d1 execute soju-feed --remote --command "select id, nick, kind, body from posts order by id desc limit 50" -c wrangler.didimlabs.toml
const json = (body, status = 200) => new Response(JSON.stringify(body), { status, headers: { "content-type": "application/json", "cache-control": "no-store" } });
// Photos: Soju sends each one already made small (long side 1600, JPEG) with a 560 px thumbnail, so nothing here resizes and
diff --git a/site-worker/stats.js b/site-worker/stats.js
index 977c1b1e4d8..c2c117fdd09 100644
--- a/site-worker/stats.js
+++ b/site-worker/stats.js
@@ -7,8 +7,6 @@
// launch: games [{game, title, launcher, result, how, why?, detail?, ac?}] counts one start: result ran | quick_exit | no_start,
// how soju (the library's Play button) | steam (Steam's own window)
// Per-game totals feed the "Plays" label on the game pages (site/soju_plays.py); nothing about one install is published.
-//
-// Read everything: wrangler d1 execute soju-stats --remote --command "select * from plays" -c wrangler.didimlabs.toml
const json = (body, status = 200, extra = {}) => new Response(JSON.stringify(body), {
status, headers: { "content-type": "application/json", "cache-control": "no-store", ...extra },
diff --git a/site/content/windows.json b/site/content/windows.json
index 7e5b8a8ce19..50f390ff85d 100644
--- a/site/content/windows.json
+++ b/site/content/windows.json
@@ -19,7 +19,7 @@
{"title": "Download", "text": "Open the Polar receipt email (or the page you saw after paying) and download `DontSellTheCat-windows-1.0.zip`, about 375 MB."},
{"title": "Extract", "text": "Right-click the zip, choose **Extract All**, and put the folder wherever you like."},
{"title": "Run", "text": "Open the folder and double-click `DontSellTheCat.exe`."},
- {"title": "If Windows warns you", "text": "A blue \"Windows protected your PC\" window can appear the first time, because the game isn't from the Microsoft Store and we don't pay for a code-signing certificate. Click **More info**, then **Run anyway**."}
+ {"title": "If Windows warns you", "text": "A blue \"Windows protected your PC\" window can appear the first time, because the game isn't from the Microsoft Store. Click **More info**, then **Run anyway**."}
]}},
{"type": "Table", "props": {"label": "Requirements", "head": ["", "Needed"], "rows": [
["Windows", "10 or 11, 64-bit"],
diff --git a/site/soju_plays.py b/site/soju_plays.py
index cb4d09f76eb..daf6c4a9b40 100644
--- a/site/soju_plays.py
+++ b/site/soju_plays.py
@@ -4,12 +4,7 @@
Reads the anonymous play counts (site-worker/stats.js, the `plays` table) as JSON on stdin and
writes site/soju-plays.json with one line per game: id, title, how many installs played it and
for how many minutes in all. A game counts once it stayed open a few minutes in all. A start
-that "ran" (open for a minute) is not enough: an anti-cheat or error window stays that long too. Nothing that identifies a person or a Mac is written. Run it on a
-Mac logged in to the account that holds the soju-stats database:
-
- cd site-worker && npx wrangler d1 execute soju-stats --remote --json -c wrangler.didimlabs.toml \\
- --command "$(python3 ../site/soju_plays.py --sql)" \\
- | python3 ../site/soju_plays.py
+that "ran" (open for a minute) is not enough: an anti-cheat or error window stays that long too. Nothing that identifies a person or a Mac is written.
"""
import json
import sys