Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

release fixes

Richie McIlroy72c8f14b0461
diff --git a/.github/actions/install-desktop-deps/action.yml b/.github/actions/install-desktop-deps/action.yml
index 098065008..bfb981583 100644
--- a/.github/actions/install-desktop-deps/action.yml
+++ b/.github/actions/install-desktop-deps/action.yml
@@ -43,4 +43,5 @@ runs:
libavdevice-dev \
libswscale-dev \
libswresample-dev \
+ libva-dev \
patchelf
diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json
index c9d05131d..94e383c14 100644
--- a/apps/desktop/src-tauri/tauri.conf.json
+++ b/apps/desktop/src-tauri/tauri.conf.json
@@ -90,7 +90,9 @@
"depends": [
"libwebkit2gtk-4.1-0",
"libgtk-3-0",
- "libayatana-appindicator3-1"
+ "libayatana-appindicator3-1",
+ "libva2",
+ "libva-drm2"
],
"files": {
"/usr/lib/cap/libavcodec.so.61": "../../../target/native-deps/cap-deb-libs/libavcodec.so.61",
diff --git a/scripts/setup.js b/scripts/setup.js
index 886b587bd..d7c010ea2 100644
--- a/scripts/setup.js
+++ b/scripts/setup.js
@@ -54,7 +54,10 @@ async function main() {
};
const nativeDepsTar = NATIVE_DEPS_ASSETS[arch];
- const nativeDepsTarPath = path.join(targetDir, nativeDepsTar);
+ const nativeDepsTarPath = path.join(
+ targetDir,
+ `${NATIVE_DEPS_VERSION}-${nativeDepsTar}`,
+ );
let downloadedNativeDeps = false;
if (!(await fileExists(nativeDepsTarPath))) {
@@ -207,7 +210,7 @@ async function main() {
if (triple) {
cargoConfigContents += FFMPEG_CARGO_ENV;
- const NATIVE_DEPS_VERSION = "v0.25";
+ const NATIVE_DEPS_VERSION = "v0.26";
const NATIVE_DEPS_URL = `https://github.com/spacedriveapp/native-deps/releases/download/${NATIVE_DEPS_VERSION}`;
const NATIVE_DEPS_ASSETS = {
x86_64: "native-deps-x86_64-linux-gnu.tar.xz",
@@ -218,7 +221,10 @@ async function main() {
if (!nativeDepsTar)
throw new Error(`Unsupported Linux arch for native deps: ${arch}`);
- const nativeDepsTarPath = path.join(targetDir, nativeDepsTar);
+ const nativeDepsTarPath = path.join(
+ targetDir,
+ `${NATIVE_DEPS_VERSION}-${nativeDepsTar}`,
+ );
let downloadedNativeDeps = false;
if (!(await fileExists(nativeDepsTarPath))) {
console.log(`Downloading ${nativeDepsTar}`);