Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:
jobs:
check:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
Expand All @@ -20,7 +21,7 @@ jobs:

- name: Install Linux system dependencies
if: runner.os == 'Linux'
run: bash scripts/install-linux-deps-debian.sh
run: bash scripts/install-linux-deps-debian.sh --sources /etc/apt/sources.list.d/ubuntu.sources

- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions scripts/install-linux-deps-debian.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail

# Hosted runners include unrelated third-party repositories. CI can select the
# distribution's own source file without editing the machine's apt config.
APT_SOURCES=()
if [ "$#" -gt 0 ]; then
if [ "$#" -ne 2 ] || [ "$1" != "--sources" ] || [ ! -f "$2" ]; then
echo "Usage: $0 [--sources EXISTING_SOURCE_FILE]" >&2
exit 1
fi
APT_SOURCES=(-o "Dir::Etc::sourcelist=$2" -o "Dir::Etc::sourceparts=-")
fi

if ! command -v apt-get >/dev/null 2>&1; then
echo "This helper currently supports Ubuntu/Debian systems with apt-get." >&2
exit 1
Expand All @@ -15,8 +26,9 @@ else
exit 1
fi

"${SUDO[@]}" apt-get update
"${SUDO[@]}" env DEBIAN_FRONTEND=noninteractive apt-get install -y \
# The conditional expansions also support empty arrays with nounset on Bash 3.
${SUDO[@]+"${SUDO[@]}"} apt-get ${APT_SOURCES[@]+"${APT_SOURCES[@]}"} update
${SUDO[@]+"${SUDO[@]}"} env DEBIAN_FRONTEND=noninteractive apt-get ${APT_SOURCES[@]+"${APT_SOURCES[@]}"} install -y \
build-essential \
curl \
file \
Expand Down
3 changes: 3 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ tauri-build = { version = "2", features = [] }

[dependencies]
tauri = { version = "2", features = ["protocol-asset", "macos-private-api"] }
# Use the same engine as Tauri for previews, without its application IPC bridge.
wry = { version = "0.55", default-features = false, features = ["os-webview"] }
tauri-plugin-opener = "2"
serde.workspace = true
serde_json.workspace = true
Expand All @@ -43,6 +45,7 @@ raw-window-handle = "0.6"

[target.'cfg(target_os = "linux")'.dependencies]
notify-rust = "4.18"
gtk = "0.18"

[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-updater = "2"
Expand Down
Loading
Loading