The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
Rewrite the workflows for the Slint app, and drop the Tauri-era ones
Jareer47ad46df4160
diff --git a/.github/workflows/build.yml b/.github/workflows/build-app.ymlsimilarity index 53%rename from .github/workflows/build.ymlrename to .github/workflows/build-app.ymlindex 4af3b6da..d5bfd751 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build-app.yml@@ -1,29 +1,21 @@-name: Build App+name: Build app-# Tests the engine and builds Concat - the Slint window, `engine/crates/concat`-# - for macOS, Windows and Linux.+# Builds Concat - the Slint window, `engine/crates/concat` - for macOS,+# Windows and Linux, and uploads each as an artifact named Concat-<platform>.#-# The engine links FFmpeg and compiles whisper.cpp in, so a build needs the-# FFmpeg 7+ development libraries (headers and import libraries), cmake and a-# C++ toolchain - nothing is staged beside the binary any more. Homebrew's-# FFmpeg serves on macOS; Windows and Linux use a BtbN `shared` build, which-# ships headers, import libraries and the runtime libraries together.+# Reusable: ci.yml calls it on every push to main, release.yml on every tag.+# It is the one place the build environment is described:#-# - Pushes to main and manual runs: test, build, and upload the binaries as-# artifacts.-# - Releases: none yet. The Tauri app in desktop/ used to be packaged and-# published from here; it is deprecated and no longer built. Automatic-# alpha releases resume once the Slint window is packaged for each-# platform.+# - The engine links FFmpeg and compiles whisper.cpp in, so a build needs the+# FFmpeg 7+ development libraries (headers and import libraries), cmake, a+# C++ toolchain and libclang for bindgen. Nothing is staged beside the+# binary any more.+# - Homebrew's FFmpeg serves on macOS. Windows and Linux use a BtbN `shared`+# build, which ships headers, import libraries and the runtime libraries+# together; FFMPEG_DIR tells the bindings where it is, and the runtime+# libraries travel with the binary in the artifact.on:- workflow_dispatch:- push:- branches: [main]- tags: ["v*"]--concurrency:- group: build-${{ github.ref }}- cancel-in-progress: true+ workflow_call:env:# BtbN's autobuilds: GPL (x264 in), shared, FFmpeg 8.1.@@ -31,47 +23,8 @@ env:FFMPEG_WINDOWS: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n8.1-latest-win64-gpl-shared-8.1.zipjobs:- engine-tests:- name: Engine tests (ubuntu)- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v4- - uses: dtolnay/rust-toolchain@stable- - uses: Swatinem/rust-cache@v2- with:- workspaces: engine-- # Slint's Skia renderer links fontconfig and freetype; cpal links- # ALSA; bindgen (for the FFmpeg bindings) needs libclang; whisper.cpp- # is built by cmake.- - name: System libraries- run: |- sudo apt-get update- sudo apt-get install -y \- libfontconfig1-dev libfreetype6-dev libxkbcommon-dev libgl1-mesa-dev \- libasound2-dev libclang-dev cmake-- # Ubuntu's packaged FFmpeg is older than the 7 the engine needs, so the- # libraries come from BtbN, and FFMPEG_DIR tells the bindings where.- - name: FFmpeg development libraries- run: |- set -euo pipefail- curl -fsSL --retry 5 --retry-all-errors -o ffmpeg.tar.xz "$FFMPEG_LINUX"- mkdir -p ffmpeg-dev- tar -xf ffmpeg.tar.xz -C ffmpeg-dev --strip-components=1- echo "FFMPEG_DIR=$PWD/ffmpeg-dev" >> "$GITHUB_ENV"- echo "LD_LIBRARY_PATH=$PWD/ffmpeg-dev/lib" >> "$GITHUB_ENV"-- - run: cargo test --workspace- working-directory: engine- # -D warnings covers rustc lints too (missing_docs among them), so a- # public item without documentation fails here, not in review.- - run: cargo clippy --workspace --all-targets -- -D warnings- working-directory: engine-app:- name: App (${{ matrix.platform }})- needs: [engine-tests]+ name: ${{ matrix.platform }}strategy:fail-fast: falsematrix:@@ -93,14 +46,17 @@ jobs:with:workspaces: engine+ # Slint's Skia renderer links fontconfig and freetype; cpal links+ # ALSA; bindgen needs libclang; whisper.cpp is built by cmake.- name: System libraries (Linux)if: matrix.platform == 'linux'run: |sudo apt-get updatesudo apt-get install -y \libfontconfig1-dev libfreetype6-dev libxkbcommon-dev libgl1-mesa-dev \- libasound2-dev libclang-dev cmake+ libgtk-3-dev libasound2-dev libclang-dev cmake+ # Ubuntu's packaged FFmpeg is older than the 7 the engine needs.- name: FFmpeg development libraries (Linux)if: matrix.platform == 'linux'run: |@@ -115,8 +71,8 @@ jobs:if: matrix.platform == 'macos'run: brew install ffmpeg cmake- # bindgen needs libclang on Windows too; LLVM from chocolatey provides- # it. The BtbN zip unpacks to one top-level folder.+ # LLVM from chocolatey provides libclang. The BtbN zip unpacks to one+ # top-level folder.- name: FFmpeg development libraries (Windows)if: matrix.platform == 'windows'shell: pwsh@@ -135,16 +91,19 @@ jobs:- run: cargo build --profile app -p concatworking-directory: engine- # The binary, plus the FFmpeg runtime libraries it loads on the- # platforms where those are not the system's.- - name: Stage the build (unix)+ # The binary, plus the FFmpeg runtime libraries it loads where those+ # are not the system's.+ - name: Stage (unix)if: matrix.platform != 'windows'run: |set -euo pipefailmkdir -p stagecp engine/target/app/concat stage/- if [ -d ffmpeg-dev/lib ]; then mkdir -p stage/lib && cp -a ffmpeg-dev/lib/*.so* stage/lib/; fi- - name: Stage the build (Windows)+ if [ -d ffmpeg-dev/lib ]; then+ mkdir -p stage/lib+ cp -a ffmpeg-dev/lib/*.so* stage/lib/+ fi+ - name: Stage (Windows)if: matrix.platform == 'windows'shell: pwshrun: |diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 00000000..67c1848c--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,61 @@+name: CI++# The engine's tests and lints on every push and pull request, and the app+# built for all three platforms on every push to main (artifacts, not a+# release - see release.yml for those).+on:+ push:+ branches: [main]+ pull_request:+ workflow_dispatch:++concurrency:+ group: ci-${{ github.ref }}+ cancel-in-progress: true++jobs:+ engine:+ name: Engine tests and lints+ runs-on: ubuntu-latest+ env:+ FFMPEG_LINUX: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n8.1-latest-linux64-gpl-shared-8.1.tar.xz+ steps:+ - uses: actions/checkout@v4+ - uses: dtolnay/rust-toolchain@stable+ - uses: Swatinem/rust-cache@v2+ with:+ workspaces: engine++ # Slint's Skia renderer links fontconfig and freetype; cpal links+ # ALSA; bindgen needs libclang; whisper.cpp is built by cmake; the+ # file dialogs link GTK on Linux.+ - name: System libraries+ run: |+ sudo apt-get update+ sudo apt-get install -y \+ libfontconfig1-dev libfreetype6-dev libxkbcommon-dev libgl1-mesa-dev \+ libgtk-3-dev libasound2-dev libclang-dev cmake++ # Ubuntu's packaged FFmpeg is older than the 7 the engine needs, so the+ # libraries come from BtbN, and FFMPEG_DIR tells the bindings where.+ - name: FFmpeg development libraries+ run: |+ set -euo pipefail+ curl -fsSL --retry 5 --retry-all-errors -o ffmpeg.tar.xz "$FFMPEG_LINUX"+ mkdir -p ffmpeg-dev+ tar -xf ffmpeg.tar.xz -C ffmpeg-dev --strip-components=1+ echo "FFMPEG_DIR=$PWD/ffmpeg-dev" >> "$GITHUB_ENV"+ echo "LD_LIBRARY_PATH=$PWD/ffmpeg-dev/lib" >> "$GITHUB_ENV"++ - run: cargo test --workspace+ working-directory: engine+ # -D warnings covers rustc lints too (missing_docs among them), so a+ # public item without documentation fails here, not in review.+ - run: cargo clippy --workspace --all-targets -- -D warnings+ working-directory: engine++ app:+ name: Build app+ if: github.event_name != 'pull_request'+ needs: [engine]+ uses: ./.github/workflows/build-app.ymldiff --git a/.github/workflows/ffmpeg.yml b/.github/workflows/ffmpeg.ymldeleted file mode 100644index c23a4f91..00000000--- a/.github/workflows/ffmpeg.yml+++ /dev/null@@ -1,287 +0,0 @@-name: Build FFmpeg--# Builds the cut-down FFmpeg that Concat ships.-#-# Run by hand, not on every push. The output only changes when the version or-# the feature list below changes, which is roughly never - so this produces an-# artifact you download once and commit to the release, rather than something-# that runs on your time.-#-# Why not build locally: the reduced build takes 20-35 minutes on a 4-core-# machine, and most of that is `configure` spawning thousands of tiny probes,-# which Windows is bad at. Here it runs while you do something else, and the-# exact source and configure line are recorded in the log.-on:- workflow_dispatch:- inputs:- version:- description: "FFmpeg release tag (e.g. n8.1.2)"- required: true- default: "n8.1.2"--jobs:- windows:- runs-on: windows-latest- defaults:- run:- shell: msys2 {0}-- steps:- - uses: msys2/setup-msys2@v2- with:- msystem: UCRT64- update: true- # nasm is not optional: without it the x86 assembly is skipped and- # decoding runs several times slower.- install: >-- base-devel- git- diffutils- make- pkgconf- nasm- yasm- mingw-w64-ucrt-x86_64-gcc- mingw-w64-ucrt-x86_64-x264-- - name: Fetch FFmpeg source- run: |- git clone --depth 1 --branch "${{ inputs.version }}" \- https://github.com/FFmpeg/FFmpeg.git ffmpeg- cd ffmpeg && git rev-parse HEAD > ../SOURCE-COMMIT.txt-- - name: Configure- run: |- cd ffmpeg- #- # Everything off, then only what Concat actually invokes turned back- # on. This is where the size comes from: a full avcodec carries some- # five hundred codecs, and an editor opens perhaps a dozen.- #- # If you add a format to the app, add it here too - the failure mode- # is "could not open", not a crash.- #- # `--extra-ldflags=-static` is what makes the result portable. Without- # it the exes link against the MSYS2 libx264/zlib/winpthread DLLs and- # run only on the machine that built them.- #- # `--enable-zlib` is not optional under --disable-autodetect: that- # flag turns off every external library that was not named, and PNG- # silently stops working without zlib.- #- # `rawvideo` (decoder *and* encoder) is what the exporter pipes: see- # concat-media/src/encode.rs, which feeds frames in as- # `-f rawvideo -pix_fmt rgba -i -`. Enabling only the demuxer of that- # name is not enough, and the failure reads as "no decoder found".- ./configure \- --prefix=../out \- --pkg-config-flags=--static \- --extra-ldflags=-static \- --disable-everything \- --disable-doc \- --disable-debug \- --disable-network \- --disable-autodetect \- --disable-ffplay \- --disable-shared \- --enable-static \- --enable-small \- --enable-gpl \- --enable-libx264 \- --enable-zlib \- --enable-decoder=rawvideo,h264,hevc,vp8,vp9,av1,mpeg4,mjpeg,prores,dnxhd,png,webp,bmp,tiff,gif,aac,mp3,flac,opus,vorbis,alac,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le \- --enable-encoder=rawvideo,libx264,aac,mjpeg,png,pcm_s16le \- --enable-demuxer=mov,matroska,avi,mp3,wav,flac,ogg,aac,image2,gif,rawvideo,pcm_s16le,concat \- --enable-muxer=mp4,mov,mp3,wav,ipod,mjpeg,image2,rawvideo,pcm_s16le,null \- --enable-parser=h264,hevc,vp8,vp9,av1,aac,mpegaudio,flac,vorbis,png,mjpeg \- --enable-bsf=h264_mp4toannexb,hevc_mp4toannexb,aac_adtstoasc \- --enable-protocol=file,pipe \- --enable-filter=scale,tile,fps,format,null,copy,setpts,trim,transpose,crop,overlay \- --enable-filter=fade,hue,colorchannelmixer,negate,unsharp,gblur,boxblur,colortemperature \- --enable-filter=vibrance,eq,vignette,noise,lutrgb,pixelize,lenscorrection \- --enable-filter=split,blend,hstack,hflip \- --enable-filter=aresample,asetrate,atempo,aformat,anull,atrim,asetpts,adelay,amix,apad,afade,volume \- --enable-filter=highpass,lowpass,equalizer,bass,treble,compand,deesser,aecho,alimiter,aphaser,flanger \- --enable-filter=abuffer,abuffersink,buffer,buffersink-- - name: Build- run: cd ffmpeg && make -j"$(nproc)" && make install-- - name: Verify it can do the work- run: |- set -e- BIN=out/bin- "$BIN/ffmpeg.exe" -hide_banner -version | head -1- "$BIN/ffprobe.exe" -hide_banner -version | head -1-- # Not a smoke test of the binary - a check that the *feature list*- # above is sufficient. Each of these mirrors something the app does.- #- # Fixtures are raw bytes rather than `-f lavfi -i testsrc2=...`,- # because lavfi lives in libavdevice and --disable-everything removes- # it. A verify step built on lavfi fails at its first line on a build- # that is in fact perfectly good - which reads as "the build is- # broken" and hides whatever the real gaps were.- head -c 9216000 /dev/zero > frames.raw # 30 frames of 320x240 rgba- head -c 384000 /dev/zero > tone.pcm # 2s of 48k stereo s16-- # Picture: exactly how concat-media/src/encode.rs drives the exporter.- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y \- -f rawvideo -pix_fmt rgba -s 320x240 -r 30 -i frames.raw \- -c:v libx264 -preset veryfast -crf 20 -pix_fmt yuv420p \- -movflags +faststart probe.mp4- "$BIN/ffprobe.exe" -v error -show_streams -show_format -of json probe.mp4 > /dev/null- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y -i probe.mp4 \- -vf "fps=4,scale=-2:72,tile=4x1" -frames:v 1 -f mjpeg strip.jpg- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y -i probe.mp4 \- -f rawvideo -pix_fmt rgba - > /dev/null-- # Stills - this is the path that silently died without zlib.- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y -i probe.mp4 -frames:v 1 still.png- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y -i still.png \- -frames:v 1 -f rawvideo -pix_fmt rgba - > /dev/null-- # Sound: the preview render, then the full export mix and mux.- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y \- -f s16le -ar 48000 -ac 2 -i tone.pcm -c:a aac tone.m4a-- # The playback engine's decode: a clip span straight to raw PCM.- # See desktop/src-tauri/src/playback.rs - this needs the pcm_s16le- # *muxer*, easy to forget because the demuxer of the same name is- # enabled for a different reason.- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y -ss 0 -t 1 -i tone.m4a -vn \- -af "aresample=48000,aformat=sample_fmts=s16:channel_layouts=stereo" \- -f s16le span.pcm- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y -i tone.m4a -vn \- -af "aresample=48000,asetrate=52000,aresample=48000,atempo=0.92,highpass=f=85,equalizer=f=4200:t=q:w=0.8:g=3,compand=attacks=0.01:decays=0.18:points=-80/-80|0/-1.5,deesser=i=0.3,aecho=0.8:0.82:38:0.02,alimiter=limit=0.94,aphaser=type=t:speed=1.2,flanger=delay=2:depth=4,bass=g=5,treble=g=4" \- -ac 2 -ar 48000 -c:a pcm_s16le -f wav filtered.wav- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y -i tone.m4a -i tone.m4a \- -filter_complex "[0:a]atrim=start=0:duration=1,asetpts=PTS-STARTPTS,volume=1.5,afade=t=in:st=0:d=0.2,adelay=100:all=1[a0];[1:a]atrim=start=0:duration=1,asetpts=PTS-STARTPTS[a1];[a0][a1]amix=inputs=2:normalize=0,apad,atrim=duration=2[out]" \- -map "[out]" -c:a aac -b:a 192k mix.m4a- "$BIN/ffmpeg.exe" -hide_banner -loglevel error -y -i probe.mp4 -i mix.m4a \- -c:v copy -c:a copy -shortest -movflags +faststart final.mp4-- # Portable, or it only runs on the machine that built it.- if ldd "$BIN/ffmpeg.exe" | grep -iv '/c/windows' | grep -q '=>'; then- echo "not self-contained:"; ldd "$BIN/ffmpeg.exe" | grep -iv '/c/windows'; exit 1- fi- echo "every path the app uses is present, and the build is self-contained"-- - name: Report size- run: |- ls -l out/bin- du -sh out/bin-- - uses: actions/upload-artifact@v4- with:- name: ffmpeg-${{ inputs.version }}-win64- path: |- out/bin/ffmpeg.exe- out/bin/ffprobe.exe- SOURCE-COMMIT.txt- if-no-files-found: error-- # The macOS half of the trimmed pair, so the build can one day replace the- # full static downloads in build.yml on both platforms at once. Same- # configure list as Windows; the differences are only what the platform- # forces: no `-static` (macOS cannot fully static-link against libSystem),- # x264 from Homebrew, `otool` instead of `ldd` for the portability check.- macos:- runs-on: macos-latest- steps:- - name: Tools- run: brew install nasm x264-- - name: Fetch FFmpeg source- run: |- git clone --depth 1 --branch "${{ inputs.version }}" \- https://github.com/FFmpeg/FFmpeg.git ffmpeg- cd ffmpeg && git rev-parse HEAD > ../SOURCE-COMMIT.txt-- - name: Configure- run: |- cd ffmpeg- ./configure \- --prefix=../out \- --pkg-config-flags=--static \- --disable-everything \- --disable-doc \- --disable-debug \- --disable-network \- --disable-autodetect \- --disable-ffplay \- --disable-shared \- --enable-static \- --enable-small \- --enable-gpl \- --enable-libx264 \- --enable-zlib \- --enable-decoder=rawvideo,h264,hevc,vp8,vp9,av1,mpeg4,mjpeg,prores,dnxhd,png,webp,bmp,tiff,gif,aac,mp3,flac,opus,vorbis,alac,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le \- --enable-encoder=rawvideo,libx264,aac,mjpeg,png,pcm_s16le \- --enable-demuxer=mov,matroska,avi,mp3,wav,flac,ogg,aac,image2,gif,rawvideo,pcm_s16le,concat \- --enable-muxer=mp4,mov,mp3,wav,ipod,mjpeg,image2,rawvideo,pcm_s16le,null \- --enable-parser=h264,hevc,vp8,vp9,av1,aac,mpegaudio,flac,vorbis,png,mjpeg \- --enable-bsf=h264_mp4toannexb,hevc_mp4toannexb,aac_adtstoasc \- --enable-protocol=file,pipe \- --enable-filter=scale,tile,fps,format,null,copy,setpts,trim,transpose,crop,overlay \- --enable-filter=fade,hue,colorchannelmixer,negate,unsharp,gblur,boxblur,colortemperature \- --enable-filter=vibrance,eq,vignette,noise,lutrgb,pixelize,lenscorrection \- --enable-filter=split,blend,hstack,hflip \- --enable-filter=aresample,asetrate,atempo,aformat,anull,atrim,asetpts,adelay,amix,apad,afade,volume \- --enable-filter=highpass,lowpass,equalizer,bass,treble,compand,deesser,aecho,alimiter,aphaser,flanger \- --enable-filter=abuffer,abuffersink,buffer,buffersink-- - name: Build- run: cd ffmpeg && make -j"$(sysctl -n hw.ncpu)" && make install-- - name: Verify it can do the work- run: |- set -e- BIN=out/bin- "$BIN/ffmpeg" -hide_banner -version | head -1- "$BIN/ffprobe" -hide_banner -version | head -1-- head -c 9216000 /dev/zero > frames.raw- head -c 384000 /dev/zero > tone.pcm-- "$BIN/ffmpeg" -hide_banner -loglevel error -y \- -f rawvideo -pix_fmt rgba -s 320x240 -r 30 -i frames.raw \- -c:v libx264 -preset veryfast -crf 20 -pix_fmt yuv420p \- -movflags +faststart probe.mp4- "$BIN/ffprobe" -v error -show_streams -show_format -of json probe.mp4 > /dev/null- "$BIN/ffmpeg" -hide_banner -loglevel error -y -i probe.mp4 \- -vf "fps=4,scale=-2:72,tile=4x1" -frames:v 1 -f mjpeg strip.jpg- "$BIN/ffmpeg" -hide_banner -loglevel error -y -i probe.mp4 \- -f rawvideo -pix_fmt rgba - > /dev/null- "$BIN/ffmpeg" -hide_banner -loglevel error -y -i probe.mp4 -frames:v 1 still.png- "$BIN/ffmpeg" -hide_banner -loglevel error -y -i still.png \- -frames:v 1 -f rawvideo -pix_fmt rgba - > /dev/null- "$BIN/ffmpeg" -hide_banner -loglevel error -y \- -f s16le -ar 48000 -ac 2 -i tone.pcm -c:a aac tone.m4a- "$BIN/ffmpeg" -hide_banner -loglevel error -y -ss 0 -t 1 -i tone.m4a -vn \- -af "aresample=48000,aformat=sample_fmts=s16:channel_layouts=stereo" \- -f s16le span.pcm- "$BIN/ffmpeg" -hide_banner -loglevel error -y -i tone.m4a -i tone.m4a \- -filter_complex "[0:a]atrim=start=0:duration=1,asetpts=PTS-STARTPTS,volume=1.5,afade=t=in:st=0:d=0.2,adelay=100:all=1[a0];[1:a]atrim=start=0:duration=1,asetpts=PTS-STARTPTS[a1];[a0][a1]amix=inputs=2:normalize=0,apad,atrim=duration=2[out]" \- -map "[out]" -c:a aac -b:a 192k mix.m4a- "$BIN/ffmpeg" -hide_banner -loglevel error -y -i probe.mp4 -i mix.m4a \- -c:v copy -c:a copy -shortest -movflags +faststart final.mp4-- # Portable means system frameworks only - a Homebrew dylib in this- # list would bind the binary to the machine that built it.- if otool -L "$BIN/ffmpeg" | tail -n +2 | grep -v "/usr/lib\|/System/Library"; then- echo "not self-contained (see above)"; exit 1- fi- echo "every path the app uses is present, and the build is self-contained"-- - name: Report size- run: ls -l out/bin && du -sh out/bin-- - uses: actions/upload-artifact@v4- with:- name: ffmpeg-${{ inputs.version }}-macos-arm64- path: |- out/bin/ffmpeg- out/bin/ffprobe- SOURCE-COMMIT.txt- if-no-files-found: errordiff --git a/.github/workflows/nix.yml b/.github/workflows/nix.ymldeleted file mode 100644index 4649dfd4..00000000--- a/.github/workflows/nix.yml+++ /dev/null@@ -1,29 +0,0 @@-# Validates the Nix flake (#7). The flake still packages the deprecated Tauri-# app in desktop/, which no longer builds against the engine - so this runs-# only when the flake or that tree changes, until the flake packages the-# Slint window instead.-name: Nix--on:- workflow_dispatch:- push:- paths:- - "flake.nix"- - "flake.lock"- - ".github/workflows/nix.yml"- - "desktop/**"- pull_request:- paths:- - "flake.nix"- - "flake.lock"- - ".github/workflows/nix.yml"- - "desktop/**"--jobs:- build:- runs-on: ubuntu-latest- steps:- - uses: actions/checkout@v4- - uses: DeterminateSystems/nix-installer-action@v16- - name: Build the flake package- run: nix build .#concat --print-build-logsdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 00000000..4e24de8b--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,54 @@+name: Release++# Pushing a tag that starts with v (v0.3.0, v0.3.0-alpha.1, ...) builds the+# app for all three platforms and publishes a GitHub release under that tag+# with one archive per platform. A tag containing a hyphen is a pre-release.+#+# Archives rather than installers for now: the Slint window is a single+# binary plus, on Windows and Linux, the FFmpeg runtime libraries beside it.+# Signed installers and bundles are the next packaging step.+on:+ push:+ tags: ["v*"]++jobs:+ build:+ uses: ./.github/workflows/build-app.yml++ publish:+ name: Publish release+ needs: [build]+ runs-on: ubuntu-latest+ permissions:+ contents: write+ steps:+ - uses: actions/download-artifact@v4+ with:+ path: bundles++ - name: Pack one archive per platform+ run: |+ set -euo pipefail+ mkdir -p out+ tag="${GITHUB_REF_NAME}"+ (cd bundles/Concat-macos && tar -czf "../../out/Concat-${tag}-macos-arm64.tar.gz" .)+ (cd bundles/Concat-linux && tar -czf "../../out/Concat-${tag}-linux-x86_64.tar.gz" .)+ (cd bundles/Concat-windows && zip -qr "../../out/Concat-${tag}-windows-x86_64.zip" .)+ ls -l out++ - uses: softprops/action-gh-release@v2+ with:+ name: Concat ${{ github.ref_name }}+ prerelease: ${{ contains(github.ref_name, '-') }}+ generate_release_notes: true+ body: |+ Concat is AGPL-3.0-or-later, with a plugin exception for Concat API+ plugins ([LICENSE-EXCEPTIONS.md](https://github.com/jub0t/Concat/blob/main/LICENSE-EXCEPTIONS.md)).+ The binaries link FFmpeg (GPL builds with x264; the Windows and+ Linux archives carry its runtime libraries), compile in whisper.cpp+ (MIT), and statically link sherpa-onnx with GPL-3.0 espeak-ng -+ sources and licences in+ [THIRD_PARTY_NOTICES.md](https://github.com/jub0t/Concat/blob/main/THIRD_PARTY_NOTICES.md).+ Slint is used under its GPL-3.0-only option.+ fail_on_unmatched_files: true+ files: out/*diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 732b5bff..f304396c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,9 @@ behaviour.`ffmpeg`, `ffprobe` or `whisper-cli` process any more, so a build is onebinary with no tools to stage beside it. Seeks are frame-accurate andevery decoded frame carries its real timestamp.+- Releases are archives now, built by the `release.yml` workflow from a+ pushed `v*` tag: one binary per platform, with FFmpeg's runtime libraries+ beside it on Windows and Linux. Installers return with packaging.- The editor window is being rebuilt in Slint as the `concat` crate insidethe engine workspace: a native Rust window with no web view, embedding itsown fonts and effect previews. It is not what releases ship yet — thediff --git a/engine/README.md b/engine/README.mdindex 947aea60..abb5faf8 100644--- a/engine/README.md+++ b/engine/README.md@@ -45,7 +45,7 @@ toolchain for whisper.cpp. The window builds with Slint'sSkia renderer by default; `--no-default-features --features wgpu` swaps inFemtoVG over wgpu, and the two are meant to be compared, not chosen once.On Linux, Skia needs the fontconfig and freetype headers at build time (see-the engine job in `.github/workflows/build.yml` for the package list).+`.github/workflows/build-app.yml` for the package list).## Reading this codebase colddiff --git a/scripts/generate-ipc-types.sh b/scripts/generate-ipc-types.shdeleted file mode 100755index a5ad2fd1..00000000--- a/scripts/generate-ipc-types.sh+++ /dev/null@@ -1,24 +0,0 @@-#!/usr/bin/env bash-# Regenerates desktop/src/lib/generated/ from the Rust wire types.-#-# ts-rs exports each #[ts(export)] type when its crate's tests run with the-# `types` feature on; TS_RS_EXPORT_DIR aims all of them at one directory.-# CI runs this and fails on `git diff`, so the committed files can never-# drift from the Rust source of truth.-#-# Usage: scripts/generate-ipc-types.sh [engine|host|all]-set -euo pipefail--root="$(cd "$(dirname "$0")/.." && pwd)"-export TS_RS_EXPORT_DIR="$root/desktop/src/lib/generated"--part="${1:-all}"--if [ "$part" = "engine" ] || [ "$part" = "all" ]; then- (cd "$root/engine" && cargo test -p concat-project -p concat-export \- --features concat-project/types,concat-export/types export_bindings)-fi--if [ "$part" = "host" ] || [ "$part" = "all" ]; then- (cd "$root/desktop/src-tauri" && cargo test --features types export_bindings)-fi