Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

0.3.6

Brendan Allan74f018e1eff8
diff --git a/.github/prebuild.js b/.github/prebuild.js
index facaa71bd..210f5b939 100644
--- a/.github/prebuild.js
+++ b/.github/prebuild.js
@@ -59,27 +59,44 @@ rustflags = [
await exec(`tar xf ${__root}/native-deps.tar.xz -C ${nativeDeps}`);
if (os === "darwin") {
- // const frameworkDir = path.join(nativeDeps, "Spacedrive.framework");
- // const librariesDir = path.join(frameworkDir, "Libraries");
-
- // const libraries = await fs.readdir(librariesDir);
-
- // const unnecessaryLibraries = libraries.filter(
- // (v) =>
- // !(
- // v.startsWith("libav") ||
- // v.startsWith("libsw") ||
- // v.startsWith("libpostproc")
- // )
- // );
+ const frameworkDir = path.join(nativeDeps, "Spacedrive.framework");
+
+ const headersDir = path.join(frameworkDir, "Headers");
+ const librariesDir = path.join(frameworkDir, "Libraries");
+
+ const libraries = await fs.readdir(librariesDir);
+
+ const unnecessaryLibraries = libraries.filter(
+ (v) =>
+ !(
+ v.startsWith("libav") ||
+ v.startsWith("libsw") ||
+ v.startsWith("libpostproc")
+ )
+ );
+
+ for (const lib of unnecessaryLibraries) {
+ await fs.rm(path.join(librariesDir, lib));
+ }
- // for (const lib of unnecessaryLibraries) {
- // await fs.rm(path.join(librariesDir, lib));
- // }
+ const headers = await fs.readdir(headersDir);
- // await fs.rm(path.join(frameworkDir, "Resources", "Models"), {
- // recursive: true,
- // });
+ const unnecessaryHeaders = headers.filter(
+ (v) =>
+ !(
+ v.startsWith("libav") ||
+ v.startsWith("libsw") ||
+ v.startsWith("libpostproc")
+ )
+ );
+
+ for (const header of unnecessaryHeaders) {
+ await fs.rm(path.join(headersDir, header));
+ }
+
+ await fs.rm(path.join(frameworkDir, "Resources", "Models"), {
+ recursive: true,
+ });
await symlinkSharedLibsMacOS(nativeDeps).catch((e) => {
console.error(`Failed to symlink shared libs.`);
diff --git a/Cargo.lock b/Cargo.lock
index dfb67d592..cc1c4c513 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1728,7 +1728,7 @@ dependencies = [
[[package]]
name = "desktop"
-version = "0.3.5"
+version = "0.3.6"
dependencies = [
"anyhow",
"axum",
diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml
index 72435264f..5b266e2d2 100644
--- a/apps/desktop/src-tauri/Cargo.toml
+++ b/apps/desktop/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "desktop"
-version = "0.3.5"
+version = "0.3.6"
description = "Beautiful screen recordings, owned by you."
authors = ["you"]
edition = "2021"