Skip to content

Commit

Permalink
0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Dec 16, 2024
1 parent 5b5f7ce commit 74f018e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 21 deletions.
55 changes: 36 additions & 19 deletions .github/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

1 comment on commit 74f018e

@vercel
Copy link

@vercel vercel bot commented on 74f018e Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.