Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

site: a Download for Windows button next to Mac and Linux (#454)

Oleksandr Ivanchenko38313d40d91b
diff --git a/scripts/build_site.py b/scripts/build_site.py
index 750ab5f7..524ac2f3 100644
--- a/scripts/build_site.py
+++ b/scripts/build_site.py
@@ -19,6 +19,9 @@ Shortcodes in the HTML:
{{avatar:ROLE}} a kwant app avatar (the same CRT-framed creature the app draws)
{{releases}} the release line under the hero: latest Mac version and date, release count
since the first one, licence (from CHANGELOG.md, see release_line)
+ {{windows_exe}} the latest release's Windows (beta) installer URL (from CHANGELOG.md, see
+ windows_installer); its file name carries the version, so it can't use
+ releases/latest/download like the .dmg
Every local asset URL in the pages and in site.css gets a `?v=<content hash>` query, so a deploy never pairs new HTML
with a browser's cached old CSS, JS, fonts or images.
@@ -277,6 +280,13 @@ def release_line(changelog=None):
)
+def windows_installer(changelog=None):
+ """The latest release's Windows (beta) installer. windows-release.yml names it kwant_<version>_windows_x64_beta_setup.exe
+ and attaches it to the mac-v<version> release, so the link points at that exact file."""
+ latest = releases(changelog)[0][0]
+ return f"{GITHUB}/releases/download/mac-v{latest}/kwant_{latest}_windows_x64_beta_setup.exe"
+
+
def operator(key):
value = OPERATOR[key].strip()
if not value:
@@ -292,6 +302,8 @@ def expand(body, root):
body = re.sub(r"\{\{install:([a-z0-9-]+)\}\}", lambda m: install(m[1]), body)
if "{{releases}}" in body:
body = body.replace("{{releases}}", release_line())
+ if "{{windows_exe}}" in body:
+ body = body.replace("{{windows_exe}}", windows_installer())
body = re.sub(r"\{\{avatar:([a-z_]+)\}\}", lambda m: avatar(m[1]), body)
body = re.sub(r"\{\{shot:([^|}]+)\|([^|}]+)(?:\|([^}]*))?\}\}", lambda m: shot(root, m[1], m[2], m[3]), body)
body = re.sub(
@@ -1002,7 +1014,7 @@ Key facts:
- kwant has no token (no coin, no crypto). The official X account is @kwantbot (https://x.com/kwantbot).
- Mac app: https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg
- Linux app (beta, x86_64): https://github.com/alexsergivan/kwant/releases/latest/download/kwant_amd64.deb (Ubuntu 22.04+, Debian 12+) or https://github.com/alexsergivan/kwant/releases/latest/download/kwant_x86_64.AppImage
-- Windows app (beta, 64-bit): the kwant_X.Y.Z_windows_x64_beta_setup.exe installer on https://github.com/alexsergivan/kwant/releases/latest (per-user install, no admin rights).
+- Windows app (beta, 64-bit): {{windows_exe}} (per-user install, no admin rights; the latest one is always on https://github.com/alexsergivan/kwant/releases/latest).
- Run Claude inside the VM (Linux, off by default): each bot's Claude replies run in a container with no network, and the real key stays outside. https://kwant.si/docs/agents-in-vm
- The program you install and run is called `kwnt` (`kwnt serve`).
- No telemetry: kwant sends nothing to its developers. The kwant.si website sets no cookies and counts page views with
@@ -1037,7 +1049,7 @@ def llms_txt(pages):
key=lambda p: pages[p]["date"], reverse=True)
main = sorted((p for p in pages if p not in docs + alternatives + blog and p not in ("privacy.html", "terms.html", "404.html")), key=lambda p: p != "index.html")
legal = [p for p in ("privacy.html", "terms.html") if p in pages]
- out = [LLMS_INTRO, "## Site", *map(line, main), "", "## Docs", *map(line, docs), ""]
+ out = [LLMS_INTRO.replace("{{windows_exe}}", windows_installer()), "## Site", *map(line, main), "", "## Docs", *map(line, docs), ""]
if alternatives:
out += ["## Alternatives", *map(line, alternatives), ""]
if blog:
diff --git a/scripts/check_site.py b/scripts/check_site.py
index 7f103f27..4ae57363 100644
--- a/scripts/check_site.py
+++ b/scripts/check_site.py
@@ -229,6 +229,10 @@ def check_release_line(errors):
"index.html: release line does not match CHANGELOG.md (run python3 scripts/build_site.py): "
+ (found[0] if found else "missing")
)
+ exe = build_site.windows_installer()
+ for page in ("index.html", "docs/install.html", "llms.txt"):
+ if exe not in (OUT / page).read_text():
+ errors.append(f"{page}: no link to {exe}, the latest Windows installer (run python3 scripts/build_site.py)")
def main():
diff --git a/scripts/test_releases.py b/scripts/test_releases.py
index af5f3ec1..445e671d 100644
--- a/scripts/test_releases.py
+++ b/scripts/test_releases.py
@@ -34,6 +34,12 @@ class ReleaseLine(unittest.TestCase):
self.assertIn("3 releases since Oct 25", line)
self.assertIn("AGPL-3.0", line)
+ def test_windows_installer_is_the_latest_versioned_exe(self):
+ self.assertEqual(
+ site.windows_installer(LOG),
+ "https://github.com/alexsergivan/kwant/releases/download/mac-v0.10.0/kwant_0.10.0_windows_x64_beta_setup.exe",
+ )
+
def test_single_release(self):
self.assertIn("First release", site.release_line("## [Mac 1.0.0] - 2027-01-05\n"))
diff --git a/site-src/docs-install.html b/site-src/docs-install.html
index 112da7d0..2983a3f4 100644
--- a/site-src/docs-install.html
+++ b/site-src/docs-install.html
@@ -50,7 +50,7 @@ card_art: avatar:devops
<h2 id="windows">The Windows app <span class="beta">beta</span></h2>
<p>On 64-bit Windows there's an app too. It runs kwant on your PC with the same data folder as <code>kwnt serve</code>: <code>.kwnt</code> in your user folder.</p>
<ol>
- <li>Open the <a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">latest release</a> and download <code>kwant_X.Y.Z_windows_x64_beta_setup.exe</code>. Its SHA-256 is next to it, in the <code>.sha256</code> file and in the release notes.</li>
+ <li><a href="{{windows_exe}}" rel="noopener">Download the installer</a>, <code>kwant_X.Y.Z_windows_x64_beta_setup.exe</code> from the <a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">latest release</a>. Its SHA-256 is next to it, in the <code>.sha256</code> file and in the release notes.</li>
<li>Run it. It installs for your user only, so it needs no admin rights, and adds kwant to the Start menu.</li>
<li>The installer isn't code-signed yet, so the first time Windows SmartScreen warns about an unrecognized app. Click <b>More info</b>, then <b>Run anyway</b>.</li>
</ol>
diff --git a/site-src/index.html b/site-src/index.html
index ad75015c..3d00eddb 100644
--- a/site-src/index.html
+++ b/site-src/index.html
@@ -13,6 +13,7 @@ card_art: scene
<p class="lede">They share chats, pass work to each other and get it done on their own, on a schedule or while you're away. It runs on your laptop or a VPS.</p>
<div class="cta cta-one">
<a class="btn btn-violet" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download for Mac</a>
+ <a class="btn btn-soft" href="{{windows_exe}}" rel="noopener">Download for Windows <span class="beta">beta</span></a>
<a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_amd64.deb" rel="noopener">Download for Linux <span class="beta">beta</span></a>
<p class="cta-alt"><a href="docs/quickstart.html">A VPS or Docker? Get started <span aria-hidden="true">→</span></a></p>
</div>
@@ -41,7 +42,7 @@ card_art: scene
<p class="mf-term" data-term="soon"><span class="soon">Soon</span>A one-line Terminal install that skips this step.</p>
</div>
</details>
- <p class="mac-dl">Free, for Apple silicon and Intel. Linux: a <code>.deb</code> for Ubuntu and Debian on x86_64, or the <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_x86_64.AppImage" rel="noopener">AppImage</a> (<a href="docs/install.html#linux">how to install</a>). Windows (beta): an <a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">installer</a> for 64-bit Windows (<a href="docs/install.html#windows">how to install</a>).</p>
+ <p class="mac-dl">Free, for Apple silicon and Intel. Linux: a <code>.deb</code> for Ubuntu and Debian on x86_64, or the <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_x86_64.AppImage" rel="noopener">AppImage</a> (<a href="docs/install.html#linux">how to install</a>). Windows (beta): an <a href="{{windows_exe}}" rel="noopener">installer</a> for 64-bit Windows. It isn't signed yet, so Windows warns the first time: click <b>More info</b>, then <b>Run anyway</b> (<a href="docs/install.html#windows">how to install</a>).</p>
{{install:hero}}
{{releases}}
</div>
@@ -362,9 +363,10 @@ card_art: scene
<a class="btn btn-violet" href="docs/quickstart.html">Read the quickstart</a>
<a class="btn btn-soft" href="docs/install.html">Run it on a server</a>
<a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download for Mac</a>
+ <a class="btn btn-soft" href="{{windows_exe}}" rel="noopener">Download for Windows <span class="beta">beta</span></a>
<a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_amd64.deb" rel="noopener">Download for Linux <span class="beta">beta</span></a>
</div>
- <p class="mac-dl">The Mac app isn't notarized by Apple yet, so macOS stops it the first time. <a href="docs/install.html#mac">How to open it</a>.</p>
+ <p class="mac-dl">The Mac app isn't notarized by Apple yet, so macOS stops it the first time. <a href="docs/install.html#mac">How to open it</a>. On Windows, click <b>More info</b>, then <b>Run anyway</b>.</p>
<div class="star-ask">
<p><span class="star-pix" aria-hidden="true">⭐</span> kwant runs on coffee and GitHub stars. Like it? Toss one our way.</p>
<a class="btn btn-star" href="https://github.com/alexsergivan/kwant" rel="noopener">Star on GitHub</a>
diff --git a/site/docs/install.html b/site/docs/install.html
index 70175bb6..e89ef339 100644
--- a/site/docs/install.html
+++ b/site/docs/install.html
@@ -101,7 +101,7 @@
<h2 id="windows">The Windows app <span class="beta">beta</span></h2>
<p>On 64-bit Windows there's an app too. It runs kwant on your PC with the same data folder as <code>kwnt serve</code>: <code>.kwnt</code> in your user folder.</p>
<ol>
- <li>Open the <a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">latest release</a> and download <code>kwant_X.Y.Z_windows_x64_beta_setup.exe</code>. Its SHA-256 is next to it, in the <code>.sha256</code> file and in the release notes.</li>
+ <li><a href="https://github.com/alexsergivan/kwant/releases/download/mac-v0.7.7/kwant_0.7.7_windows_x64_beta_setup.exe" rel="noopener">Download the installer</a>, <code>kwant_X.Y.Z_windows_x64_beta_setup.exe</code> from the <a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">latest release</a>. Its SHA-256 is next to it, in the <code>.sha256</code> file and in the release notes.</li>
<li>Run it. It installs for your user only, so it needs no admin rights, and adds kwant to the Start menu.</li>
<li>The installer isn't code-signed yet, so the first time Windows SmartScreen warns about an unrecognized app. Click <b>More info</b>, then <b>Run anyway</b>.</li>
</ol>
diff --git a/site/index.html b/site/index.html
index c37a5fea..725a4146 100644
--- a/site/index.html
+++ b/site/index.html
@@ -54,6 +54,7 @@
<p class="lede">They share chats, pass work to each other and get it done on their own, on a schedule or while you're away. It runs on your laptop or a VPS.</p>
<div class="cta cta-one">
<a class="btn btn-violet" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download for Mac</a>
+ <a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/download/mac-v0.7.7/kwant_0.7.7_windows_x64_beta_setup.exe" rel="noopener">Download for Windows <span class="beta">beta</span></a>
<a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_amd64.deb" rel="noopener">Download for Linux <span class="beta">beta</span></a>
<p class="cta-alt"><a href="/docs/quickstart">A VPS or Docker? Get started <span aria-hidden="true">→</span></a></p>
</div>
@@ -82,7 +83,7 @@
<p class="mf-term" data-term="soon"><span class="soon">Soon</span>A one-line Terminal install that skips this step.</p>
</div>
</details>
- <p class="mac-dl">Free, for Apple silicon and Intel. Linux: a <code>.deb</code> for Ubuntu and Debian on x86_64, or the <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_x86_64.AppImage" rel="noopener">AppImage</a> (<a href="/docs/install#linux">how to install</a>). Windows (beta): an <a href="https://github.com/alexsergivan/kwant/releases/latest" rel="noopener">installer</a> for 64-bit Windows (<a href="/docs/install#windows">how to install</a>).</p>
+ <p class="mac-dl">Free, for Apple silicon and Intel. Linux: a <code>.deb</code> for Ubuntu and Debian on x86_64, or the <a href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_x86_64.AppImage" rel="noopener">AppImage</a> (<a href="/docs/install#linux">how to install</a>). Windows (beta): an <a href="https://github.com/alexsergivan/kwant/releases/download/mac-v0.7.7/kwant_0.7.7_windows_x64_beta_setup.exe" rel="noopener">installer</a> for 64-bit Windows. It isn't signed yet, so Windows warns the first time: click <b>More info</b>, then <b>Run anyway</b> (<a href="/docs/install#windows">how to install</a>).</p>
<div class="install" data-tabs><div class="install-top"><span class="install-k" aria-hidden="true">Install</span><div class="tabs" role="tablist" aria-label="Install with"><button type="button" role="tab" id="hero-t-src" aria-controls="hero-p-src" aria-selected="true">macOS · Linux</button><button type="button" role="tab" id="hero-t-docker" aria-controls="hero-p-docker" aria-selected="false" tabindex="-1">Docker</button></div></div><div class="cmd" role="tabpanel" id="hero-p-src" aria-labelledby="hero-t-src"><span class="p" aria-hidden="true">$</span><code>git clone https://github.com/alexsergivan/kwant &amp;&amp; cd kwant &amp;&amp; make run</code><button type="button" class="copy-cmd" aria-label="Copy the macOS · Linux install command">copy</button></div><div class="cmd" role="tabpanel" id="hero-p-docker" aria-labelledby="hero-t-docker" hidden><span class="p" aria-hidden="true">$</span><code>git clone https://github.com/alexsergivan/kwant &amp;&amp; cd kwant &amp;&amp; docker compose up -d --build</code><button type="button" class="copy-cmd" aria-label="Copy the Docker install command">copy</button></div></div>
<p class="proof">0.7.7 released Nov 9 <span aria-hidden="true">·</span> <a href="https://github.com/alexsergivan/kwant/releases" rel="noopener">32 releases since Oct 25</a> <span aria-hidden="true">·</span> <a href="https://github.com/alexsergivan/kwant" rel="noopener">AGPL-3.0, open source</a></p>
</div>
@@ -403,9 +404,10 @@
<a class="btn btn-violet" href="/docs/quickstart">Read the quickstart</a>
<a class="btn btn-soft" href="/docs/install">Run it on a server</a>
<a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg" rel="noopener">Download for Mac</a>
+ <a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/download/mac-v0.7.7/kwant_0.7.7_windows_x64_beta_setup.exe" rel="noopener">Download for Windows <span class="beta">beta</span></a>
<a class="btn btn-soft" href="https://github.com/alexsergivan/kwant/releases/latest/download/kwant_amd64.deb" rel="noopener">Download for Linux <span class="beta">beta</span></a>
</div>
- <p class="mac-dl">The Mac app isn't notarized by Apple yet, so macOS stops it the first time. <a href="/docs/install#mac">How to open it</a>.</p>
+ <p class="mac-dl">The Mac app isn't notarized by Apple yet, so macOS stops it the first time. <a href="/docs/install#mac">How to open it</a>. On Windows, click <b>More info</b>, then <b>Run anyway</b>.</p>
<div class="star-ask">
<p><span class="star-pix" aria-hidden="true">⭐</span> kwant runs on coffee and GitHub stars. Like it? Toss one our way.</p>
<a class="btn btn-star" href="https://github.com/alexsergivan/kwant" rel="noopener">Star on GitHub</a>
diff --git a/site/llms.txt b/site/llms.txt
index 585fe64a..667d9e85 100644
--- a/site/llms.txt
+++ b/site/llms.txt
@@ -11,7 +11,7 @@ Key facts:
- kwant has no token (no coin, no crypto). The official X account is @kwantbot (https://x.com/kwantbot).
- Mac app: https://github.com/alexsergivan/kwant/releases/latest/download/kwant_universal.dmg
- Linux app (beta, x86_64): https://github.com/alexsergivan/kwant/releases/latest/download/kwant_amd64.deb (Ubuntu 22.04+, Debian 12+) or https://github.com/alexsergivan/kwant/releases/latest/download/kwant_x86_64.AppImage
-- Windows app (beta, 64-bit): the kwant_X.Y.Z_windows_x64_beta_setup.exe installer on https://github.com/alexsergivan/kwant/releases/latest (per-user install, no admin rights).
+- Windows app (beta, 64-bit): https://github.com/alexsergivan/kwant/releases/download/mac-v0.7.7/kwant_0.7.7_windows_x64_beta_setup.exe (per-user install, no admin rights; the latest one is always on https://github.com/alexsergivan/kwant/releases/latest).
- Run Claude inside the VM (Linux, off by default): each bot's Claude replies run in a container with no network, and the real key stays outside. https://kwant.si/docs/agents-in-vm
- The program you install and run is called `kwnt` (`kwnt serve`).
- No telemetry: kwant sends nothing to its developers. The kwant.si website sets no cookies and counts page views with