From acc6194c4d26b4866a9f82e20ea649ac8f827025 Mon Sep 17 00:00:00 2001 From: spuds <71292624+bananaturtlesandwich@users.noreply.github.com> Date: Thu, 8 Feb 2024 09:06:12 +0000 Subject: [PATCH] fix mac & linux compilation --- .github/workflows/release.yml | 4 ++++ src/dialog.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1558cbb..618508f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,6 +21,7 @@ jobs: draft: true prerelease: true body: "# Changes" + # windows: # needs: draft # runs-on: windows-latest @@ -63,6 +64,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: Swatinem/rust-cache@v1 + - name: install deps + run: | + sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libgtk-3-dev - name: build run: cargo build -r - name: upload diff --git a/src/dialog.rs b/src/dialog.rs index 5f61a1a..c20b186 100644 --- a/src/dialog.rs +++ b/src/dialog.rs @@ -42,6 +42,7 @@ pub fn respond( None } }; + #[cfg(target_os = "windows")] #[link(name = "oo2core_win64", kind = "static")] extern "C" { fn OodleLZ_Decompress(