Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
build debug symbols
Brendan Allan3a04ee419237
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex ac3c29a89..c5241992b 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -6,6 +6,8 @@ on: workflow_dispatchenv:CN_APPLICATION: cap/capAPP_CARGO_TOML: apps/desktop/src-tauri/Cargo.toml+ SENTRY_ORG: cap-s2+ SENTRY_PROJECT: cap-desktopjobs:draft:@@ -134,7 +136,7 @@ jobs:echo 'VITE_SERVER_URL=${NEXT_PUBLIC_URL}' >> .envecho "NEXT_PUBLIC_CAP_AWS_REGION=${{ secrets.NEXT_PUBLIC_CAP_AWS_REGION }}" >> .envecho "NEXT_PUBLIC_CAP_AWS_BUCKET=${{ secrets.NEXT_PUBLIC_CAP_AWS_BUCKET }}" >> .env-+- name: Copy .env to apps/desktoprun: cp .env apps/desktop/.env@@ -144,7 +146,7 @@ jobs:- name: Cargo cleanrun: cargo clean- - name: Build MacOS Apps+ - name: Build macOS appsworking-directory: apps/desktoprun: |export TARGET_TRIPLE=${{ matrix.settings.target }}@@ -166,8 +168,16 @@ jobs:TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}- - name: upload assets+ - name: Upload assetsuses: crabnebula-dev/cloud-release@v0with:command: release upload ${{ env.CN_APPLICATION }} "${{ needs.draft.outputs.version }}" --framework tauriapi-key: ${{ secrets.CN_API_KEY }}++ - name: Upload debug symbols to Sentry+ env:+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}+ working-directory: target/release+ run: |+ curl -sL https://sentry.io/get-cli/ | bash+ sentry-cli debug-files upload -o ${{ env.SENTRY_ORG }} -p ${{ env.SENTRY_PROJECT }} Cap.dSYMdiff --git a/apps/desktop/scripts/stripDebugSymbols.js b/apps/desktop/scripts/stripDebugSymbols.jsnew file mode 100644index 000000000..f3803054e--- /dev/null+++ b/apps/desktop/scripts/stripDebugSymbols.js@@ -0,0 +1,26 @@+import * as fs from "node:fs/promises";+import * as path from "node:path";+import { fileURLToPath } from "node:url";+import { exec as execCb } from "node:child_process";+import { promisify } from "node:util";++const exec = promisify(execCb);++const __filename = fileURLToPath(import.meta.url);+const __dirname = path.dirname(__filename);++const targetDir = path.join(__dirname, "../../../target");+const releaseDir = path.join(targetDir, "release");++async function main() {+ const releaseFiles = await fs.readdir(releaseDir);+ const binaryPath = path.join(+ releaseDir,+ releaseFiles.find((f) => f.startsWith("Cap"))+ );++ await exec(`dsymutil "${binaryPath}" -o "${binaryPath}.dSYM"`);+ await exec(`strip "${binaryPath}"`);+}++main();diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.tomlindex d5f90e96f..cafd5c59c 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.2"+version = "0.3.3"description = "Beautiful screen recordings, owned by you."authors = ["you"]edition = "2021"@@ -65,7 +65,7 @@ global-hotkey = "0.6.3"rand = "0.8.5"cpal.workspace = truekeyed_priority_queue = "0.4.2"-sentry.workspace = true+sentry = { workspace = true }cap-utils = { path = "../../../crates/utils" }cap-project = { path = "../../../crates/project" }@@ -106,4 +106,4 @@ panic = "abort" # Strip expensive panic clean-up logiccodegen-units = 1 # Compile crates one after another so the compiler can optimize betterlto = true # Enables link to optimizationsopt-level = "s" # Optimize for binary size-strip = true # Remove debug symbols+debug = true