Skip to content

Building from Source

Jacek Nikiel edited this page Nov 24, 2026 · 1 revision

🇵🇱 Wersja polska

Building from source and releases

Requirements

  • Node.js 20.19+ or 22.12+
  • Rust stable (edition 2024)
  • Windows: Visual Studio C++ Build Tools
  • Linux (Debian/Ubuntu):
    sudo apt install build-essential pkg-config file patchelf libssl-dev libwebkit2gtk-4.1-dev libgtk-3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev librsvg2-dev libayatana-appindicator3-dev libxdo-dev

Building

git clone https://github.com/jacek-nikiel/RemoteFlow.git
cd RemoteFlow
npm ci
npm run tauri dev      # development mode
npm run tauri build    # production build + installers

Output:

  • Windows: src-tauri/target/release/remoteflow.exe, installers in src-tauri/target/release/bundle/nsis and bundle/msi
  • Linux: src-tauri/target/release/remoteflow, packages in src-tauri/target/release/bundle/ (.deb, .rpm, .AppImage)

On Windows there are also run-windows.bat (development mode) and build-windows.bat.

After git pull run npm ci when dependencies changed (e.g. error Failed to resolve import "@tauri-apps/plugin-…").

Your own build contains no update packages – only GitHub Actions releases are signed. Such a copy checks for updates the same way, but installs only packages signed with the project key.

Linux in Docker (also from Windows)

docker build -f docker/Dockerfile.linux --target export --output type=local,dest=dist-linux .

or build-linux-docker.bat. Packages land in dist-linux/.

Tests

node scripts/check-i18n.mjs    # every UI text has an English translation
npm run build                  # TypeScript check + production UI build
cd src-tauri
cargo test --lib               # unit tests
cargo test --lib -- --ignored  # integration tests (local SSH/RDP servers)

Project layout

Path Contents
src/ React 19 + TypeScript UI (components, i18n in src/i18n/en.json)
src-tauri/src/session/ SSH, SFTP, tunnels, RDP (proxy, FreeRDP), clipboard
src-tauri/src/vault/ Vault: encryption, storage, backups, trusted hosts, mRemoteNG import
src-tauri/src/auth/ Unlocking, PIN, locking, vault commands
.github/workflows/release.yml Building and publishing releases

Contribution rules

  • Every change bumps the version (PATCH – fixes, MINOR – features) in package.json, src-tauri/tauri.conf.json and src-tauri/Cargo.toml (the version_tests test checks they match) and has an entry in both CHANGELOG.md (English) and CHANGELOG.pl.md (Polish).
  • UI texts are written in Polish inside t('…') with an English translation added to src/i18n/en.json.
  • Feature descriptions are kept up to date in README.md and README.pl.md.

Release (maintainer)

Once:

  1. npx tauri signer generate -w ~/.tauri/remoteflow.key – never commit the private key, keep a backup.
  2. Content of remoteflow.key.pub → src-tauri/tauri.conf.json → plugins.updater.pubkey.
  3. GitHub → Settings → Secrets and variables → Actions: TAURI_SIGNING_PRIVATE_KEY (content of remoteflow.key) and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

Every release:

git tag v1.2.3          # = version in package.json; CHANGELOG.md (EN) and CHANGELOG.pl.md (PL) need a "## 1.2.3 – …" section
git push origin v1.2.3

GitHub Actions runs the tests, builds Windows and Linux, signs the packages and creates a draft release with notes from both changelogs (the update notice shows the part in the interface language). Check it and click Publish release (do not tick pre-release – the updater looks at releases/latest).

The wiki pages are kept in the wiki/ folder (not tracked by the main repository); publish-wiki.bat ["message"] copies them to the wiki repository (RemoteFlow.wiki.git, cloned next to the project as remoteflow-wiki) and pushes them.

Losing the private key = installed copies cannot verify new updates (users would have to install a new version manually).

Clone this wiki locally