Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

dmg background

Brendan Allan5754ecffe2a2
diff --git a/apps/desktop/src-tauri/assets/dmg-background.png b/apps/desktop/src-tauri/assets/dmg-background.png
new file mode 100644
index 000000000..79721312b
Binary files /dev/null and b/apps/desktop/src-tauri/assets/dmg-background.png differ
diff --git a/apps/desktop/src-tauri/icons/dmg-background.png b/apps/desktop/src-tauri/icons/dmg-background.png
deleted file mode 100644
index 662fbecac..000000000
Binary files a/apps/desktop/src-tauri/icons/dmg-background.png and /dev/null differ
diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json
index 5939f031e..d6911d64c 100644
--- a/apps/desktop/src-tauri/tauri.conf.json
+++ b/apps/desktop/src-tauri/tauri.conf.json
@@ -43,7 +43,15 @@
"externalBin": ["../../../target/binaries/ffmpeg"],
"macOS": {
"dmg": {
- "background": "./src-tauri/icons/dmg-background.png"
+ "background": "assets/dmg-background.png",
+ "appPosition": {
+ "x": 180,
+ "y": 140
+ },
+ "applicationFolderPosition": {
+ "x": 480,
+ "y": 140
+ }
}
}
}
diff --git a/apps/desktop/src/App.tsx b/apps/desktop/src/App.tsx
index f6c72fbf5..ad6b8f0b2 100644
--- a/apps/desktop/src/App.tsx
+++ b/apps/desktop/src/App.tsx
@@ -7,7 +7,14 @@ import "@cap/ui-solid/main.css";
import "unfonts.css";
import { getCurrentWindow } from "@tauri-apps/api/window";
-const queryClient = new QueryClient();
+const queryClient = new QueryClient({
+ defaultOptions: {
+ mutations: {
+ onError: (e) =>
+ alert("An error occured, here are the details:\n" + e.message),
+ },
+ },
+});
export default function App() {
return (
diff --git a/apps/desktop/src/routes/(window-chrome)/(main).tsx b/apps/desktop/src/routes/(window-chrome)/(main).tsx
index d1c83df82..ed128d0c7 100644
--- a/apps/desktop/src/routes/(window-chrome)/(main).tsx
+++ b/apps/desktop/src/routes/(window-chrome)/(main).tsx
@@ -84,9 +84,6 @@ export default function () {
await commands.stopRecording();
}
},
- onError: (e) => {
- alert("An error occurred, here are the details:\n" + e.toString());
- },
}));
createAsync(() => getAuth());