Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Cap for Windows #110

Merged
merged 55 commits into from
Nov 3, 2024
Merged

(WIP) Cap for Windows #110

merged 55 commits into from
Nov 3, 2024

Conversation

ItsEeleeya
Copy link
Contributor

@ItsEeleeya ItsEeleeya commented Oct 9, 2024

Solves (mostly) #108

  • Fixes permissions on Windows
  • App starts up without errors
  • Screenshots
  • Previous recordings panel
  • Cursor shape detection implementation
  • Window owner process names
  • Save recording
  • Editor working
  • Windows-style window controls and minor UI patches

Running the app on Windows:

Follow the Tauri prerequisites for Windows if you haven't set up Rust and Tauri on Windows yet.

Download the shared ffmpeg binary for Windows and rename it to ffmpeg-x86_64-pc-windows-msvc.exe. Place it inside <Project root>/target/binaries/.
BtbN ffmpeg releases.

Copy the DLLs below from the shared ffmpeg zip:
avutil, avformat, avcodec, avdevice, avfilter
And paste them inside <Project root>/target/debug

You should then be able to run the app in development.
If not, you might need to install ffmpeg using vcpkg.

Upcoming changes:

  • Implement getting the cursor kind on Windows.
  • Add window controls matching Cap's style.
  • tiny fixes/polish on Windows.

Missing:
no ffmpeg in the prepareSidecars.js script for Windows. There should be one for x86_64-pc-windows-msvc and aarch64-pc-windows-msvc

We'll have to update scap in the future to use the latest windows and windows-capture crates.

Known issue:
[1018/212546.923:ERROR:window_impl.cc(121)] Failed to unregister class Chrome_WidgetWin_0. Error = 1411
This error appears when the app exists on Windows. This is likely from within Tauri as mentioned by fabianlars on Discord and the issue on Github.

Copy link

vercel bot commented Oct 9, 2024

@ItsEeleeya is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

@ItsEeleeya
Copy link
Contributor Author

Screenshot of Cap running on Windows 11

Compiles and starts without errors 👀

ItsEeleeya and others added 25 commits October 19, 2024 20:48
@ItsEeleeya
Copy link
Contributor Author

Changes on macOS:

  • Add custom app delegates to handle traffic lights positioning (Removes plugin-decorum).

@Brendonovich
Copy link
Member

Merging while unfinished to avoid having a super large feature branch. Remaining stuff for windows support is in #108.

@Brendonovich Brendonovich merged commit 0220ac4 into CapSoftware:main Nov 3, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants