Table of contents
Build runners (macOS and Windows)
This page is for whoever builds Jumpdeck's releases, not for people using the app. The Windows and macOS desktop apps (Jumpdeck 4.1) are built on two machines of the project owner: a Mac and a Windows PC, each running the Forgejo runner. Until both are set up, the desktop app is Linux-only.
The same steps are kept in the repository as docs/runners.md.
How it works
Each machine runs the Forgejo runner as a user service, without Docker, registered with the label macos or windows. Only release tags send jobs to them, so they can sleep otherwise: a release job waits in the queue until its machine is awake, so wake both before pushing a tag.
Security
A host-mode runner executes workflow code with the full rights of its user account.
- Run it under a separate standard (non-admin) user, not your everyday account.
- Register it where Jumpdeck's jobs can reach it: the Jumpdeck repository (repo → Settings → Actions → Runners; narrowest), the Code-Liberation-Front organisation, or globally (Site Administration → Actions → Runners). A runner registered under a user account or another repository never receives Jumpdeck's jobs: they wait in the queue with no error. The wider the scope, the more repositories could ask for the label, so prefer the repository.
- Only
release.ymlon av*tag usesruns-on: macos/windows; pull requests never do. - Signing keys (an Apple Developer ID and a Windows code-signing certificate, both optional at first) live in Forgejo secrets, never on disk in the runner directory.
Common steps
-
Repo → Settings → Actions → Runners → Create new runner; copy the registration token.
-
Toolchains: Rust through rustup (the repo's
desktop/rust-toolchain.tomlpins the version and rustup installs it on first use), Go 1.27.3 or newer, Node 24, git. -
Build the runner with Go. Forgejo publishes ready-made runner binaries for Linux only, but the runner's source builds for macOS and Windows (checked with v13.2.0 for
darwin/arm64,darwin/amd64andwindows/amd64). The-ldflagspart stamps the version the runner reports:go install -ldflags "-X code.forgejo.org/forgejo/runner/v13/internal/pkg/ver.version=v13.2.0" code.forgejo.org/forgejo/runner/v13@v13.2.0This puts
forgejo-runnerin~/go/binon the Mac andforgejo-runner.exein%USERPROFILE%\go\binon Windows. To update the runner later, run the same command with the new version (both places).
Mac
xcode-select --install
curl --proto '=https' -sSf https://sh.rustup.rs | sh -s -- -y
brew install go node@24 git # or the go.dev / nodejs.org installers
go install -ldflags "-X code.forgejo.org/forgejo/runner/v13/internal/pkg/ver.version=v13.2.0" code.forgejo.org/forgejo/runner/v13@v13.2.0
mkdir -p ~/forgejo-runner && cd ~/forgejo-runner
cp ~/go/bin/forgejo-runner .
./forgejo-runner register --no-interactive --instance https://git.pandanas.net \
--token <TOKEN> --name mac --labels macos:host
./forgejo-runner generate-config > config.yml
macos:host runs jobs labelled macos directly on the machine. Start it at login with a launchd
agent, ~/Library/LaunchAgents/net.pandanas.forgejo-runner.plist (replace YOU; launchd does not
read your shell profile, so PATH must name the toolchains):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict>
<key>Label</key><string>net.pandanas.forgejo-runner</string>
<key>ProgramArguments</key><array>
<string>/Users/YOU/forgejo-runner/forgejo-runner</string><string>daemon</string>
<string>--config</string><string>/Users/YOU/forgejo-runner/config.yml</string></array>
<key>WorkingDirectory</key><string>/Users/YOU/forgejo-runner</string>
<key>EnvironmentVariables</key><dict><key>PATH</key>
<string>/Users/YOU/.cargo/bin:/opt/homebrew/bin:/opt/homebrew/opt/node@24/bin:/usr/local/go/bin:/usr/bin:/bin:/usr/sbin:/sbin</string></dict>
<key>RunAtLoad</key><true/><key>KeepAlive</key><true/>
<key>StandardOutPath</key><string>/Users/YOU/forgejo-runner/runner.log</string>
<key>StandardErrorPath</key><string>/Users/YOU/forgejo-runner/runner.log</string>
</dict></plist>
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/net.pandanas.forgejo-runner.plist
Windows
-
Install the build tools from PowerShell with winget (or each installer by hand). Node 24 comes from https://nodejs.org (the LTS installer may be a newer major; pick 24.x).
winget install --id Microsoft.VisualStudio.2022.BuildTools --override "--wait --passive --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended" winget install --id Rustlang.Rustup winget install --id GoLang.Go winget install --id Git.GitThe Build Tools workload brings MSVC and the Windows SDK; rustup's default target is
x86_64-pc-windows-msvc; Git for Windows' Bash runs the workflow steps. WebView2 ships with Windows 10/11, and Tauri fetches NSIS and WiX itself. -
Close PowerShell and open a new window, so
go,cargoandgitare onPATH. Check withgo version(1.27.3 or newer). -
Build the runner with Go and check it:
go install -ldflags "-X code.forgejo.org/forgejo/runner/v13/internal/pkg/ver.version=v13.2.0" code.forgejo.org/forgejo/runner/v13@v13.2.0 & "$HOME\go\bin\forgejo-runner.exe" --versionGo lists the packages it downloads and then compiles silently; the second line prints
forgejo-runner version v13.2.0. -
Register it and write its configuration.
Set-Content -Encoding asciimatters: Windows PowerShell's>writes UTF-16, which the runner cannot read.mkdir $HOME\forgejo-runner; cd $HOME\forgejo-runner Copy-Item $HOME\go\bin\forgejo-runner.exe . .\forgejo-runner.exe register --no-interactive --instance https://git.pandanas.net ` --token <TOKEN> --name windows --labels windows:host .\forgejo-runner.exe generate-config | Set-Content -Encoding ascii config.yml -
Start it at logon with a scheduled task (the runner cannot install itself as a Windows service):
$a = New-ScheduledTaskAction -Execute "$HOME\forgejo-runner\forgejo-runner.exe" ` -Argument "daemon --config config.yml" -WorkingDirectory "$HOME\forgejo-runner" $t = New-ScheduledTaskTrigger -AtLogOn -User $env:USERNAME $s = New-ScheduledTaskSettingsSet -ExecutionTimeLimit 0 -RestartCount 3 -RestartInterval (New-TimeSpan -Minutes 1) Register-ScheduledTask -TaskName "Forgejo runner" -Action $a -Trigger $t -Settings $s Start-ScheduledTask "Forgejo runner"To run it without anyone logged in, open the task in Task Scheduler and choose Run whether user is logged on or not.
Check
Repo → Settings → Actions → Runners lists mac and windows as Idle with the labels macos
and windows. The next release tag then builds the Windows and macOS apps on them.
Getting started
Using Jumpdeck
- Hosts and groups
- Terminal
- SFTP file manager
- Keychain
- Vault and security
- Sharing hosts
- Team vaults
- Snippets
- Port forwarding
- Remote desktop
- Built-in browser
- Databases (MySQL, MariaDB, PostgreSQL)
- Serial connections (desktop app)
- Known hosts
- Logs and recordings
Reference
Jumpdeck user guide · written for v3.1.9 · Repository · Releases · Report a problem