-
-
Notifications
You must be signed in to change notification settings - Fork 3
feat(linux): add full Linux support #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5f130b8
refactor(virtual-device): split macos impl into platform-gated module
Horuse 0af2159
fix(device): use default config on linux instead of max-sample-rate
Horuse bd048a8
feat(volume): control device volume on linux
Horuse 21e9619
feat(system-audio): list pipewire apps
Horuse 878bf5e
feat(capture): system + per-app audio capture on linux via pipewire
Horuse 425e45a
feat(virtual-device): create pipewire null-sinks on linux
Horuse cd9655d
fix(virtual-devices): hide driver install ui on linux
Horuse a75b752
feat(linux): native pipewire device i/o for mic and speaker
Horuse c3de5bb
refactor(audio): split into per-os submodules
Horuse 205a958
ci: linux build
Horuse 93100b8
fix: Potential fix for pull request finding 'CodeQL / Workflow does n…
Horuse 881e984
fix: move macos-only bundle config to tauri.macos.conf.json
Horuse ab32c7b
Merge branch 'linux' of github.com:Horuse/Splitwave into linux
Horuse 247227b
ci(linux): build rpm and split appimage/deb/rpm into separate artifacts
Horuse f57fb61
feat: linux support mentions and UI tweaks
Horuse 2cc5453
ci(linux): strip bundled wayland libs from appimage
Horuse 0ed49ec
ci(linux): strip bundled libpipewire/libspa from appimage
Horuse dbb6fdc
fix(linux): create virtual sinks via pw-cli instead of pactl
Horuse b2d53b5
feat(linux): custom titlebar with window controls and app menu
Horuse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| name: Build Linux | ||
|
|
||
| # Runs only on a `linux-*` tag (e.g. `git tag linux-1 && git push origin linux-1`) | ||
| # or a manual dispatch -- never on every commit, and separate from the `v*` | ||
| # release tags so it won't trigger the macOS Release workflow. Produces a | ||
| # downloadable artifact (no GitHub release). | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'linux-*' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: read | ||
|
|
||
| jobs: | ||
| build: | ||
| # ubuntu-22.04 = oldest base shipping WebKitGTK 4.1, so glibc stays 2.35 | ||
| # for broad AppImage compatibility (newer bases raise the glibc floor). | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
|
|
||
| - name: Setup Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Cache cargo build | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: src-tauri | ||
|
|
||
| - name: Install Linux system deps | ||
| # 22.04 ships libpipewire 0.3.48, too old for the libspa crate | ||
| # (spa_video_info_raw.flags). The upstream PPA backports a current | ||
| # libpipewire while keeping the glibc 2.35 base. | ||
| run: | | ||
| sudo add-apt-repository -y ppa:pipewire-debian/pipewire-upstream | ||
| sudo apt-get update | ||
| sudo apt-get install -y --no-install-recommends \ | ||
| libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev \ | ||
| libgtk-3-dev librsvg2-dev librsvg2-bin libgtk-3-bin \ | ||
| libayatana-appindicator3-dev libsoup-3.0-dev libssl-dev \ | ||
| libpipewire-0.3-dev clang libclang-dev \ | ||
| libasound2-dev libopus-dev \ | ||
| desktop-file-utils xdg-utils patchelf rpm | ||
|
|
||
| - name: Install JS deps | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| - name: Build AppImage + deb + rpm | ||
| uses: tauri-apps/tauri-action@v0 | ||
| with: | ||
| projectPath: src-tauri | ||
| args: '--bundles appimage,deb,rpm -c {"bundle":{"createUpdaterArtifacts":false}}' | ||
|
|
||
| - name: Strip bundled host libs from AppImage | ||
| # linuxdeploy bundles host-integration libs that aren't on the | ||
| # AppImage excludelist. They then shadow the system copies and | ||
| # break against the host's plugin ecosystem: | ||
| # - libwayland-* -> WebKit EGL init fails (EGL_BAD_PARAMETER / | ||
| # blank window) against newer Mesa | ||
| # - libpipewire/libspa -> can't load SPA plugins (support.system), | ||
| # "pipewire: Creation failed", since the spa-0.2/ plugin dir | ||
| # is not bundled | ||
| # Remove them so the app links the host's copies + their plugins. | ||
| run: | | ||
| set -euxo pipefail | ||
| export APPIMAGE_EXTRACT_AND_RUN=1 | ||
| app=$(find src-tauri/target/release/bundle/appimage -name '*.AppImage' | head -1) | ||
| "$app" --appimage-extract | ||
| rm -fv squashfs-root/usr/lib/libwayland-client.so* \ | ||
| squashfs-root/usr/lib/libwayland-egl.so* \ | ||
| squashfs-root/usr/lib/libwayland-cursor.so* \ | ||
| squashfs-root/usr/lib/libpipewire-0.3.so* \ | ||
| squashfs-root/usr/lib/libspa-0.2.so* | ||
| curl -fsSL -o /tmp/appimagetool \ | ||
| https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage | ||
| chmod +x /tmp/appimagetool | ||
| rm -f "$app" | ||
| ARCH=x86_64 /tmp/appimagetool squashfs-root "$app" | ||
| rm -rf squashfs-root | ||
|
|
||
| # Separate artifacts so each downloads on its own -- grabbing the | ||
| # small deb/rpm doesn't pull the heavy AppImage. | ||
| - name: Upload AppImage | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Splitwave-AppImage-x86_64 | ||
| path: src-tauri/target/release/bundle/appimage/*.AppImage | ||
| if-no-files-found: error | ||
|
|
||
| - name: Upload deb | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Splitwave-deb-x86_64 | ||
| path: src-tauri/target/release/bundle/deb/*.deb | ||
| if-no-files-found: error | ||
|
|
||
| - name: Upload rpm | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Splitwave-rpm-x86_64 | ||
| path: src-tauri/target/release/bundle/rpm/*.rpm | ||
| if-no-files-found: error | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.