Cap
Cap copied to clipboard
Implement deeplink commands for the Raycast Extension
Solves 28
Added deep-link command support. The Raycast extension will be able to use these to send commands to Cap. Currently, you can start/stop recording with specified media devices, as well as open your account's Dashboard.
What needs testing: Make sure OAuth still works.
To test on macOS, make sure you first build a debug version of the app via pnpm tauri:build --debug
and then "install" it. (Putting the resulted .app into your Applications folder.)
Read more about it here
You can find the dmg/app at the path below:
<repo>/apps/desktop/src-tauri/target/universal-apple-darwin/debug/bundle/[dmg | macos]
Then run the app via pnpm dev
The structure of the deep-link scheme is as caprecorder://:command?parameters
Copy and paste the URI below into a browser to try it out:
caprecorder://start-recording?mic_in_label=MacBook%20Pro%20Microphone&vid_in_label=FaceTime%20HD%20Camera
The URI must be encoded. You can also use none
as the value for a media device label to disable it.
You can find the source for the extension here
To test the extension, make sure Cap is built with --debug
and installed. Then run it in development.
Then in the extension directory, run npm install
& npm run dev