Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
82f96c3
chore(scoop): stroke v3.0.0
github-actions[bot] Nov 19, 2026
48c72a0
Fix the stroke-bin PKGBUILD for .debs that already name the binary st…
broisnees Nov 19, 2026
3012a3b
Keep connections in their workspace across one-click connects (#310)
broisnees Nov 20, 2026
1601fd1
Handle big plans, clean cancel, 2 GB results, open transactions and l…
broisnees Nov 20, 2026
7d81f60
chore: version 3.1.0 (#311)
github-actions[bot] Nov 20, 2026
39e9a92
Real-server tests, streaming and server-side Stop for more engines, p…
broisnees Nov 20, 2026
d948768
chore: version 3.1.1 (#312)
github-actions[bot] Nov 20, 2026
5fc1511
Share JSON as a link; one focus edge on search fields (#313)
broisnees Nov 21, 2026
cd80efe
chore: version 3.1.2 (#313)
github-actions[bot] Nov 21, 2026
d6e2380
Rewrite the README (#314)
broisnees Nov 21, 2026
faeb9b7
Queries tab, steady zoom pill, one switch geometry, access changes re…
broisnees Nov 21, 2026
9c6fce0
chore: version 3.1.3 (#315)
github-actions[bot] Nov 21, 2026
07c6789
Docs: the free trial is 30 days (#316)
broisnees Nov 21, 2026
b92e79b
Add Google Cloud Spanner support (beta) (#317)
broisnees Nov 21, 2026
f2af14e
chore: version 3.1.4 (#317)
github-actions[bot] Nov 21, 2026
b768207
Add Google BigQuery support (beta) (#318)
broisnees Nov 21, 2026
4d2be3b
chore: version 3.1.5 (#318)
github-actions[bot] Nov 21, 2026
e30867a
Add the ODBC bridge with engine presets (beta) (#319)
broisnees Nov 21, 2026
69fd5af
chore: version 3.1.6 (#319)
github-actions[bot] Nov 21, 2026
8ac6e1c
ODBC driver refresh, and nightly updates that pass their signature ch…
broisnees Nov 21, 2026
338e743
chore: version 3.1.7 (#320)
github-actions[bot] Nov 21, 2026
e479db8
Drag the window from anywhere on the title bar (#321)
broisnees Nov 21, 2026
c4f36b7
chore: version 3.1.8 (#321)
github-actions[bot] Nov 21, 2026
4af4a1c
Add Snowflake support (beta) (#322)
broisnees Nov 21, 2026
8163dae
chore: version 3.1.9 (#322)
github-actions[bot] Nov 21, 2026
7291505
Scroll the grid on both axes at once, and let the referenced-by colum…
broisnees Nov 21, 2026
ae5e011
chore: version 3.2.0 (#323)
github-actions[bot] Nov 21, 2026
7057eef
Keep text sharp on external displays (#324)
broisnees Nov 21, 2026
f0cb1ca
chore: version 3.2.1 (#324)
github-actions[bot] Nov 21, 2026
384f649
Share any SQL database as a web studio (#325)
broisnees Nov 21, 2026
2f17892
chore: version 3.2.2 (#325)
github-actions[bot] Nov 21, 2026
885a856
Backup, import, transactions and SSH for the new engines (#326)
broisnees Nov 21, 2026
a893bc3
chore: version 3.2.3 (#326)
github-actions[bot] Nov 21, 2026
2343980
Add YugabyteDB and AlloyDB (beta) (#327)
broisnees Nov 21, 2026
3f284a5
chore: version 3.2.4 (#327)
github-actions[bot] Nov 21, 2026
e410f7a
Add Neo4j (beta) (#328)
broisnees Nov 21, 2026
6715516
chore: version 3.2.5 (#328)
github-actions[bot] Nov 21, 2026
1237a76
Add InfluxDB (beta, read-only) (#329)
broisnees Nov 21, 2026
53c684a
chore: version 3.2.6 (#329)
github-actions[bot] Nov 21, 2026
254499a
Show a query result's shapes on a map beside the grid (#330)
broisnees Nov 21, 2026
f465d6f
chore: version 3.2.7 (#330)
github-actions[bot] Nov 21, 2026
77dc409
Make the Map page smooth on large layers (#331)
broisnees Nov 21, 2026
38084f9
chore: version 3.2.8 (#331)
github-actions[bot] Nov 21, 2026
be831c7
Fix blank screens after the AI tab setting; redesign the model picker…
broisnees Nov 21, 2026
919e23f
chore: version 3.2.9 (#332)
github-actions[bot] Nov 21, 2026
d106a5a
Rank the palette by label, and bring readable text to contrast (#333)
broisnees Nov 21, 2026
8e79296
chore: version 3.3.0 (#333)
github-actions[bot] Nov 21, 2026
0057ea6
Fix Shift+scroll sticking to one axis; zoom-proof layouts; provider r…
broisnees Nov 21, 2026
b0c246f
chore: version 3.3.1 (#334)
github-actions[bot] Nov 21, 2026
538ba47
Make the agent tools work on every engine; Spanner interleave relatio…
broisnees Nov 21, 2026
82b625a
chore: version 3.3.2 (#335)
github-actions[bot] Nov 21, 2026
a4588e9
Stop the grid bouncing; open objects in one click; no flash after Red…
broisnees Nov 21, 2026
44b8225
chore: version 3.3.3 (#336)
github-actions[bot] Nov 21, 2026
4d70f71
Show saves and deletes right away, with a rollback on failure (#337)
broisnees Nov 21, 2026
9711a89
chore: version 3.3.4 (#337)
github-actions[bot] Nov 21, 2026
8da7a69
Fix issues found in an app-wide sweep (#338)
broisnees Nov 21, 2026
b84a4e9
chore: version 3.3.5 (#338)
github-actions[bot] Nov 21, 2026
c1078d1
Fix console scrolling, stuck icons, and more from a second sweep (#339)
broisnees Nov 21, 2026
68565a3
chore: version 3.3.6 (#339)
github-actions[bot] Nov 21, 2026
706c829
Reopen a database's tabs, and fix connection identity and Advisor noi…
broisnees Nov 21, 2026
10348af
chore: version 3.3.7 (#340)
github-actions[bot] Nov 21, 2026
80ae37e
Fix Ctrl+Delete, multi-word palette search, and more from another swe…
broisnees Nov 21, 2026
ea07669
chore: version 3.3.8 (#341)
github-actions[bot] Nov 21, 2026
b523a9a
Fix platform shortcut hints, menu row sizes, toolbar overflow and mor…
broisnees Nov 21, 2026
524405f
chore: version 3.3.9 (#342)
github-actions[bot] Nov 21, 2026
cb1940f
Send verify-full TLS on connect, keep pasted URL parameters, and more…
broisnees Nov 21, 2026
4b87e6e
chore: version 3.4.0 (#343)
github-actions[bot] Nov 21, 2026
86832f8
Fix clipped dialogs, the terminal on engines without a CLI, and more …
broisnees Nov 21, 2026
1470723
chore: version 3.4.1 (#344)
github-actions[bot] Nov 21, 2026
55e26a0
Write review SQL per dialect, MySQL enum picker, MariaDB insights (#345)
broisnees Nov 21, 2026
3cff194
chore: version 3.4.2 (#345)
github-actions[bot] Nov 21, 2026
3e849ce
Generate SQL that runs on its own engine: export, Open in SQL editor,…
broisnees Nov 21, 2026
465d9ab
chore: version 3.4.3 (#346)
github-actions[bot] Nov 21, 2026
057d208
Connect to local libsql:// servers, show libSQL types, Copy as INSERT…
broisnees Nov 21, 2026
9ee5740
chore: version 3.4.4 (#347)
github-actions[bot] Nov 21, 2026
a22ce6c
Hide SQLite's own tables, name file databases by file, clearer write …
broisnees Nov 21, 2026
3166e6c
chore: version 3.4.5 (#348)
github-actions[bot] Nov 21, 2026
954ee78
Show DuckDB column types; collapse repeated toasts (#349)
broisnees Nov 21, 2026
b7783f6
chore: version 3.4.6 (#349)
github-actions[bot] Nov 21, 2026
a36823d
Spanner PostgreSQL dialect SQL, hidden-tab menu, narrow results toolb…
broisnees Nov 21, 2026
76134da
chore: version 3.4.7 (#350)
github-actions[bot] Nov 21, 2026
1d92c58
Data diff across engines, steady connection list, narrow-pane map and…
broisnees Nov 21, 2026
a173213
chore: version 3.4.8 (#351)
github-actions[bot] Nov 21, 2026
4e57e84
Fix the crash when choosing a file to import; import from the palette…
broisnees Nov 21, 2026
f3820e0
chore: version 3.4.9 (#352)
github-actions[bot] Nov 21, 2026
84ae803
Column headers for empty results, readable diagrams without relations…
broisnees Nov 21, 2026
270f65a
chore: version 3.5.0 (#353)
github-actions[bot] Nov 21, 2026
ec315be
Fix the Redis crash after adding a key; correct backslash and Unicode…
broisnees Nov 21, 2026
4c74eb0
chore: version 3.5.1 (#354)
github-actions[bot] Nov 21, 2026
350b8cf
Step over completed function parens, empty-result columns for MCP, in…
broisnees Nov 21, 2026
1b56642
chore: version 3.5.2 (#355)
github-actions[bot] Nov 21, 2026
aba7ab2
Quote ORM runner SQL, keep sidebar counts current, Codegen targets, s…
broisnees Nov 21, 2026
4614e64
chore: version 3.5.3 (#356)
github-actions[bot] Nov 21, 2026
ec0ac8d
New table in each engine's own DDL; show what a run did (#357)
broisnees Nov 22, 2026
a77e269
chore: version 3.5.4 (#357)
github-actions[bot] Nov 22, 2026
c60601d
Don't overwrite editor tabs, 5x faster result map, terminal input fix…
broisnees Nov 22, 2026
25ffc44
chore: version 3.5.5 (#358)
github-actions[bot] Nov 22, 2026
974317b
MySQL backups restore with the mysql client; New table on more engine…
broisnees Nov 22, 2026
de606b0
chore: version 3.5.6 (#359)
github-actions[bot] Nov 22, 2026
c56bbfa
Stop kept-alive pages showing the previous database after a switch (#…
broisnees Nov 22, 2026
046fd6a
chore: version 3.5.7 (#360)
github-actions[bot] Nov 22, 2026
1a74641
Objects page follows the connection; correct run hint; SQL Server Uni…
broisnees Nov 22, 2026
de241fc
chore: version 3.5.8 (#361)
github-actions[bot] Nov 22, 2026
65ca08d
View DDL as CREATE VIEW, dark dashboard window, schema picker and dia…
broisnees Nov 22, 2026
81a34e8
chore: version 3.5.9 (#362)
github-actions[bot] Nov 22, 2026
f39f73a
Materialized views in the sidebar, palette and diagram; data grid kep…
broisnees Nov 22, 2026
6e95056
chore: version 3.6.0 (#363)
github-actions[bot] Nov 22, 2026
c53b3a8
Fix loaded-row count, first latency reading and search readouts (#364)
broisnees Nov 22, 2026
51e1a64
Keep a sentence about a code block out of a code block; open AI with …
broisnees Nov 22, 2026
d6a00ba
Restore Postgres backups into a fresh database with their extensions …
broisnees Nov 22, 2026
23538e4
Read and edit large values in every view (#367)
broisnees Nov 22, 2026
59e4938
Read deep table windows from a local copy; let warm-ups wait for the …
broisnees Nov 22, 2026
7e629a9
chore: version 3.6.1 (#368)
github-actions[bot] Nov 22, 2026
15ce3af
Make deep jumps fast before the local copy covers them (#369)
broisnees Nov 22, 2026
7168e43
Stop the hidden terminal and early layout reads from slowing launch a…
broisnees Nov 22, 2026
1d750b2
chore: version 3.6.2 (#370)
github-actions[bot] Nov 22, 2026
2b69f63
Say a table is gone instead of "Unknown column" (#371)
broisnees Nov 22, 2026
9749903
Render less on the first frame of a connect; split the launcher, new-…
broisnees Nov 22, 2026
b35ad3b
chore: version 3.6.3 (#372)
github-actions[bot] Nov 22, 2026
35f567c
Escape quotes in notebook variables inside a string literal (#373)
broisnees Nov 22, 2026
d7ad5dd
Fix wording and naming around MongoDB and Redis connections (#374)
broisnees Nov 22, 2026
1437f85
Show and edit 0/1 booleans as booleans on SQLite-family engines (#375)
broisnees Nov 22, 2026
e3827d6
Keep ClickHouse decimals exact; land on the connection's database (#376)
broisnees Nov 22, 2026
e9e1420
chore: version 3.6.4 (#376)
github-actions[bot] Nov 22, 2026
89a9b79
Show 0/1 booleans as true/false in the record view and row panel (#377)
broisnees Nov 22, 2026
cd0859a
Show the engine icon on other open databases in the status bar (#378)
broisnees Nov 22, 2026
2c34af2
Say 1 client, not 1 clients, in the Redis sidebar (#379)
broisnees Nov 22, 2026
122f9d7
Let Escape close every dialog, not only the ones the shell lists (#380)
broisnees Nov 22, 2026
5e60b31
Render bold titles in the release notes (#381)
broisnees Nov 22, 2026
72991ec
Name the real mistake in a MongoDB filter that doesn't parse (#382)
broisnees Nov 22, 2026
6437a92
chore: version 3.6.5 (#382)
github-actions[bot] Nov 22, 2026
756d6d7
Name the terminal client each engine actually uses on the new-tab pag…
broisnees Nov 22, 2026
0fa1411
Name libaio when Oracle Instant Client can't load because of it (#384)
broisnees Nov 22, 2026
a04ce37
Ask which engine an http address is for instead of rejecting it (#385)
broisnees Nov 22, 2026
98a7997
Say "No indices yet" only when a search cluster has none (#386)
broisnees Nov 22, 2026
8b7cfb4
Show SQL Server decimals, GUIDs and datetimeoffsets instead of NULL, …
broisnees Nov 22, 2026
747cbc8
chore: version 3.6.6 (#387)
github-actions[bot] Nov 22, 2026
f42790a
Ship wide values over 8KB as a preview, and load one before editing i…
broisnees Nov 22, 2026
74ebcc1
Cancel a table's superseded row fetches and keep the pager usable whi…
broisnees Nov 22, 2026
86c089f
Lay out release notes as grouped titles; lead What's new with the cha…
broisnees Nov 22, 2026
dac2319
chore: version 3.6.7 (#390)
github-actions[bot] Nov 22, 2026
d3f87fb
Lay out pasted JSON in the viewer; keep editor gutters opaque over sc…
broisnees Nov 22, 2026
63a40a7
Add SQL snippets of your own, with import and export (#392)
broisnees Nov 22, 2026
3224209
Export and import connections, settings, saved queries and snippets a…
broisnees Nov 22, 2026
29411c2
Create or open a SQLite database file in one step (#394)
broisnees Nov 22, 2026
a0905e9
Show timestamptz values in a chosen timezone (#395)
broisnees Nov 22, 2026
aaa9d0a
chore: version 3.6.8 (#395)
github-actions[bot] Nov 22, 2026
3c9ca08
Show the result of Run on SQL in an AI reply (#396)
broisnees Nov 22, 2026
954f1d8
Remove leftover Select All debug logging (#397)
broisnees Nov 22, 2026
9c5f9f9
Tunnel through Kubernetes port-forward or AWS SSM, besides SSH (#398)
broisnees Nov 22, 2026
72388b9
Close a stopped query's connection instead of draining it (#399)
broisnees Nov 22, 2026
f61c85d
chore: version 3.6.9 (#399)
github-actions[bot] Nov 22, 2026
7466220
Give a duplicated tab its own rows so windows evicted in one do not b…
broisnees Nov 22, 2026
6102fc3
Proxy settings for app, AI, database and tunnel traffic (#401)
broisnees Nov 22, 2026
6b6a6f8
chore: version 3.7.0 (#401)
github-actions[bot] Nov 22, 2026
d1eb4b1
Translate the main surfaces into Spanish, French, German, Portuguese …
broisnees Nov 22, 2026
9fb472a
Show web viewers' cursors and edits on the app's shared studio (#403)
broisnees Nov 22, 2026
911842b
chore: version 3.7.1 (#403)
github-actions[bot] Nov 22, 2026
f57c189
strokedb mcp: let an AI agent show the database, in the browser or th…
broisnees Nov 22, 2026
abc266a
Stop a reloaded window from refusing every table load as superseded (…
broisnees Nov 22, 2026
09b412d
Separate fonts and font smoothing (#406)
broisnees Nov 22, 2026
318e886
chore: version 3.7.2 (#406)
github-actions[bot] Nov 22, 2026
c381376
Wait for the network instead of failing a reconnect while offline (#407)
broisnees Nov 22, 2026
a22c3c1
chore: version 3.7.3 (#407)
github-actions[bot] Nov 22, 2026
13c6a64
Show the rows in view first on wide tables over a slow link (#408)
broisnees Nov 22, 2026
15fee65
Edit the shared studio's console together with the people on the link…
broisnees Nov 22, 2026
518a37b
chore: version 3.7.4 (#409)
github-actions[bot] Nov 22, 2026
09eb909
Keep the grid at full frame rate with a proportional font (#410)
broisnees Nov 23, 2026
c77a8c2
chore: version 3.7.5 (#410)
github-actions[bot] Nov 23, 2026
901c59d
List every change since the last stable in a stable release's notes (…
broisnees Nov 23, 2026
222241c
Show every change in What's new after a long update (#412)
broisnees Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .changeset/stable-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Changes
- **Stable release notes** - Updating from one stable version to the next lists every change in between, instead of only the newest version's.
2 changes: 2 additions & 0 deletions .changeset/whats-new-long-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Changes
- **What's new after a long update** - Updating across more than 8 versions (stable to stable) lists every change since your old version, grouped as New, Fixed and Improved, instead of the newest 8 versions and a count of the rest.
9 changes: 9 additions & 0 deletions .github/release-highlights/3.7.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Highlights

- **Share a database as a web studio.** Anyone with the link opens it in the browser at stroke.click, end-to-end encrypted. Everyone sees each other's cursors on the grid, and the shared console is one SQL tab you all type into at once.
- **AI agents can show you data.** `npx strokedb mcp` gives Claude Code and other agents your tables, read-only, and a link that opens the one they mean.
- **New engines (beta):** Google Cloud Spanner, BigQuery, Snowflake, Neo4j, InfluxDB, YugabyteDB, AlloyDB, and any database with an ODBC driver.
- **Five languages:** Spanish, French, German, Portuguese and Japanese.
- **Proxy settings** for app, AI, database and tunnel traffic, and tunnels through Kubernetes port-forward and AWS SSM besides SSH.
- **Large tables feel local.** A big table is copied to disk in the background, deep jumps land in a fraction of the time, and wide JSON or HTML rows show what's on screen first.
- **Your own fonts** for the interface, editor, grid, AI chat and terminal, plus SQL snippets, a display timezone, and export/import of your whole setup.
52 changes: 52 additions & 0 deletions .github/workflows/aur.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Republish stroke-bin to the AUR for a release that is already out, after a
# fix to packaging/aur/stroke-bin/PKGBUILD.in. Bump `pkgrel` (2, 3, ...) so
# yay and paru see a new package. release.yml publishes pkgrel 1 itself.
#
# Run it from Actions → Republish to the AUR → Run workflow.

name: Republish to the AUR

on:
workflow_dispatch:
inputs:
tag:
description: Released tag, e.g. v3.0.0
required: true
pkgrel:
description: Package release (2 or higher)
required: true
default: '2'

permissions:
contents: read

jobs:
aur:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Fill in the PKGBUILD
env:
TAG: ${{ inputs.tag }}
PKGREL: ${{ inputs.pkgrel }}
run: |
set -euo pipefail
[[ "$PKGREL" =~ ^[0-9]+$ ]] || { echo "::error::pkgrel must be a number"; exit 1; }
VERSION="${TAG#v}"
curl -fsSL -o stroke.deb "https://github.com/stroke-app/stroke/releases/download/${TAG}/stroke_${VERSION}_amd64.deb"
SHA=$(sha256sum stroke.deb | cut -d' ' -f1)
mkdir -p aur
sed -e "s/@VERSION@/${VERSION}/" -e "s/@PKGREL@/${PKGREL}/" -e "s/@SHA256@/${SHA}/" packaging/aur/stroke-bin/PKGBUILD.in > aur/PKGBUILD
cat aur/PKGBUILD

- name: Push to the AUR
uses: KSXGitHub/github-actions-deploy-aur@v4.1.1
with:
pkgname: stroke-bin
pkgbuild: aur/PKGBUILD
commit_username: broisnees
commit_email: broisnees@users.noreply.github.com
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: "Fix the package for ${{ inputs.tag }} (pkgrel ${{ inputs.pkgrel }})"
ssh_keyscan_types: rsa,ecdsa,ed25519
36 changes: 26 additions & 10 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,21 +313,32 @@ jobs:
run: |
set -euo pipefail
BASE="https://github.com/${GITHUB_REPOSITORY}/releases/download/nightly"
# The updater downloads a copy named for this build. Every nightly
# reuses the plain names, so an app reading the new latest.json
# could be served last night's file under the same URL (mid-upload,
# or from GitHub's download cache) and fail its signature check. A
# name no earlier build used can only be this build's file.
TAG=$(printf '%s' "$VERSION" | tr -c 'A-Za-z0-9.-' '-')
for f in stroke-nightly_aarch64.app.tar.gz stroke-nightly_x64.app.tar.gz stroke-nightly_amd64.AppImage \
stroke-nightly_amd64.deb stroke-nightly_x86_64.pkg.tar.zst stroke-nightly_x64-setup.exe; do
cp "out/$f" "out/${f/stroke-nightly_/stroke-nightly_${TAG}_}"
done
git fetch -q origin master || true
STABLE=$(git show origin/master:src-tauri/tauri.conf.json 2>/dev/null | node -e "let s='';process.stdin.on('data',d=>s+=d).on('end',()=>{try{console.log(JSON.parse(s).version)}catch{console.log('')}})")
VERSION="$VERSION" BASE="$BASE" STABLE="$STABLE" node -e "
VERSION="$VERSION" BASE="$BASE" TAG="$TAG" STABLE="$STABLE" node -e "
const fs = require('fs')
const { VERSION, BASE } = process.env
const { VERSION, TAG } = process.env
const BASE = process.env.BASE + '/stroke-nightly_' + TAG + '_'
const sig = (f) => fs.readFileSync('out/' + f, 'utf8').trim()
const platforms = {
'darwin-aarch64': { url: BASE + '/stroke-nightly_aarch64.app.tar.gz', signature: sig('stroke-nightly_aarch64.app.tar.gz.sig') },
'darwin-x86_64': { url: BASE + '/stroke-nightly_x64.app.tar.gz', signature: sig('stroke-nightly_x64.app.tar.gz.sig') },
'linux-x86_64': { url: BASE + '/stroke-nightly_amd64.AppImage', signature: sig('stroke-nightly_amd64.AppImage.sig') },
'darwin-aarch64': { url: BASE + 'aarch64.app.tar.gz', signature: sig('stroke-nightly_aarch64.app.tar.gz.sig') },
'darwin-x86_64': { url: BASE + 'x64.app.tar.gz', signature: sig('stroke-nightly_x64.app.tar.gz.sig') },
'linux-x86_64': { url: BASE + 'amd64.AppImage', signature: sig('stroke-nightly_amd64.AppImage.sig') },
// Linux packages update from the app too, each from its own entry:
// a .deb through pkexec dpkg, an Arch install through pkexec pacman.
'linux-x86_64-deb': { url: BASE + '/stroke-nightly_amd64.deb', signature: sig('stroke-nightly_amd64.deb.sig') },
'linux-x86_64-pacman': { url: BASE + '/stroke-nightly_x86_64.pkg.tar.zst', signature: sig('stroke-nightly_x86_64.pkg.tar.zst.sig') },
'windows-x86_64': { url: BASE + '/stroke-nightly_x64-setup.exe', signature: sig('stroke-nightly_x64-setup.exe.sig') },
'linux-x86_64-deb': { url: BASE + 'amd64.deb', signature: sig('stroke-nightly_amd64.deb.sig') },
'linux-x86_64-pacman': { url: BASE + 'x86_64.pkg.tar.zst', signature: sig('stroke-nightly_x86_64.pkg.tar.zst.sig') },
'windows-x86_64': { url: BASE + 'x64-setup.exe', signature: sig('stroke-nightly_x64-setup.exe.sig') },
}
// The changelog since the last stable release, in CHANGELOG.md's own
// format: the update window parses it into New / Improved / Fixed.
Expand All @@ -338,7 +349,9 @@ jobs:
const start = cl.indexOf('## [')
const end = stable ? cl.indexOf('## [' + stable + ']') : -1
const body = start === -1 ? '' : cl.slice(start, end > start ? end : undefined).trim()
if (body) notes = body.slice(0, 60000)
// Plain titles: apps before 3.6.5 print markdown bold as asterisks,
// and newer ones read `Title - text` without them (splitEntry).
if (body) notes = body.replace(/\*\*([^*\n]+)\*\*/g, '\$1').slice(0, 60000)
} catch {}
fs.writeFileSync('out/latest.json', JSON.stringify({ version: VERSION, notes, pub_date: new Date().toISOString(), platforms }, null, 2))
"
Expand Down Expand Up @@ -382,13 +395,16 @@ jobs:
# from ever becoming the repo's "latest" release.
gh release delete nightly --repo "$GITHUB_REPOSITORY" --cleanup-tag --yes 2>/dev/null || true
git push origin ":refs/tags/nightly" 2>/dev/null || true
gh release create nightly out/* \
# The feed goes up last, so it never names a file that isn't there.
mapfile -t FILES < <(ls out/* | grep -v '/latest.json$')
gh release create nightly "${FILES[@]}" \
--repo "$GITHUB_REPOSITORY" \
--target "$SHA" \
--title "Stroke Nightly ${VERSION}" \
--notes-file notes.md \
--prerelease \
--latest=false
gh release upload nightly out/latest.json --repo "$GITHUB_REPOSITORY"
echo "✅ Published Stroke Nightly ${VERSION}"

# Arch: refresh stroke-nightly-bin on the AUR with this build. Skipped
Expand Down
42 changes: 12 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,13 @@ jobs:
PRERELEASE=""
[[ "$TAG" == *-* ]] && PRERELEASE="--prerelease"

# Extract changelog for this version from CHANGELOG.md.
# Grabs everything between the matching "## [X.Y.Z]" header and the next one.
# VERSION goes in the environment: it used to trail the script as
# `VERSION=...`, which node receives as an argument, so the script
# looked for "## [undefined]" and every release said "No changelog".
# Notes: every CHANGELOG.md section since the previous stable tag,
# merged by heading, under .github/release-highlights/<version>.md
# when there is one (scripts/release-notes.mjs). Stable ships far
# less often than nightly, so this version's section alone left out
# most of what someone on the last stable gets.
export VERSION="${TAG#v}"
CHANGELOG=$(node -e "
const fs = require('fs')
const lines = fs.readFileSync('CHANGELOG.md', 'utf8').split('\n')
const header = '## [' + process.env.VERSION + ']'
let inside = false
const out = []
for (const l of lines) {
if (l.startsWith(header)) { inside = true; continue }
if (inside && /^## \[/.test(l)) break
if (inside) out.push(l)
}
process.stdout.write(out.join('\n').trim())
")
CHANGELOG=$(node scripts/release-notes.mjs "$VERSION")

cat > /tmp/notes.md << EOF
${CHANGELOG:-No changelog available for this release.}
Expand Down Expand Up @@ -390,19 +378,11 @@ jobs:

const read = (f) => { try { return fs.readFileSync(f, 'utf8').trim() } catch { return '' } }

// Extract this version's changelog section from CHANGELOG.md
// Every changelog section since the previous stable tag, as plain
// text the update dialog reads (scripts/release-notes.mjs --plain).
function extractChangelog(version) {
try {
const lines = fs.readFileSync('CHANGELOG.md', 'utf8').split('\n')
const header = `## [${version}]`
let inside = false
const out = []
for (const l of lines) {
if (l.startsWith(header)) { inside = true; continue }
if (inside && /^## \[/.test(l)) break
if (inside) out.push(l)
}
return out.join('\n').trim()
return require('child_process').execFileSync('node', ['scripts/release-notes.mjs', version, '--plain'], { encoding: 'utf8' }).trim()
} catch { return '' }
}

Expand All @@ -418,6 +398,8 @@ jobs:
add('linux-x86_64', 'sig-linux/updater.sig', `${BASE}/stroke_amd64.AppImage.tar.gz`)
add('windows-x86_64', 'sig-windows/updater.sig', `${BASE}/stroke_x64-setup.nsis.zip`)

// Plain titles: apps before 3.6.5 print markdown bold as asterisks, and
// newer ones read `Title - text` without them (changelog.js splitEntry).
const notes = extractChangelog(VERSION) || `See https://github.com/stroke-app/stroke/releases/tag/v${VERSION}`

const out = {
Expand Down Expand Up @@ -465,7 +447,7 @@ jobs:
curl -fsSL -o stroke.deb "$URL"
SHA=$(sha256sum stroke.deb | cut -d' ' -f1)
mkdir -p aur
sed -e "s/@VERSION@/${VERSION}/" -e "s/@SHA256@/${SHA}/" packaging/aur/stroke-bin/PKGBUILD.in > aur/PKGBUILD
sed -e "s/@VERSION@/${VERSION}/" -e "s/@PKGREL@/1/" -e "s/@SHA256@/${SHA}/" packaging/aur/stroke-bin/PKGBUILD.in > aur/PKGBUILD
cat aur/PKGBUILD
echo "skip=false" >> "$GITHUB_OUTPUT"

Expand Down
Loading
Loading