Updated the readme
No files matched your search
@@ -1,256 +1,141 @@
|
|||||||
# Konduktor
|
<p align="center">
|
||||||
|
<img src="design/konduktor-icon.svg" width="96" alt="Konduktor icon">
|
||||||
|
</p>
|
||||||
|
|
||||||
**A fast, modern home for your Traktor collection.**
|
<h1 align="center">Konduktor</h1>
|
||||||
|
|
||||||
Konduktor is a lightweight desktop-style app for DJs who run **Native
|
<p align="center">
|
||||||
Instruments Traktor** (Pro 4 / NML v20). It opens your existing
|
<b>Prep your tracks and run your DJ libraries in one fast app.</b><br>
|
||||||
`collection.nml`, gives you a beautiful dark library to explore, and lets you
|
Traktor, Rekordbox, or the USB stick in your pocket.
|
||||||
build playlists and prep tracks — without launching the whole heavyweight
|
</p>
|
||||||
Traktor app just to tidy up your tags or drop a few cue points.
|
|
||||||
|
|
||||||
Your collection stays exactly where it is. Konduktor reads and writes the same
|
<p align="center">
|
||||||
file Traktor uses, so everything you do shows up next time you open Traktor.
|
<a href="https://github.com/MrPatben8/konduktor/releases"><b>Download for macOS & Windows</b></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Konduktor opens the library you already have, in the format it already uses.
|
||||||
|
You can tidy tags, build playlists, set grids and cues, and pack a USB stick
|
||||||
|
for the gig without launching your full DJ software. When you open your DJ
|
||||||
|
software again, everything you changed is there.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Why you'll like it
|
## One app for every library
|
||||||
|
|
||||||
- **Instant, searchable library.** Your whole collection loads into a snappy,
|
<img src="docs/screenshots/platforms.png" align="right" width="420" alt="Choosing a platform: Rekordbox, Traktor, OneLibrary or Remote">
|
||||||
virtualized grid. Search, filter by genre / key / BPM / rating, and sort by
|
|
||||||
any column — all instant, no waiting.
|
- **Traktor** collections.
|
||||||
- **Make it yours.** Show only the columns you care about, drag them into the
|
- **Rekordbox** libraries.
|
||||||
order you like, and resize them to fit. Your layout is remembered.
|
- **OneLibrary** USB sticks, the format CDJs read. Plug one in to browse it,
|
||||||
- **Edit tags without the ceremony.** Double-click any field to fix a title or
|
preview tracks off it, import them, or edit the stick directly.
|
||||||
genre on the spot, click the stars to rate a track, or right-click for a full
|
- **Remote** libraries: keep your whole library and music on a home server and
|
||||||
tag + cover-art editor. Great for quick one-off fixes.
|
open it from any laptop ([set up a server](docs/REMOTE-SERVER.md)).
|
||||||
- **Playlists, the easy way.** Create, rename, and delete playlists, then
|
- **Any folder or drive**: browse loose audio files, preview them, and add
|
||||||
drag-and-drop to reorder or add tracks.
|
them to your library.
|
||||||
- **A real prep deck.** Load any track into the deck at the top and:
|
|
||||||
- play it with a **frequency-colored waveform** (Traktor-style Spectrum look),
|
Your library is never converted into a Konduktor database. Saves write back to
|
||||||
scrolling under a fixed playhead with zoom in/out
|
the original file and change only what you edited.
|
||||||
- scratch it by dragging the waveform
|
|
||||||
- see and adjust the **beatgrid** and BPM
|
<br clear="right">
|
||||||
- set, jump to, and delete **hotcues** (with a color-coded 8-slot bar)
|
|
||||||
- build **loops** in fixed beat sizes, tied into the hotcue system
|
## A real prep deck
|
||||||
- use keyboard shortcuts: **Space** to play/pause, **1–8** to fire hotcues,
|
|
||||||
**Shift+1–8** to clear them
|

