Split any YouTube song into stems
TypeScript
feat: linux packaging (AppImage+deb x64, CI job, AppImage-gated updater)
VinewZ772ffe1937ba
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex a921acc..b6278cd 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -19,6 +19,8 @@ jobs:platform: mac- os: windows-latestplatform: win+ - os: ubuntu-22.04+ platform: linuxruns-on: ${{ matrix.os }}steps:- name: Checkout@@ -38,8 +40,8 @@ jobs:if: steps.install.outcome == 'failure'run: npm install- - name: Fetch ffmpeg (mac)- if: matrix.platform == 'mac'+ - name: Fetch ffmpeg (mac/linux)+ if: matrix.platform == 'mac' || matrix.platform == 'linux'run: bash scripts/fetch-ffmpeg.sh- name: Fetch ffmpeg (win)@@ -94,4 +96,6 @@ jobs:release/*.dmgrelease/*.exerelease/*.zip+ release/*.AppImage+ release/*.debif-no-files-found: errordiff --git a/README.md b/README.mdindex f3c3e84..7d2afc4 100644--- a/README.md+++ b/README.md@@ -6,7 +6,7 @@ Search YouTube or paste a link, pick the instruments you want, and play the resuEverything runs locally — no accounts, no cloud, no API keys.- + <p align="center"><img src="docs/stemkit.png" alt="StemKit splitting Queen's Bohemian Rhapsody into six stems — video player, presets and color-coded waveform lanes" width="100%" />@@ -28,6 +28,7 @@ Everything runs locally — no accounts, no cloud, no API keys.Grab installers from [Releases](https://github.com/danvelope/stemkit/releases):- **macOS** (Apple Silicon): `StemKit-x.y.z-mac-arm64.dmg`- **Windows**: `StemKit-Setup-x.y.z.exe` (installer) or portable `.zip`+- **Linux** (x64): `StemKit-x.y.z-linux-x86_64.AppImage` (portable, self-updating) or `StemKit-x.y.z-linux-amd64.deb`First launch creates a private Python environment and downloads the separation engine (~2 GB) — one time. ffmpeg is bundled — nothing else to install.@@ -42,7 +43,7 @@ Optional quality upgrades live behind a gear icon in the app (Settings), each wi## Requirements-- **macOS 12+** (Apple Silicon) or **Windows 10/11** (x64)+- **macOS 12+** (Apple Silicon) or **Windows 10/11** (x64) or **Linux x64** (Ubuntu 22.04+ or equivalent; NVIDIA driver for GPU splits)- No manual installs: if no Python 3.9+ is detected, StemKit downloads a private runtime (python-build-standalone) during first-launch setup- Node.js 20+ only for building from source@@ -58,14 +59,17 @@ Wrong Node version? Scripts auto-relaunch with a suitable one (nvm / nvm-windows## Build & release```bash-bash scripts/fetch-ffmpeg.sh # mac (one time)+bash scripts/fetch-ffmpeg.sh # mac/linux (one time)powershell scripts/fetch-ffmpeg.ps1 # windows (one time)npm run dist # mac dmg -> release/npm run dist:win # windows nsis+zip -> release/+npm run dist:linux # linux AppImage+deb (x64) -> release/npm run dist:all # both (on the matching OS)```+> **Linux**: building the `.deb` needs `dpkg` + `fakeroot` on the host; running the `.AppImage` needs FUSE. In-app self-update works on the AppImage — `.deb` installs update by re-downloading.+Releases are built by GitHub Actions:- push a tag `v*` → binaries attach to a draft GitHub Release- `workflow_dispatch` ("Run workflow") → on-demand artifacts on the run pagediff --git a/electron-builder.yml b/electron-builder.ymlindex 07bb0c3..881ca0c 100644--- a/electron-builder.yml+++ b/electron-builder.yml@@ -37,3 +37,35 @@ win:nsis:oneClick: trueperMachine: false+linux:+ icon: build/icon.png+ category: AudioVideo+ executableName: stemkit+ vendor: danvelope+ maintainer: danvelope+ synopsis: Local YouTube stem splitter and player+ description: Split songs into isolated stems locally — vocals, drums, bass and more.+ target:+ - target: AppImage+ arch:+ - x64+ - target: deb+ arch:+ - x64+ desktop:+ StartupWMClass: stemkit+ extraResources:+ - from: extras/ffmpeg-linux/ffmpeg+ to: ffmpeg/ffmpeg+deb:+ depends:+ - libgtk-3-0+ - libnotify4+ - libnss3+ - libxss1+ - libxtst6+ - xdg-utils+ - libatspi2.0-0+ - libuuid1+ - libsecret-1-0+ - libasound2diff --git a/package.json b/package.jsonindex 8692827..63b9da6 100644--- a/package.json+++ b/package.json@@ -17,6 +17,7 @@"typecheck": "node scripts/run.cjs typecheck","dist": "node scripts/run.cjs dist","dist:win": "node scripts/run.cjs dist:win",+ "dist:linux": "node scripts/run.cjs dist:linux","dist:all": "node scripts/run.cjs dist:all"},"dependencies": {diff --git a/scripts/run.cjs b/scripts/run.cjsindex 018d1d0..bda2e58 100644--- a/scripts/run.cjs+++ b/scripts/run.cjs@@ -83,6 +83,7 @@ const STEPS = {'typecheck:web': [['tsc', '--noEmit', '-p', 'tsconfig.web.json']],dist: [['electron-vite', 'build'], ['electron-builder', '--mac']],'dist:win': [['electron-vite', 'build'], ['electron-builder', '--win']],+ 'dist:linux': [['electron-vite', 'build'], ['electron-builder', '--linux']],'dist:all': [['electron-vite', 'build'], ['electron-builder', '--mac', '--win']]}@@ -148,7 +149,7 @@ function runSteps(steps) {// commands that produce or run the app need the bundled ffmpeg present;// typecheck and plain build do not-const NEEDS_FFMPEG = new Set(['dev', 'dist', 'dist:win', 'dist:all'])+const NEEDS_FFMPEG = new Set(['dev', 'dist', 'dist:win', 'dist:linux', 'dist:all'])function main() {const cmd = process.argv[2]diff --git a/src/main/updater.ts b/src/main/updater.tsindex 253e7be..b58ed5a 100644--- a/src/main/updater.ts+++ b/src/main/updater.ts@@ -40,6 +40,11 @@ export function initUpdater(): void {}})+ // electron-updater only supports AppImage on linux — deb installs update+ // by re-downloading, so no automatic checks there (the handlers above+ // stay registered and simply report no update)+ if (process.platform === 'linux' && !process.env.APPIMAGE) return+setTimeout(() => {autoUpdater.checkForUpdatesAndNotify().catch(() => {})}, 5000)