3 Commits
Author SHA1 Message Date
admin 68f16bb0e4 Merge pull request #18 from Alpaq92/downloads-for-the-bsds-and-the-web
Downloads for the BSDs and the web
2026-10-05 11:33:14 +02:00
adminandClaude Opus 5.5 5f08f33872 The pitch before the links
The README now says why Reaktor exists before it offers the showcase in the browser or a download.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 11:05:45 +02:00
adminandClaude Opus 5.5 36f3c4fdc5 Downloads for the BSDs and the web
The BSD workflow now packs what it builds, as the other three do: each
VM packs its build with tools/package.sh, runs the packed showcase under
the dummy driver, checks it draws its Translations page as the built one
does, and hands the archive back with its shots. FreeBSD 15.1, OpenBSD
7.9 and NetBSD 11.0 each get one for x86-64 and ARM64.

web.yml builds the WebAssembly programs on every pull request and packs
the showcase, Notepad and Simple with their licenses, ready for any HTTP
server. release.yml calls both, every job required, and the release notes
and the README name the new downloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 11:04:35 +02:00
5 changed files with 154 additions and 23 deletions
+40 -2
View File
@@ -5,12 +5,20 @@ on:
branches: [master]
pull_request:
workflow_dispatch:
workflow_call:
inputs:
version:
type: string
default: ''
strict:
type: boolean
default: false
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: bsd-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
@@ -18,7 +26,7 @@ jobs:
name: ${{ matrix.os }} ${{ matrix.version }} ${{ matrix.arch }}
runs-on: ubuntu-latest
timeout-minutes: ${{ matrix.timeout }}
continue-on-error: ${{ matrix.arch == 'arm64' }}
continue-on-error: ${{ matrix.arch == 'arm64' && !inputs.strict }}
strategy:
fail-fast: false
matrix:
@@ -151,6 +159,27 @@ jobs:
export PATH
cmake --build build --target mkicon </dev/null
- name: Package
id: package
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
run: |
PATH=/usr/pkg/sbin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin:$PATH
export PATH
version='${{ inputs.version || 'dev' }}'
name="reaktor-${version#v}-${{ matrix.os }}-${{ matrix.arch }}"
sh tools/package.sh build "dist/$name"
mkdir -p check
for from in "built build" "packed dist/$name"; do
set -- $from
dbus-run-session -- "$2/showcase" --tab 8 --theme light --video dummy \
--shot "check/$1.bmp" --a11y-dump "check/$1.txt" </dev/null
done
for e in bmp txt; do
cmp "check/built.$e" "check/packed.$e"
done
tar -C dist -czf "dist/$name.tar.gz" "$name"
rm -rf "dist/$name"
- name: Collect the shots
if: ${{ always() && steps.vm.outcome == 'success' }}
shell: cpa.sh {0} --sync-files vm-to-runner
@@ -161,6 +190,15 @@ jobs:
done
rm -rf build
- name: Upload the package
if: ${{ !cancelled() && steps.package.outcome == 'success' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: package-${{ matrix.os }}-${{ matrix.arch }}
path: dist/*.tar.gz
if-no-files-found: error
retention-days: 14
- name: Upload the shots
if: ${{ always() && steps.vm.outcome == 'success' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+25 -5
View File
@@ -24,6 +24,17 @@ jobs:
version: ${{ github.ref_name }}
strict: true
bsd:
uses: ./.github/workflows/bsd.yml
with:
version: ${{ github.ref_name }}
strict: true
web:
uses: ./.github/workflows/web.yml
with:
version: ${{ github.ref_name }}
source:
runs-on: ubuntu-24.04
steps:
@@ -47,7 +58,7 @@ jobs:
retention-days: 14
publish:
needs: [windows, macos, linux, source]
needs: [windows, macos, linux, bsd, web, source]
runs-on: ubuntu-24.04
permissions:
contents: write
@@ -70,11 +81,16 @@ jobs:
| Windows | x64, x86, ARM64 | \`reaktor-$v-windows-<arch>.zip\` |
| macOS | Apple silicon (arm64), Intel (x86_64) | \`reaktor-$v-macos-<arch>.zip\` |
| Linux | x86-64, x86, ARM64, ARMv7 (armhf), RISC-V 64 | \`reaktor-$v-linux-<arch>.tar.gz\` |
| FreeBSD 15.1 | x86-64, ARM64 | \`reaktor-$v-freebsd-<arch>.tar.gz\` |
| OpenBSD 7.9 | x86-64, ARM64 | \`reaktor-$v-openbsd-<arch>.tar.gz\` |
| NetBSD 11.0 | x86-64, ARM64 | \`reaktor-$v-netbsd-<arch>.tar.gz\` |
| Web | WebAssembly | \`reaktor-$v-web.zip\` |
| Source | every submodule included | \`reaktor-$v-source.tar.gz\` |
Each package holds the showcase, Notepad, Simple and the bench, the files
they read at runtime, and every license (\`licenses/\`, \`NOTICE.md\`).
Unpack it anywhere and run \`showcase\`; it finds its files beside itself.
Each native package holds the showcase, Notepad, Simple and the bench,
the files they read at runtime, and every license (\`licenses/\`,
\`NOTICE.md\`). Unpack it anywhere and run \`showcase\`; it finds its files
beside itself.
- **Windows**: the C runtime is linked in, so there is nothing to install.
The programs are not signed, and SmartScreen may ask before the first run.
@@ -82,7 +98,11 @@ jobs:
notarized: open it from its context menu the first time.
- **Linux**: glibc 2.36 or newer (2.41 for RISC-V), libdbus-1, and X11 or
Wayland.
- **Web**: the same showcase runs at https://alpaq92.github.io/Reaktor/.
- **BSDs**: the release named above, the dbus package, and X11.
- **Web**: the showcase, Notepad and Simple as \`.html\`, \`.js\`, \`.wasm\`
and \`.data\`. Serve the folder over HTTP (a \`file://\` page cannot fetch
the \`.wasm\`) and open \`showcase.html\`; the same showcase runs at
https://alpaq92.github.io/Reaktor/.
GitHub's own source archives below leave the submodules out; the
\`-source.tar.gz\` above has them.
+69
View File
@@ -0,0 +1,69 @@
name: Web
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
workflow_call:
inputs:
version:
type: string
default: ''
permissions:
contents: read
concurrency:
group: web-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
web:
name: web
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
EMSCRIPTEN_VERSION: 6.0.9
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive
persist-credentials: false
- name: Install emsdk
run: |
git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$HOME/emsdk"
"$HOME/emsdk/emsdk" install "$EMSCRIPTEN_VERSION"
"$HOME/emsdk/emsdk" activate "$EMSCRIPTEN_VERSION"
sudo apt-get update && sudo apt-get install -y ninja-build
- name: Build
run: EMSDK="$HOME/emsdk" ./build-wasm.sh
- name: Package
run: |
version='${{ inputs.version || 'dev' }}'
name="reaktor-${version#v}-web"
mkdir -p "dist/$name/licenses"
for p in showcase notepad simple; do
cp "build-wasm/$p.html" "build-wasm/$p.js" "build-wasm/$p.wasm" \
"build-wasm/$p.data" "dist/$name/"
done
cp build-wasm/keylog.js build-wasm/reaktor-icon.svg build-wasm/reaktor-icon.png \
"dist/$name/"
cp build-wasm/licenses/*.txt "dist/$name/licenses/"
cp external/simplecss/LICENSE "dist/$name/licenses/simplecss.txt"
cp assets/fonts/Aileron-Notice.txt assets/fonts/MPLUS1p-Notice.txt \
"dist/$name/licenses/"
cp docs/NOTICE.md "dist/$name/"
(cd dist && zip -qr "$name.zip" "$name")
- name: Upload the package
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: package-web
path: dist/*.zip
if-no-files-found: error
retention-days: 14
+6 -5
View File
@@ -6,11 +6,6 @@ A Nuklear-powered GUI library for C.
<img src="assets/screenshots/screenshot.png" alt="Two Reaktor showcase windows, the light scheme behind and the dark scheme in front: each has the sidebar of pages with its own scheme chosen at the foot, and the front one shows the Login page's card in a rounded panel">
</p>
**[Try the showcase in your browser](https://alpaq92.github.io/Reaktor/)** — the
same program, built to WebAssembly — or
**[download it](https://github.com/Alpaq92/Reaktor/releases/latest)** for
Windows, macOS or Linux.
Tired of C having no cross-platform GUI — nothing like
[Avalonia](https://github.com/avaloniaui/avalonia),
[Shaft](https://github.com/ShaftUI/Shaft) or
@@ -18,6 +13,12 @@ Tired of C having no cross-platform GUI — nothing like
of megabytes to put a dialog on screen? I was. So I wrote Reaktor: complete
without being big. A 2.3 MB binary, about 10 MB of RAM, and no GPU required.
**[Try the showcase in your browser](https://alpaq92.github.io/Reaktor/)** — the
same program, built to WebAssembly — or
**[download it](https://github.com/Alpaq92/Reaktor/releases/latest)** for
Windows, macOS, Linux, FreeBSD, OpenBSD or NetBSD, or as WebAssembly to serve
yourself.
> ⚠️ **Reaktor is in active development**, and breaking changes might occur.
<p align="center">
+14 -11
View File
@@ -549,23 +549,26 @@ writes a `--shot` and an `--a11y-dump` of `simple` and the showcase through
the system's video driver and SDL's `dummy` one: `.github/workflows/` holds a
workflow per system. The BSDs run in virtual machines, ARM64 among them under
emulation, and a job that emulates may fail without failing its run. The web
build is checked by hand in headless Edge, as desktop, Android and iOS.
build is built and packed on every pull request too (`web.yml`), and checked
by hand in headless Edge, as desktop, Android and iOS.
`build.sh` builds for the machine it runs on. `build.ps1 -Arch x86` (or `x64`,
`arm64`) builds that architecture with MSVC's matching toolset, into
`build-<arch>` when it is not the machine's own; ARM64 needs Visual Studio's
ARM64 build tools.
**Releases.** Pushing a `v*` tag runs `release.yml`: the three workflows
again, with every job required, and a GitHub release of what they packed —
one archive per system and architecture, and the source with its submodules,
which GitHub's own archives leave out. `tools/package.sh <build> <folder>
[.exe]` packs one: the four programs without their symbols, the `.reaktor-root` marker, the files
they read at runtime (`tools/assets.sh`, which the macOS app bundle uses too),
`licenses/` and `NOTICE.md`. Each job runs the packed showcase and checks it
draws its Translations page as the built one does. Windows links the C runtime
statically (`-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded`); the macOS app is
signed ad hoc, not notarized; Linux needs glibc 2.36, or 2.41 on RISC-V.
**Releases.** Pushing a `v*` tag runs `release.yml`: the four native
workflows again, with every job required, a web build, and a GitHub release
of what they packed — one archive per system and architecture, the three
WebAssembly programs, and the source with its submodules, which GitHub's own
archives leave out. `tools/package.sh <build> <folder> [.exe]` packs a native
one: the four programs without their symbols, the `.reaktor-root` marker, the
files they read at runtime (`tools/assets.sh`, which the macOS app bundle uses
too), `licenses/` and `NOTICE.md`. Each job runs the packed showcase and
checks it draws its Translations page as the built one does. Windows links the
C runtime statically (`-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded`); the macOS
app is signed ad hoc, not notarized; Linux needs glibc 2.36, or 2.41 on
RISC-V; a BSD package wants the release it was built on.
## Build options