|
||||||
- **Your data is safe.** Every save makes a timestamped backup first, and only
|
|
||||||
ever touches the parts you changed — the rest of the file stays byte-for-byte
|
- A scrolling waveform, coloured by frequency, with zoom, scratching and an
|
||||||
identical.
|
overview of the whole track.
|
||||||
|
- Eight hotcue pads with names, types and colours, plus beat loops, beat jump
|
||||||
|
and tap tempo.
|
||||||
|
- **Beatgrid editing**, including grids with tempo changes. Nudge, retempo,
|
||||||
|
halve or double without opening your DJ software.
|
||||||
|
- Keyboard shortcuts for the whole deck: Space to play, 1–8 for hotcues,
|
||||||
|
arrow keys to jump or move a loop.
|
||||||
|
|
||||||
|
## Stems, built in
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**Play stem files as stems.** Load a stem file and the deck splits into
|
||||||
|
drums, bass, synths and vocals, each drawn in its own lane. Click a lane's
|
||||||
|
button to mute it, Alt/Option-click to solo it, or use Q W E R.
|
||||||
|
|
||||||
|
**Convert to Stems.** In a Traktor collection, right-click any tracks and
|
||||||
|
choose Convert to Stems. They come back as standard Traktor stem files with their tags, cover art, cues and
|
||||||
|
beatgrid intact.
|
||||||
|
|
||||||
|
- The separation runs on your own computer, so your music isn't sent to an
|
||||||
|
online service.
|
||||||
|
- Replace the originals, or save the stems to a folder and add them as new
|
||||||
|
tracks.
|
||||||
|
- Convert a whole playlist in one go.
|
||||||
|
|
||||||
|
## Let it do the boring parts
|
||||||
|
|
||||||
|
| Auto Hotcues | Analyze |
|
||||||
|
|:---:|:---:|
|
||||||
|
|  |  |
|
||||||
|
| Pick an event for each pad (first beat, build, drop, breakdown, outro). Konduktor finds them in the track and places the cues. Run it on one track or a whole playlist. | Detects tempo, beatgrid and musical key, for one track or hundreds. |
|
||||||
|
|
||||||
|
## Export to USB for CDJs, or other platforms
|
||||||
|
|
||||||
|
<img src="docs/screenshots/export.png" align="right" width="380" alt="An export set for OneLibrary, Traktor and Rekordbox">
|
||||||
|
|
||||||
|
Make an **export** in the sidebar, drag playlists onto it, and press Export.
|
||||||
|
One stick can carry a Traktor collection, a OneLibrary library for current
|
||||||
|
CDJs and a Rekordbox Device Library for older players, all sharing **one copy
|
||||||
|
of the audio**.
|
||||||
|
|
||||||
|
- Hotcues, memory cues, loops, grids, keys and cover art are converted for
|
||||||
|
each platform.
|
||||||
|
- Playlists stay linked: edit a playlist, re-export, and the stick catches up.
|
||||||
|
- Re-exports copy only what changed, so updating a stick is quick.
|
||||||
|
- Konduktor only ever clears a folder that it wrote itself.
|
||||||
|
|
||||||
|
<br clear="right">
|
||||||
|
|
||||||
|
## Your library is safe
|
||||||
|
|
||||||
|
- **Saves are surgical.** A Traktor save changes only the entries you edited.
|
||||||
|
The rest of the file stays byte-for-byte identical.
|
||||||
|
- **Backups and history.** Every Traktor save makes a backup first and is kept
|
||||||
|
in a version history that you can restore from in the app.
|
||||||
|
- **Nothing is written until you press Save.** Discard changes throws away
|
||||||
|
everything you did since your last save.
|
||||||
|
- Tag edits are also written into the audio files themselves, so other apps
|
||||||
|
see them too.
|
||||||
|
|
||||||
|
## And also
|
||||||
|
|
||||||
|
- A fast library with search, filters, sorting and columns you can rearrange,
|
||||||
|
even with thousands of tracks.
|
||||||
|
- Edit tags inline or in a full tag and cover-art editor.
|
||||||
|
- Drag and drop tracks onto playlists, exports or the deck, and drag playlists
|
||||||
|
to reorganise them.
|
||||||
|
- If you open a Traktor collection on a different computer or drive,
|
||||||
|
Konduktor finds the missing files for you.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Getting started
|
## Get Konduktor
|
||||||
|
|
||||||
Konduktor runs as two small local servers (a Python backend and a web
|
Download the latest build from
|
||||||
frontend). Do the one-time setup, then start them — the same steps work on
|
[**Releases**](https://github.com/MrPatben8/konduktor/releases):
|
||||||
macOS, Linux, and Windows.
|
a `.dmg` for macOS (Apple Silicon) and a `-setup.exe` for Windows.
|
||||||
|
|
||||||
### 1. Install (once)
|
> **First launch:** builds aren't notarised yet, so your OS will warn you the
|
||||||
|
> first time.
|
||||||
|
> **macOS:** right-click the app, choose **Open**, then **Open** again. If it
|
||||||
|
> still refuses, run `xattr -cr /Applications/Konduktor.app` once.
|
||||||
|
> **Windows:** click **More info → Run anyway**.
|
||||||
|
|
||||||
**Backend** — needs Python 3.11+. Create a virtual environment and install the
|
> **Using Traktor?** Close it before saving in Konduktor. Traktor rewrites
|
||||||
dependencies:
|
> `collection.nml` when it quits, which would overwrite your changes.
|
||||||
|
|
||||||
```bash
|
Want to run it from source or build it yourself? See
|
||||||
cd backend
|
[docs/BUILDING.md](docs/BUILDING.md).
|
||||||
python3 -m venv .venv # Windows: python -m venv .venv
|
|
||||||
```
|
|
||||||
|
|
||||||
Activate it, then install:
|
## License
|
||||||
|
|
||||||
```bash
|
[AGPL-3.0](LICENSE)
|
||||||
source .venv/bin/activate # Windows (PowerShell): .\.venv\Scripts\Activate.ps1
|
|
||||||
pip install -r requirements.txt
|
|
||||||
cd ..
|
|
||||||
```
|
|
||||||
|
|
||||||
**Frontend** — needs Node 18+ (same on every platform):
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd frontend
|
|
||||||
npm install
|
|
||||||
cd ..
|
|
||||||
```
|
|
||||||
|
|
||||||
### 2. Run it (development)
|
|
||||||
|
|
||||||
Konduktor runs as two local servers (backend on `:8000`, frontend on `:5173`).
|
|
||||||
|
|
||||||
**macOS / Linux** — one command starts both:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
./dev.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
**Windows** — start each server in its own terminal:
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
# Terminal 1 — backend
|
|
||||||
cd backend; .\.venv\Scripts\Activate.ps1; uvicorn konduktor.main:app --reload --port 8000
|
|
||||||
|
|
||||||
# Terminal 2 — frontend
|
|
||||||
cd frontend; npm run dev
|
|
||||||
```
|
|
||||||
|
|
||||||
Either way, open **http://localhost:5173** in your browser (`Ctrl-C` stops a
|
|
||||||
server). This is the fastest way to try Konduktor or hack on it — the frontend
|
|
||||||
hot-reloads as you edit. To package a real double-clickable app instead, see
|
|
||||||
[Build a standalone app](#build-a-standalone-app-production) below.
|
|
||||||
|
|
||||||
### 3. Open your collection
|
|
||||||
|
|
||||||
On launch, Konduktor offers to:
|
|
||||||
|
|
||||||
- **Automatically** open the collection from your latest installed Traktor,
|
|
||||||
- reopen the **last collection** you used, or
|
|
||||||
- **browse** for a `collection.nml` yourself.
|
|
||||||
|
|
||||||
That's it — you're in.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Build a standalone app (production)
|
|
||||||
|
|
||||||
Prefer a real double-clickable app over running the dev servers? Konduktor
|
|
||||||
packages into a native desktop app (via **Tauri**) that bundles the Python
|
|
||||||
backend as a sidecar — no terminal, no servers to start by hand.
|
|
||||||
|
|
||||||
### Extra prerequisites
|
|
||||||
|
|
||||||
On top of the Python 3.11+ and Node 18+ from above:
|
|
||||||
|
|
||||||
- **Rust** — install from <https://rustup.rs> (the app shell is Tauri/Rust).
|
|
||||||
- **PyInstaller** — into the backend venv:
|
|
||||||
`pip install -r backend/requirements-build.txt`
|
|
||||||
- **Windows only:** also the MSVC C++ build tools and the WebView2 runtime — see
|
|
||||||
[BUILDING-WINDOWS.md](BUILDING-WINDOWS.md) for the one-time toolchain setup.
|
|
||||||
|
|
||||||
The build is a two-step recipe on both platforms: **freeze the backend into a
|
|
||||||
sidecar folder**, then **build the app**. The only difference is which sidecar
|
|
||||||
script you run — `.sh` on macOS/Linux, `.ps1` on Windows. Each build runs on its
|
|
||||||
own OS (the app can't be cross-compiled).
|
|
||||||
|
|
||||||
### macOS / Linux
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# 1) Freeze the backend into a sidecar folder (from the activated backend venv)
|
|
||||||
cd backend && source .venv/bin/activate && ./build_sidecar.sh && cd ..
|
|
||||||
|
|
||||||
# 2) Build the app
|
|
||||||
cd frontend && npx tauri build
|
|
||||||
```
|
|
||||||
|
|
||||||
The installer lands at
|
|
||||||
`frontend/src-tauri/target/release/bundle/dmg/Konduktor_<version>_aarch64.dmg`
|
|
||||||
(with the `.app` beside it).
|
|
||||||
|
|
||||||
### Windows
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
# 1) Freeze the backend into a sidecar folder (from the activated backend venv)
|
|
||||||
cd backend; .\.venv\Scripts\Activate.ps1; .\build_sidecar.ps1; cd ..
|
|
||||||
|
|
||||||
# 2) Build the app
|
|
||||||
cd frontend; npx tauri build
|
|
||||||
```
|
|
||||||
|
|
||||||
The installers land in `frontend\src-tauri\target\release\bundle\` (an `.msi` and
|
|
||||||
an NSIS `-setup.exe`). See [BUILDING-WINDOWS.md](BUILDING-WINDOWS.md) for the full
|
|
||||||
walkthrough and Windows-specific notes.
|
|
||||||
|
|
||||||
> **First launch — getting past the OS security prompt.** Builds are
|
|
||||||
> **ad-hoc signed, not notarized** (no paid Apple/Windows developer cert yet), so
|
|
||||||
> the OS flags them the first time. This is expected — the app isn't damaged.
|
|
||||||
>
|
|
||||||
> - **macOS:** right-click the app → **Open** → **Open** (or System Settings →
|
|
||||||
> Privacy & Security → **Open Anyway** after the first blocked attempt). If it
|
|
||||||
> still refuses — common for a `.dmg` downloaded via a browser, which macOS
|
|
||||||
> quarantines — clear the quarantine flag once from Terminal:
|
|
||||||
> ```bash
|
|
||||||
> xattr -cr /Applications/Konduktor.app
|
|
||||||
> ```
|
|
||||||
> - **Windows:** click **More info → Run anyway** past SmartScreen.
|
|
||||||
>
|
|
||||||
> The macOS `.dmg` is Apple-Silicon (`aarch64`) only.
|
|
||||||
|
|
||||||
> **Faster local builds:** `npx tauri build --debug --bundles app` skips the
|
|
||||||
> optimizer and the installer, giving you a runnable app in seconds — handy while
|
|
||||||
> iterating.
|
|
||||||
|
|
||||||
### Rebuilding after changes
|
|
||||||
|
|
||||||
Changed **backend** Python? Re-run the sidecar script for your OS
|
|
||||||
(`./build_sidecar.sh` or `.\build_sidecar.ps1`), then `npx tauri build`.
|
|
||||||
Frontend-only change? Just `npx tauri build` — it rebuilds the web app for you.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Saving back to Traktor
|
|
||||||
|
|
||||||
Playlist edits, tag changes, and prep tweaks all apply live in the app. When
|
|
||||||
you're happy, hit **Save to Traktor** to write them to `collection.nml`.
|
|
||||||
|
|
||||||
> ⚠️ **Close Traktor before saving.** Traktor rewrites `collection.nml` when it
|
|
||||||
> quits, so if it's open it will overwrite your changes. Konduktor always writes
|
|
||||||
> a backup first (into a `backups/` folder next to your collection), but closing
|
|
||||||
> Traktor first is the safe habit.
|
|
||||||
|
|
||||||
Want to experiment risk-free? Point Konduktor at a *copy* of your collection and
|
|
||||||
play around.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## A remote library (Konduktor server on a NAS)
|
|
||||||
|
|
||||||
Keep your whole library — the collection file and the music — on a server, and
|
|
||||||
open it from any computer with Konduktor. Prep tracks, edit playlists, and
|
|
||||||
export sticks for your gigs without the music ever living on your performance
|
|
||||||
laptop.
|
|
||||||
|
|
||||||
The server is a small container (`server/`). It holds the library and saves it.
|
|
||||||
Playback, analysis and stem separation run on the computer you open it from,
|
|
||||||
on copies it downloads, so the server needs no GPU and does very little work.
|
|
||||||
|
|
||||||
**On the server (e.g. TrueNAS SCALE):**
|
|
||||||
|
|
||||||
1. Copy `server/compose.yaml` and `server/.env.example` (renamed to `.env`)
|
|
||||||
onto the NAS. Point the volumes at your datasets, and fill in `.env`: the
|
|
||||||
platform (`traktor` or `rekordbox`), the library file, the music folder, a
|
|
||||||
username and password, and — for a collection made on a Mac — the path
|
|
||||||
mapping (`/Users/you/Music => /music`).
|
|
||||||
2. Install it: on TrueNAS, **Apps → Discover Apps → ⋮ → Install via YAML** and
|
|
||||||
paste the compose file; anywhere else, `docker compose up -d`. A bad setting
|
|
||||||
stops the container with one clear line in its log.
|
|
||||||
|
|
||||||
**In the app:** choose **Remote** on the platform screen → **Add a remote
|
|
||||||
library** → enter the server's address (and a fallback, such as its Tailscale
|
|
||||||
address, for when you're away from home), the username and the password.
|
|
||||||
Konduktor checks the server before it saves the remote, and keeps the
|
|
||||||
password in your keychain.
|
|
||||||
|
|
||||||
Good to know:
|
|
||||||
|
|
||||||
- **One computer at a time.** If another computer has the library open,
|
|
||||||
Konduktor says who has it and offers to take over. Edits that computer
|
|
||||||
hadn't saved stay with the library, and you're asked to save or discard
|
|
||||||
them.
|
|
||||||
- **Plain HTTP.** Reach the server over your home network or a VPN
|
|
||||||
(Tailscale / WireGuard). Don't expose its port to the internet.
|
|
||||||
- **Unsaved edits live on the server** until you save. Restarting the
|
|
||||||
container drops them.
|
|
||||||
- Downloaded tracks are cached on your computer (Settings → **Remote audio**
|
|
||||||
sets the size), so a track you've prepped and then export is fetched once.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Good to know
|
|
||||||
|
|
||||||
- Konduktor is built on [`traktor-nml-utils`](https://github.com/MrPatben8/traktor-nml-utils)
|
|
||||||
and speaks Traktor's real file format — no import/export, no separate database.
|
|
||||||
- Run it in your browser from source, or package it into a native desktop app
|
|
||||||
(macOS `.dmg` / Windows `.msi`) that bundles the backend — see
|
|
||||||
[Build a standalone app](#build-a-standalone-app-production). A mobile version
|
|
||||||
is on the horizon.
|
|
||||||
- Under the hood: **FastAPI** (Python) backend + **React / TypeScript / Vite**
|
|
||||||
frontend. Curious about internals or contributing? See
|
|
||||||
[CLAUDE.md](CLAUDE.md) for the architecture and conventions.
|
|
||||||
@@ -0,0 +1,149 @@
|
|||||||
|
# Building Konduktor
|
||||||
|
|
||||||
|
Most people should just [download a release](https://github.com/MrPatben8/konduktor/releases). This page is for running Konduktor from source or packaging the desktop app yourself.
|
||||||
|
|
||||||
|
## Run from source (development)
|
||||||
|
|
||||||
|
Konduktor runs as two small local servers (a Python backend and a web
|
||||||
|
frontend). Do the one-time setup, then start them — the same steps work on
|
||||||
|
macOS, Linux, and Windows.
|
||||||
|
|
||||||
|
### 1. Install (once)
|
||||||
|
|
||||||
|
**Backend** — needs Python 3.11+. Create a virtual environment and install the
|
||||||
|
dependencies:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd backend
|
||||||
|
python3 -m venv .venv # Windows: python -m venv .venv
|
||||||
|
```
|
||||||
|
|
||||||
|
Activate it, then install:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
source .venv/bin/activate # Windows (PowerShell): .\.venv\Scripts\Activate.ps1
|
||||||
|
pip install -r requirements.txt
|
||||||
|
cd ..
|
||||||
|
```
|
||||||
|
|
||||||
|
**Frontend** — needs Node 18+ (same on every platform):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd frontend
|
||||||
|
npm install
|
||||||
|
cd ..
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Run it (development)
|
||||||
|
|
||||||
|
Konduktor runs as two local servers (backend on `:8000`, frontend on `:5173`).
|
||||||
|
|
||||||
|
**macOS / Linux** — one command starts both:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./dev.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
**Windows** — start each server in its own terminal:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Terminal 1 — backend
|
||||||
|
cd backend; .\.venv\Scripts\Activate.ps1; uvicorn konduktor.main:app --reload --port 8000
|
||||||
|
|
||||||
|
# Terminal 2 — frontend
|
||||||
|
cd frontend; npm run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
Either way, open **http://localhost:5173** in your browser (`Ctrl-C` stops a
|
||||||
|
server). This is the fastest way to try Konduktor or hack on it — the frontend
|
||||||
|
hot-reloads as you edit. To package a real double-clickable app instead, see
|
||||||
|
[Build a standalone app](#build-a-standalone-app-production) below.
|
||||||
|
|
||||||
|
### 3. Open a library
|
||||||
|
|
||||||
|
On launch, pick your platform (Traktor, Rekordbox, OneLibrary or Remote), then
|
||||||
|
let Konduktor find the library **automatically**, reopen the **last one** you
|
||||||
|
used, or **browse** for it yourself.
|
||||||
|
|
||||||
|
Testing writes? `./dev-sandbox.sh` starts both servers against a throwaway copy
|
||||||
|
of your Traktor collection, with prefs and version history in a temp folder.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Build a standalone app (production)
|
||||||
|
|
||||||
|
Prefer a real double-clickable app over running the dev servers? Konduktor
|
||||||
|
packages into a native desktop app (via **Tauri**) that bundles the Python
|
||||||
|
backend as a sidecar — no terminal, no servers to start by hand.
|
||||||
|
|
||||||
|
### Extra prerequisites
|
||||||
|
|
||||||
|
On top of the Python 3.11+ and Node 18+ from above:
|
||||||
|
|
||||||
|
- **Rust** — install from <https://rustup.rs> (the app shell is Tauri/Rust).
|
||||||
|
- **PyInstaller** — into the backend venv:
|
||||||
|
`pip install -r backend/requirements-build.txt`
|
||||||
|
- **Windows only:** also the MSVC C++ build tools and the WebView2 runtime — see
|
||||||
|
[BUILDING-WINDOWS.md](../BUILDING-WINDOWS.md) for the one-time toolchain setup.
|
||||||
|
|
||||||
|
The build is a two-step recipe on both platforms: **freeze the backend into a
|
||||||
|
sidecar folder**, then **build the app**. The only difference is which sidecar
|
||||||
|
script you run — `.sh` on macOS/Linux, `.ps1` on Windows. Each build runs on its
|
||||||
|
own OS (the app can't be cross-compiled).
|
||||||
|
|
||||||
|
### macOS / Linux
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1) Freeze the backend into a sidecar folder (from the activated backend venv)
|
||||||
|
cd backend && source .venv/bin/activate && ./build_sidecar.sh && cd ..
|
||||||
|
|
||||||
|
# 2) Build the app
|
||||||
|
cd frontend && npx tauri build
|
||||||
|
```
|
||||||
|
|
||||||
|
The installer lands at
|
||||||
|
`frontend/src-tauri/target/release/bundle/dmg/Konduktor_<version>_aarch64.dmg`
|
||||||
|
(with the `.app` beside it).
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# 1) Freeze the backend into a sidecar folder (from the activated backend venv)
|
||||||
|
cd backend; .\.venv\Scripts\Activate.ps1; .\build_sidecar.ps1; cd ..
|
||||||
|
|
||||||
|
# 2) Build the app
|
||||||
|
cd frontend; npx tauri build
|
||||||
|
```
|
||||||
|
|
||||||
|
The installers land in `frontend\src-tauri\target\release\bundle\` (an `.msi` and
|
||||||
|
an NSIS `-setup.exe`). See [BUILDING-WINDOWS.md](../BUILDING-WINDOWS.md) for the full
|
||||||
|
walkthrough and Windows-specific notes.
|
||||||
|
|
||||||
|
> **First launch — getting past the OS security prompt.** Builds are
|
||||||
|
> **ad-hoc signed, not notarized** (no paid Apple/Windows developer cert yet), so
|
||||||
|
> the OS flags them the first time. This is expected — the app isn't damaged.
|
||||||
|
>
|
||||||
|
> - **macOS:** right-click the app → **Open** → **Open** (or System Settings →
|
||||||
|
> Privacy & Security → **Open Anyway** after the first blocked attempt). If it
|
||||||
|
> still refuses — common for a `.dmg` downloaded via a browser, which macOS
|
||||||
|
> quarantines — clear the quarantine flag once from Terminal:
|
||||||
|
> ```bash
|
||||||
|
> xattr -cr /Applications/Konduktor.app
|
||||||
|
> ```
|
||||||
|
> - **Windows:** click **More info → Run anyway** past SmartScreen.
|
||||||
|
>
|
||||||
|
> The macOS `.dmg` is Apple-Silicon (`aarch64`) only.
|
||||||
|
|
||||||
|
> **Faster local builds:** `npx tauri build --debug --bundles app` skips the
|
||||||
|
> optimizer and the installer, giving you a runnable app in seconds — handy while
|
||||||
|
> iterating.
|
||||||
|
|
||||||
|
### Rebuilding after changes
|
||||||
|
|
||||||
|
Changed **backend** Python? Re-run the sidecar script for your OS
|
||||||
|
(`./build_sidecar.sh` or `.\build_sidecar.ps1`), then `npx tauri build`.
|
||||||
|
Frontend-only change? Just `npx tauri build` — it rebuilds the web app for you.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Curious about the internals or want to contribute? [CLAUDE.md](../CLAUDE.md) describes the architecture and conventions.
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# Remote libraries: a Konduktor server on your NAS
|
||||||
|
|
||||||
|
Keep your whole library — the collection file and the music — on a server, and
|
||||||
|
open it from any computer with Konduktor. Prep tracks, edit playlists, and
|
||||||
|
export sticks for your gigs without the music ever living on your performance
|
||||||
|
laptop.
|
||||||
|
|
||||||
|
The server is a small container (`server/`). It holds the library and saves it.
|
||||||
|
Playback, analysis and stem separation run on the computer you open it from,
|
||||||
|
on copies it downloads, so the server needs no GPU and does very little work.
|
||||||
|
|
||||||
|
**On the server (e.g. TrueNAS SCALE):**
|
||||||
|
|
||||||
|
1. Copy `server/compose.yaml` and `server/.env.example` (renamed to `.env`)
|
||||||
|
onto the NAS. Point the volumes at your datasets, and fill in `.env`: the
|
||||||
|
platform (`traktor` or `rekordbox`), the library file, the music folder, a
|
||||||
|
username and password, and — for a collection made on a Mac — the path
|
||||||
|
mapping (`/Users/you/Music => /music`).
|
||||||
|
2. Install it: on TrueNAS, **Apps → Discover Apps → ⋮ → Install via YAML** and
|
||||||
|
paste the compose file; anywhere else, `docker compose up -d`. A bad setting
|
||||||
|
stops the container with one clear line in its log.
|
||||||
|
|
||||||
|
**In the app:** choose **Remote** on the platform screen → **Add a remote
|
||||||
|
library** → enter the server's address (and a fallback, such as its Tailscale
|
||||||
|
address, for when you're away from home), the username and the password.
|
||||||
|
Konduktor checks the server before it saves the remote, and keeps the
|
||||||
|
password in your keychain.
|
||||||
|
|
||||||
|
Good to know:
|
||||||
|
|
||||||
|
- **One computer at a time.** If another computer has the library open,
|
||||||
|
Konduktor says who has it and offers to take over. Edits that computer
|
||||||
|
hadn't saved stay with the library, and you're asked to save or discard
|
||||||
|
them.
|
||||||
|
- **Plain HTTP.** Reach the server over your home network or a VPN
|
||||||
|
(Tailscale / WireGuard). Don't expose its port to the internet.
|
||||||
|
- **Unsaved edits live on the server** until you save. Restarting the
|
||||||
|
container drops them.
|
||||||
|
- Downloaded tracks are cached on your computer (Settings → **Remote audio**
|
||||||
|
sets the size), so a track you've prepped and then export is fetched once.
|
||||||
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 325 KiB |
|
After Width: | Height: | Size: 543 KiB |
|
After Width: | Height: | Size: 184 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 320 KiB |
|
After Width: | Height: | Size: 522 KiB |