Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix setup script
Brendan Allane6a01b896e45
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 1fc2ae1c8..a41d9b8ca 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -25,10 +25,9 @@ There are many ways to contribute to Cap. You can:### Development Requirements- Node Version 20+-- Cargo 1.77.0+ (previous versions may work)+- Rust 1.84.0+- pnpm 8.10.5+- Docker ([OrbStack](https://orbstack.dev/) recommended)-- pkg-config### How do I get started with development on my local machine?@@ -36,6 +35,7 @@ This is a very top level guide right now, but if you want to develop for both th1. Clone the repository2. Install dependencies with `pnpm install`+3. Setup native dependencies with `pnpm cap-setup`3. Clone .env.example and rename it to .env4. At the root of the directory, run the app with `pnpm dev`. This will create a local database simulator, run the necessary DB migrations, and start both the web app and desktop app concurrently.5. Make sure both the the desktop app, and web app can be built without any errors. For the desktop app, use `pnpm tauri:build`. For the web app, use `pnpm build`diff --git a/scripts/setup.js b/scripts/setup.jsindex d131ae218..65f0e1920 100644--- a/scripts/setup.js+++ b/scripts/setup.js@@ -29,7 +29,7 @@ async function main() {const nativeDepsTar = `${targetDir}/native-deps.tar.xz`;if (!(await fileExists(nativeDepsTar))) {const nativeDepsBytes = await fetch(- `${NATIVE_DEPS_URL}/${NATIVE_DEPS_ASSETS.darwin[arch]}`+ `${NATIVE_DEPS_URL}/${NATIVE_DEPS_ASSETS[arch]}`).then((r) => r.blob()).then((b) => b.arrayBuffer());@@ -38,13 +38,13 @@ async function main() {} else console.log("Using cached native-deps.tar.xz");const nativeDepsDir = `${targetDir}/native-deps`;+ const frameworkDir = path.join(nativeDepsDir, "Spacedrive.framework");if (!(await fileExists(nativeDepsDir))) {await fs.mkdir(nativeDepsDir, { recursive: true });await exec(`tar xf ${targetDir}/native-deps.tar.xz -C ${nativeDepsDir}`);console.log("Extracted native-deps");} else console.log("Using cached native-deps");- const frameworkDir = path.join(nativeDepsDir, "Spacedrive.framework");await trimMacOSFramework(frameworkDir);console.log("Trimmed .framework");@@ -52,6 +52,12 @@ async function main() {await signMacOSFrameworkLibs(frameworkDir);console.log("Signed .framework libraries");+ const frameworkTargetDir = `${targetDir}/Frameworks/Spacedrive.framework`;+ await fs.rm(frameworkTargetDir, { recursive: true }).catch(() => {});+ await fs.cp(frameworkDir, `${targetDir}/Frameworks/Spacedrive.framework`, {+ recursive: true,+ });+// alternative to specifying dylibs as linker argsfor (const name of await fs.readdir(`${nativeDepsDir}/lib`)) {await fs.copyFile(