15 Commits
Author SHA1 Message Date
aneurinandClaude Opus 5.5 bbcf7983ac Add an About modal and stamp the app version at build time
Checks (Desktop) / desktop (pull_request) Canceled after 30s
Checks (Frontend) / frontend (pull_request) Canceled after 0s
Checks (Go) / go (pull_request) Canceled after 0s
Checks (Repo) / repo (pull_request) Canceled after 0s
Clicking Zampler in the title bar opens About: the wordmark, version,
licence, a link to the source and the author. Modal's title is optional,
so About's header has only the close button.

The version is desktop/package.json's. build:backend stamps it into
lib.AppVersion with -ldflags -X, the backend returns it from /app, and
build.yml sets the package version to the commit before building, so
the shell, the backend and saved projects agree.

Closes #64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:01:24 +00:00
aneurinandClaude Sonnet 5.5 661ed1ef18 Keep the build's artifact for a day instead of cleaning up older ones
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 12:49:00 +00:00
aneurinandClaude Sonnet 5.5 2e18941561 Make the build's version suffix work in any POSIX shell
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 12:35:01 +00:00
aneurinandClaude Sonnet 5.5 aa14a1cd1f Run the workflows on the amd64 runner
Checks (Desktop) / desktop (pull_request) Successful in 2m51s
Checks (Frontend) / frontend (pull_request) Successful in 1m17s
Checks (Go) / go (pull_request) Successful in 3m45s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 10:28:23 +00:00
aneurinandClaude Sonnet 5.5 ffdbbabba7 Run the build only on demand
Checks (Desktop) / desktop (pull_request) Failing after 1m1s
Checks (Frontend) / frontend (pull_request) Failing after 33s
Checks (Go) / go (pull_request) Failing after 13m21s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 09:26:16 +00:00
aneurinandClaude Sonnet 5.5 e9e833507c Say that development targets Fedora on Wayland
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 09:24:19 +00:00
aneurinandClaude Sonnet 5.5 fdc7d42804 Build the Electron AppImage and keep only the newest
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 09:08:00 +00:00
aneurinandClaude Sonnet 5.5 3c6eaa12e2 Phase 2.5, part 1: describe the API with OpenAPI
Register every endpoint as a Huma operation on the stdlib mux, with
summaries, descriptions and tags, and serve the document at
/api/openapi.json (interactive docs at /api/docs under --dev). Errors are
now RFC 9457 problem details; internal/rest is removed.

cmd/openapi prints the document without a backend. The frontend generates
its types from it with openapi-typescript (not committed) and calls the API
through openapi-fetch, replacing dto.d.ts and api.ts. CI and the README run
and document the generator.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 08:58:30 +00:00
aneurinandClaude Opus 5.5 f1ed83ee2c Phase 1: core backend and project UI for the desktop app
Replace the server app with the core of the local-first desktop app
described in #24. The Go backend owns all state and serves a JSON API and
the UI on a loopback port; it runs in a browser with --dev until the
Electron shell lands in phase 2.

- Data folder in the OS's conventional location (--data-dir overrides),
  holding app.sqlite3, local.json, cache/ and projects/<id>/.
- SQLite helpers with WAL, per-database migrations and VACUUM INTO.
  Rows use UUIDv7 IDs and sync columns.
- Disks: a kind registry with a traversal-safe local kind. Global disks
  are read-only unless a test write succeeds; project disks are writable.
- Index: scan jobs reconcile each disk into files + FTS5 (trigram),
  with fingerprints, background content hashing, WAV/AIFF metadata and
  an fsnotify watcher for incremental rescans.
- Jobs runner with per-disk deduplication, limits and cancellation.
- Projects: one open at a time, edited in a working copy and saved by
  VACUUM INTO + rename, with debounced autosave and crash recovery.
  Search merges the global and project indexes with cursor pagination.
- API on stdlib ServeMux behind a Host/Origin loopback guard. Normal mode
  listens on a random port and prints PORT=<n>.
- UI: splash, project browser and project shell (name, tempo, save,
  autosave, recovery), keeping the existing design language.
- Remove the Docker image, gorilla/mux, goqu and the old explorer UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 14:00:41 +00:00
aneurin 7f57e25dcf Build a multi-arch (amd64 + arm64) image (!4)
Build / build-and-push (push) Successful in 6m7s
Co-authored-by: Aneurin Barker Snook <aneurin@aneur.in>
2026-09-07 00:42:58 +00:00
aneurinandClaude Sonnet 5 d7a8a7a21e revert to single-job workflow
Build / build-and-push (push) Successful in 46s
This Gitea instance reports as GHES and rejects the @actions/artifact v2
protocol, so upload-artifact@v4 / download-artifact@v4 fail. Roll the
workflow, Dockerfile and .dockerignore back to the pre-split state
(dd6bb1a): one build-and-push job, no artifact handoff.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 17:10:20 +01:00
aneurinandClaude Sonnet 5 ad4fc7dd7d name the build artifact with its architecture
Build / build-binary (push) Failing after 59s
Build / build-image (push) Skipped
Rename the CI binary and its artifact to zampler-amd64, and make the
Dockerfile arch-agnostic via ARG TARGETARCH / COPY zampler-$TARGETARCH.
Keeps the pipeline single-arch for now but makes adding an arm64 leg a
smaller change later.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 17:07:20 +01:00
aneurinandClaude Sonnet 5 298d2f248e split build workflow into binary and image jobs
build-binary compiles the frontend and Go binary (with the module and
build caches) and uploads it as an artifact; build-image downloads the
artifact and builds/pushes the Docker image from it.

The executable bit is restored after download since upload-artifact
does not preserve it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 16:25:09 +01:00
aneurinandClaude Sonnet 5 dd6bb1a547 build zampler binary in CI instead of the Dockerfile
Build / build-and-push (push) Successful in 5m9s
The Go compile is dominated by modernc.org/libc (~400k lines of
generated Go from modernc.org/sqlite). Inside `docker build` on an
ephemeral runner it recompiled cold every push; on a 1 CPU / 1 GB
runner that took ~10 minutes.

Move the frontend and Go builds into the workflow, where actions/cache
persists ~/.cache/go-build across runs so libc is compiled once. The
Dockerfile is now just an alpine wrapper around the prebuilt
CGO_ENABLED=0 static binary.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 15:26:36 +01:00
aneurin a9a7f7df0a add gitea build workflow
Build / build-and-push (push) Canceled after 12m56s
2026-09-06 14:37:50 +01:00