Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

Build and release for every platform and architecture

Jareer3c6d476346e0
diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml
index 98ce2e2e..f3609587 100644
--- a/.github/workflows/build-app.yml
+++ b/.github/workflows/build-app.yml
@@ -1,43 +1,99 @@
name: Build app
-# Builds Concat - the Slint window, `engine/crates/concat` - for macOS,
-# Windows and Linux, and uploads each as an artifact named Concat-<platform>.
+# Builds Concat - the Slint window, `engine/crates/concat` - for every
+# platform and architecture it ships on, each on a runner of that
+# architecture so nothing is cross-compiled, and uploads one artifact per
+# target:
#
-# 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:
+# macOS arm64 (Apple silicon) x86_64 (Intel) -> Concat.dmg
+# Linux x86_64 aarch64 -> Concat-*.tar.gz
+# Windows x86_64 aarch64 -> Concat-*.zip
+#
+# Reusable: nightly.yml calls it on every push to main, release.yml on every
+# tag. It is the one place the build environment is described:
#
# - 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.
+# C++ toolchain and libclang for bindgen. sherpa-onnx is a prebuilt static
+# library its crate downloads for the target.
+# - Homebrew's FFmpeg serves on macOS and travels with the app: the dylibs
+# are copied into the bundle and the binary's load paths rewritten, so the
+# .dmg runs on a Mac with nothing installed. Windows and Linux use a BtbN
+# `shared` build - headers, import libraries and runtime libraries in one
+# archive - and the runtime libraries ship beside the binary; on Linux the
+# binary carries an rpath to find them there.
+# - The app is signed and notarised on macOS when the signing secrets are
+# set on the repository, and ad-hoc signed when they are not, so a build
+# from a fork still opens (with Gatekeeper's warning).
+#
+# The six targets are a matrix so one fails without taking the rest down;
+# `fail-fast` is off for the same reason.
on:
workflow_call:
+ secrets:
+ APPLE_CERTIFICATE_P12:
+ description: Base64 of a Developer ID Application .p12
+ required: false
+ APPLE_CERTIFICATE_PASSWORD:
+ required: false
+ APPLE_SIGNING_IDENTITY:
+ description: "The identity to sign with, e.g. Developer ID Application: Name (TEAMID)"
+ required: false
+ APPLE_ID:
+ required: false
+ APPLE_TEAM_ID:
+ required: false
+ APPLE_APP_PASSWORD:
+ description: An app-specific password for notarytool
+ required: false
env:
- # BtbN's autobuilds: GPL (x264 in), shared, FFmpeg 8.1.
- FFMPEG_LINUX: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n8.1-latest-linux64-gpl-shared-8.1.tar.xz
- FFMPEG_WINDOWS: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n8.1-latest-win64-gpl-shared-8.1.zip
+ CARGO_TERM_COLOR: always
+ # BtbN's autobuilds: GPL (x264 in), shared, FFmpeg 8.1, one per arch.
+ FFMPEG_RELEASE: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest
+ FFMPEG_VERSION: 8.1
+ # Oldest macOS the bundles run on. Apple silicon Macs all run newer than
+ # this; it is the Intel floor.
+ MACOSX_DEPLOYMENT_TARGET: "12.0"
jobs:
app:
- name: ${{ matrix.platform }}
+ name: ${{ matrix.platform }}-${{ matrix.arch }}
strategy:
fail-fast: false
matrix:
include:
- platform: macos
- os: macos-latest
- - platform: windows
- os: windows-latest
+ arch: arm64
+ os: macos-15
+ target: aarch64-apple-darwin
+ - platform: macos
+ arch: x86_64
+ os: macos-15-intel
+ target: x86_64-apple-darwin
# 22.04, not latest: the binary links the build machine's glibc,
# so the oldest supported runner is what keeps it runnable on
# older distributions.
- platform: linux
+ arch: x86_64
os: ubuntu-22.04
+ target: x86_64-unknown-linux-gnu
+ ffmpeg: linux64
+ - platform: linux
+ arch: aarch64
+ os: ubuntu-22.04-arm
+ target: aarch64-unknown-linux-gnu
+ ffmpeg: linuxarm64
+ - platform: windows
+ arch: x86_64
+ os: windows-2022
+ target: x86_64-pc-windows-msvc
+ ffmpeg: win64
+ - platform: windows
+ arch: aarch64
+ os: windows-11-arm
+ target: aarch64-pc-windows-msvc
+ ffmpeg: winarm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
@@ -45,9 +101,20 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
workspaces: engine
+ key: ${{ matrix.target }}
+ - name: Read the version
+ id: version
+ shell: bash
+ run: |
+ version=$(sed -n 's/^version = "\(.*\)"/\1/p' engine/Cargo.toml | head -1)
+ echo "version=$version" >> "$GITHUB_OUTPUT"
+ echo "Building Concat $version for ${{ matrix.target }}"
+
+ # ── Linux ──────────────────────────────────────────────────────────
# Slint's Skia renderer links fontconfig and freetype; cpal links
- # ALSA; bindgen needs libclang; whisper.cpp is built by cmake.
+ # ALSA; bindgen needs libclang; whisper.cpp is built by cmake; the
+ # file dialogs link GTK.
- name: System libraries (Linux)
if: matrix.platform == 'linux'
run: |
@@ -61,58 +128,218 @@ jobs:
if: matrix.platform == 'linux'
run: |
set -euo pipefail
- curl -fsSL --retry 5 --retry-all-errors -o ffmpeg.tar.xz "$FFMPEG_LINUX"
+ url="$FFMPEG_RELEASE/ffmpeg-n$FFMPEG_VERSION-latest-${{ matrix.ffmpeg }}-gpl-shared-$FFMPEG_VERSION.tar.xz"
+ curl -fsSL --retry 5 --retry-all-errors -o ffmpeg.tar.xz "$url"
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"
+ {
+ echo "FFMPEG_DIR=$PWD/ffmpeg-dev"
+ echo "LD_LIBRARY_PATH=$PWD/ffmpeg-dev/lib"
+ # The shipped binary finds the libraries beside itself, in lib/.
+ echo "RUSTFLAGS=-C link-arg=-Wl,-rpath,\$ORIGIN/lib"
+ } >> "$GITHUB_ENV"
+ # ── macOS ──────────────────────────────────────────────────────────
- name: FFmpeg development libraries (macOS)
if: matrix.platform == 'macos'
- run: brew install ffmpeg cmake
+ run: brew install ffmpeg cmake dylibbundler
- # LLVM from chocolatey provides libclang. The BtbN zip unpacks to one
- # top-level folder.
+ # ── Windows ────────────────────────────────────────────────────────
+ # libclang for bindgen. Chocolatey's LLVM is x64; the arm64 runner
+ # takes LLVM's own Windows-on-Arm installer. The BtbN zip unpacks to
+ # one top-level folder.
- name: FFmpeg development libraries (Windows)
if: matrix.platform == 'windows'
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
- choco install llvm -y --no-progress
- curl.exe -fsSL --retry 5 --retry-all-errors -o ffmpeg-win.zip "$env:FFMPEG_WINDOWS"
+ if ("${{ matrix.arch }}" -eq "aarch64") {
+ $llvm = "21.1.0"
+ curl.exe -fsSL --retry 5 --retry-all-errors -o llvm.exe "https://github.com/llvm/llvm-project/releases/download/llvmorg-$llvm/LLVM-$llvm-woa64.exe"
+ Start-Process -Wait -FilePath .\llvm.exe -ArgumentList "/S"
+ } else {
+ choco install llvm -y --no-progress
+ }
+ $url = "$env:FFMPEG_RELEASE/ffmpeg-n$env:FFMPEG_VERSION-latest-${{ matrix.ffmpeg }}-gpl-shared-$env:FFMPEG_VERSION.zip"
+ curl.exe -fsSL --retry 5 --retry-all-errors -o ffmpeg-win.zip "$url"
Expand-Archive ffmpeg-win.zip -DestinationPath ffdl
$dir = (Get-ChildItem ffdl -Directory | Select-Object -First 1).FullName
"FFMPEG_DIR=$dir" | Out-File -FilePath $env:GITHUB_ENV -Append
"LIBCLANG_PATH=C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_ENV -Append
"$dir\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
+ # ── Build ──────────────────────────────────────────────────────────
# The shipping profile: fat LTO, panic=abort, stripped. See the
# workspace Cargo.toml for what each knob costs.
- - run: cargo build --profile app -p concat
+ - run: cargo build --profile app -p concat --target ${{ matrix.target }}
working-directory: engine
- # The binary, plus the FFmpeg runtime libraries it loads where those
- # are not the system's.
- - name: Stage (unix)
- if: matrix.platform != 'windows'
+ # ── Package: macOS ─────────────────────────────────────────────────
+ # An .app bundle: the binary, an icon set made from the repository's
+ # PNGs, an Info.plist, and every FFmpeg dylib the binary loads copied
+ # into Frameworks with its load path rewritten, so the bundle depends
+ # on nothing installed.
+ - name: Bundle (macOS)
+ if: matrix.platform == 'macos'
+ env:
+ VERSION: ${{ steps.version.outputs.version }}
run: |
set -euo pipefail
- mkdir -p stage
- cp engine/target/app/concat stage/
- if [ -d ffmpeg-dev/lib ]; then
- mkdir -p stage/lib
- cp -a ffmpeg-dev/lib/*.so* stage/lib/
+ app=Concat.app
+ rm -rf "$app"
+ mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources" "$app/Contents/Frameworks"
+ cp "engine/target/${{ matrix.target }}/app/concat" "$app/Contents/MacOS/concat"
+
+ # The icon set Apple wants: each size and its @2x twin.
+ iconset=Concat.iconset
+ rm -rf "$iconset"; mkdir "$iconset"
+ icons=assets/icons
+ cp "$icons/concat_logo_16.png" "$iconset/icon_16x16.png"
+ cp "$icons/concat_logo_32.png" "$iconset/[email protected]"
+ cp "$icons/concat_logo_32.png" "$iconset/icon_32x32.png"
+ cp "$icons/concat_logo_64.png" "$iconset/[email protected]"
+ cp "$icons/concat_logo_128.png" "$iconset/icon_128x128.png"
+ cp "$icons/concat_logo_256.png" "$iconset/[email protected]"
+ cp "$icons/concat_logo_256.png" "$iconset/icon_256x256.png"
+ cp "$icons/concat_logo_512.png" "$iconset/[email protected]"
+ cp "$icons/concat_logo_512.png" "$iconset/icon_512x512.png"
+ iconutil -c icns "$iconset" -o "$app/Contents/Resources/Concat.icns"
+
+ cat > "$app/Contents/Info.plist" <<PLIST
+ <?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>CFBundleName</key><string>Concat</string>
+ <key>CFBundleDisplayName</key><string>Concat</string>
+ <key>CFBundleIdentifier</key><string>app.concat.editor</string>
+ <key>CFBundleVersion</key><string>${VERSION}</string>
+ <key>CFBundleShortVersionString</key><string>${VERSION}</string>
+ <key>CFBundleExecutable</key><string>concat</string>
+ <key>CFBundleIconFile</key><string>Concat</string>
+ <key>CFBundlePackageType</key><string>APPL</string>
+ <key>LSMinimumSystemVersion</key><string>${MACOSX_DEPLOYMENT_TARGET}</string>
+ <key>NSHighResolutionCapable</key><true/>
+ <key>NSSupportsAutomaticGraphicsSwitching</key><true/>
+ <key>LSApplicationCategoryType</key><string>public.app-category.video</string>
+ <key>NSHumanReadableCopyright</key><string>AGPL-3.0-or-later. See THIRD_PARTY_NOTICES.md.</string>
+ </dict>
+ </plist>
+ PLIST
+
+ # Every non-system dylib the binary (and those dylibs) load, copied
+ # in and re-pointed at @executable_path/../Frameworks.
+ dylibbundler -od -b \
+ -x "$app/Contents/MacOS/concat" \
+ -d "$app/Contents/Frameworks" \
+ -p @executable_path/../Frameworks
+
+ # Nothing outside the bundle may remain: a load path into
+ # Homebrew would break on a Mac without it.
+ if otool -L "$app/Contents/MacOS/concat" | grep -E '/opt/homebrew|/usr/local' ; then
+ echo "the binary still loads libraries from outside the bundle" >&2
+ exit 1
fi
+
+ # Signed with the repository's Developer ID when it has one, and
+ # notarised so Gatekeeper opens it without a warning; ad-hoc signed
+ # otherwise, which is what a fork's build gets. Either way the
+ # bundle carries a signature, which macOS insists on for arm64.
+ - name: Sign and notarise (macOS)
+ if: matrix.platform == 'macos'
+ env:
+ CERT_P12: ${{ secrets.APPLE_CERTIFICATE_P12 }}
+ CERT_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
+ IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
+ APPLE_ID: ${{ secrets.APPLE_ID }}
+ TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
+ APP_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
+ VERSION: ${{ steps.version.outputs.version }}
+ run: |
+ set -euo pipefail
+ app=Concat.app
+ dmg="Concat-${VERSION}-macos-${{ matrix.arch }}.dmg"
+ if [ -n "${CERT_P12}" ] && [ -n "${IDENTITY}" ]; then
+ keychain=$RUNNER_TEMP/signing.keychain-db
+ echo "$CERT_P12" | base64 --decode > "$RUNNER_TEMP/cert.p12"
+ security create-keychain -p "" "$keychain"
+ security set-keychain-settings -lut 21600 "$keychain"
+ security unlock-keychain -p "" "$keychain"
+ security import "$RUNNER_TEMP/cert.p12" -P "$CERT_PASSWORD" -A -t cert -f pkcs12 -k "$keychain"
+ security set-key-partition-list -S apple-tool:,apple: -s -k "" "$keychain"
+ security list-keychains -d user -s "$keychain" login.keychain-db
+ # Frameworks first, then the executable, then the bundle: each
+ # signature covers what is beneath it.
+ find "$app/Contents/Frameworks" -name '*.dylib' -exec \
+ codesign --force --options runtime --timestamp -s "$IDENTITY" {} \;
+ codesign --force --options runtime --timestamp -s "$IDENTITY" "$app/Contents/MacOS/concat"
+ codesign --force --options runtime --timestamp -s "$IDENTITY" "$app"
+ codesign --verify --deep --strict "$app"
+ else
+ echo "No signing identity: ad-hoc signing."
+ codesign --force --deep -s - "$app"
+ fi
+
+ hdiutil create -volname Concat -srcfolder "$app" -ov -format UDZO "$dmg"
+
+ if [ -n "${APPLE_ID}" ] && [ -n "${TEAM_ID}" ] && [ -n "${APP_PASSWORD}" ] && [ -n "${IDENTITY}" ]; then
+ codesign --force --timestamp -s "$IDENTITY" "$dmg"
+ xcrun notarytool submit "$dmg" --apple-id "$APPLE_ID" --team-id "$TEAM_ID" \
+ --password "$APP_PASSWORD" --wait
+ xcrun stapler staple "$dmg"
+ fi
+ mkdir -p stage && mv "$dmg" stage/
+
+ # ── Package: Linux ─────────────────────────────────────────────────
+ # The binary, the FFmpeg runtime libraries it loads from lib/ beside
+ # it (the rpath above), a desktop entry and an icon, in one folder.
+ - name: Stage (Linux)
+ if: matrix.platform == 'linux'
+ env:
+ VERSION: ${{ steps.version.outputs.version }}
+ run: |
+ set -euo pipefail
+ name="Concat-${VERSION}-linux-${{ matrix.arch }}"
+ mkdir -p "stage/$name/lib"
+ cp "engine/target/${{ matrix.target }}/app/concat" "stage/$name/concat"
+ cp -a ffmpeg-dev/lib/*.so* "stage/$name/lib/"
+ cp assets/icons/concat_logo_256.png "stage/$name/concat.png"
+ cat > "stage/$name/concat.desktop" <<DESKTOP
+ [Desktop Entry]
+ Type=Application
+ Name=Concat
+ Comment=Video editor
+ Exec=concat
+ Icon=concat
+ Categories=AudioVideo;Video;
+ Terminal=false
+ DESKTOP
+ cp LICENSE THIRD_PARTY_NOTICES.md "stage/$name/"
+ # The binary must resolve every library from the folder alone.
+ if env -u LD_LIBRARY_PATH ldd "stage/$name/concat" | grep -i 'not found'; then
+ echo "the binary does not resolve every library from its own folder" >&2
+ exit 1
+ fi
+ (cd stage && tar -czf "$name.tar.gz" "$name" && rm -r "$name")
+
+ # ── Package: Windows ───────────────────────────────────────────────
- name: Stage (Windows)
if: matrix.platform == 'windows'
shell: pwsh
+ env:
+ VERSION: ${{ steps.version.outputs.version }}
run: |
- New-Item -ItemType Directory -Force stage | Out-Null
- Copy-Item engine/target/app/concat.exe stage/
- Copy-Item "$env:FFMPEG_DIR\bin\*.dll" stage/
+ $ErrorActionPreference = "Stop"
+ $name = "Concat-$env:VERSION-windows-${{ matrix.arch }}"
+ New-Item -ItemType Directory -Force "stage\$name" | Out-Null
+ Copy-Item "engine\target\${{ matrix.target }}\app\concat.exe" "stage\$name\"
+ Copy-Item "$env:FFMPEG_DIR\bin\*.dll" "stage\$name\"
+ Copy-Item LICENSE, THIRD_PARTY_NOTICES.md "stage\$name\"
+ Compress-Archive -Path "stage\$name" -DestinationPath "stage\$name.zip"
+ Remove-Item -Recurse -Force "stage\$name"
- uses: actions/upload-artifact@v7
with:
- name: Concat-${{ matrix.platform }}
- path: stage
+ name: Concat-${{ matrix.platform }}-${{ matrix.arch }}
+ path: stage/*
if-no-files-found: error
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d84f1315..1b2e998b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,8 +1,8 @@
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).
+# The engine's tests and lints on every push and pull request. A green run
+# on main is what nightly.yml waits for before it builds the app for every
+# platform; see that file and release.yml for the bundles.
on:
push:
branches: [main]
@@ -60,8 +60,3 @@ jobs:
- run: cargo test --workspace
working-directory: engine
- app:
- name: Build app
- if: github.event_name != 'pull_request'
- needs: [engine]
- uses: ./.github/workflows/build-app.yml
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
new file mode 100644
index 00000000..07fb5334
--- /dev/null
+++ b/.github/workflows/nightly.yml
@@ -0,0 +1,106 @@
+name: Nightly
+
+# Every push to main that passes the engine's tests builds the app for every
+# platform and architecture and refreshes the rolling `nightly` pre-release
+# with the bundles: the latest main, always downloadable, without anyone
+# cutting a tag. The tag is moved to the commit the bundles were built from,
+# so the release page's "compare" and its notes stay honest.
+#
+# Tagged releases (release.yml) are the ones to point people at; this is the
+# one to point testers at. Successive pushes replace the assets, so there
+# is exactly one nightly and it is the newest.
+on:
+ workflow_run:
+ workflows: [CI]
+ branches: [main]
+ types: [completed]
+ workflow_dispatch:
+
+concurrency:
+ group: nightly
+ cancel-in-progress: true
+
+jobs:
+ build:
+ # Only after a green CI run on main; a manual run builds whatever main is.
+ if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
+ uses: ./.github/workflows/build-app.yml
+ secrets: inherit
+
+ publish:
+ name: Refresh the nightly release
+ needs: [build]
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v7
+ with:
+ fetch-depth: 0
+
+ - uses: actions/download-artifact@v8
+ with:
+ path: bundles
+ merge-multiple: true
+
+ # Named by the commit, so two testers can say which nightly they have.
+ - name: Name the bundles by commit and write checksums
+ id: stamp
+ run: |
+ set -euo pipefail
+ sha=$(git rev-parse --short=10 HEAD)
+ version=$(sed -n 's/^version = "\(.*\)"/\1/p' engine/Cargo.toml | head -1)
+ cd bundles
+ for file in Concat-*; do
+ mv "$file" "${file/Concat-$version/Concat-$version-nightly.$sha}"
+ done
+ sha256sum -- * > SHA256SUMS
+ ls -l
+ {
+ echo "sha=$sha"
+ echo "version=$version"
+ echo "date=$(date -u +%Y-%m-%d)"
+ } >> "$GITHUB_OUTPUT"
+
+ # Yesterday's bundles carry yesterday's commit in their names, so
+ # they would pile up beside today's; the release holds one set.
+ - name: Drop the previous nightly's assets
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ set -euo pipefail
+ if gh release view nightly --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
+ gh release view nightly --repo "$GITHUB_REPOSITORY" --json assets -q '.assets[].name' \
+ | while read -r asset; do
+ gh release delete-asset nightly "$asset" --repo "$GITHUB_REPOSITORY" -y
+ done
+ fi
+
+ # The tag follows main, so the release always points at the commit
+ # its bundles came from.
+ - name: Move the nightly tag
+ run: |
+ git config user.name "github-actions[bot]"
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git tag -f nightly
+ git push -f origin nightly
+
+ - uses: softprops/action-gh-release@v3
+ with:
+ tag_name: nightly
+ name: Nightly ${{ steps.stamp.outputs.version }} (${{ steps.stamp.outputs.date }}, ${{ steps.stamp.outputs.sha }})
+ prerelease: true
+ body: |
+ The latest main, built ${{ steps.stamp.outputs.date }} from
+ `${{ steps.stamp.outputs.sha }}`. Refreshed on every push; the
+ files below replace the previous nightly's.
+
+ | | Apple silicon | Intel / x86_64 | arm64 |
+ |---|---|---|---|
+ | macOS | `macos-arm64.dmg` | `macos-x86_64.dmg` | |
+ | Windows | | `windows-x86_64.zip` | `windows-aarch64.zip` |
+ | Linux | | `linux-x86_64.tar.gz` | `linux-aarch64.tar.gz` |
+
+ Nightlies are for testing. For a release, see the tagged ones.
+ fail_on_unmatched_files: true
+ files: bundles/*
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c02f98ba..a1b88e07 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,23 +1,56 @@
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.
+# app for every platform and architecture and publishes a GitHub release
+# under that tag with one bundle per target and a checksum file. A tag
+# containing a hyphen is a pre-release. The tag must match the workspace's
+# version: a release whose files say one number and whose tag says another
+# is a release nobody can reason about.
#
-# Each archive is the binary plus, on Windows and Linux, the FFmpeg runtime
-# libraries beside it. Signed installers and bundles are the next packaging
-# step.
+# The bundles are self-contained: the macOS .dmg carries its FFmpeg dylibs
+# and is notarised when the signing secrets are set; the Linux tarball and
+# the Windows zip carry the FFmpeg runtime libraries beside the binary.
on:
push:
tags: ["v*"]
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: An existing tag to build and publish, e.g. v0.3.0
+ required: true
+
+concurrency:
+ group: release-${{ github.ref }}
+ cancel-in-progress: false
jobs:
+ check:
+ name: Tag matches the version
+ runs-on: ubuntu-latest
+ outputs:
+ tag: ${{ steps.tag.outputs.tag }}
+ steps:
+ - uses: actions/checkout@v7
+ with:
+ ref: ${{ inputs.tag || github.ref }}
+ - id: tag
+ run: |
+ tag="${{ inputs.tag || github.ref_name }}"
+ version=$(sed -n 's/^version = "\(.*\)"/\1/p' engine/Cargo.toml | head -1)
+ if [ "$tag" != "v$version" ]; then
+ echo "tag $tag does not match engine/Cargo.toml version $version" >&2
+ exit 1
+ fi
+ echo "tag=$tag" >> "$GITHUB_OUTPUT"
+
build:
+ needs: [check]
uses: ./.github/workflows/build-app.yml
+ secrets: inherit
publish:
name: Publish release
- needs: [build]
+ needs: [check, build]
runs-on: ubuntu-latest
permissions:
contents: write
@@ -25,30 +58,40 @@ jobs:
- uses: actions/download-artifact@v8
with:
path: bundles
+ merge-multiple: true
- - name: Pack one archive per platform
+ - name: Checksums
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
+ cd bundles
+ ls -l
+ sha256sum -- * > SHA256SUMS
- uses: softprops/action-gh-release@v3
with:
- name: Concat ${{ github.ref_name }}
- prerelease: ${{ contains(github.ref_name, '-') }}
+ tag_name: ${{ needs.check.outputs.tag }}
+ name: Concat ${{ needs.check.outputs.tag }}
+ prerelease: ${{ contains(needs.check.outputs.tag, '-') }}
generate_release_notes: true
body: |
+ One bundle per platform and architecture; pick yours:
+
+ | | Apple silicon | Intel / x86_64 | arm64 |
+ |---|---|---|---|
+ | macOS | `macos-arm64.dmg` | `macos-x86_64.dmg` | |
+ | Windows | | `windows-x86_64.zip` | `windows-aarch64.zip` |
+ | Linux | | `linux-x86_64.tar.gz` | `linux-aarch64.tar.gz` |
+
+ Every bundle runs with nothing else installed. `SHA256SUMS` lists
+ each file's checksum.
+
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
+ The binaries link FFmpeg (GPL builds with x264; the bundles 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/*
+ files: bundles/*