zakk4223 / CSVirtualCamera

CocoaSplit Virtual Camera plugin
Other
13 stars 0 forks source link

Question: Pkg installer #1

Open f0rr0 opened 4 years ago

f0rr0 commented 4 years ago

I was wondering if you have any pointers on the package installer. I would imagine the installer installs the app and also takes care of the launch agent and the DAL plugin.

I noticed the pkg installer is marked as done in the readme but could not find anything further on it.

This repo explains all the moving parts best among all the other examples for a virtual cam DAL plugin 🥇

I looked at SnapCamera's plist and came up with the following:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.cocoasplit.vcam.assistant</string>
        <key>ProgramArguments</key>
        <array>
            <string>/Library/CoreMediaIO/Plug-Ins/DAL/CSVirtualCamera.plugin/Contents/Resources/CSVirtualCameraAssistant</string>
        </array>
        <key>MachServices</key>
        <dict>
            <key>com.cocoasplit.vcam.assistant</key>
            <true/>
        </dict>
    </dict>
</plist>

This should go into ~/Library/LaunchAgents/com.cocoasplit.vcam.assistant.plist

Does that sound correct?

zakk4223 commented 4 years ago

That looks correct. The PKG installer is downloadable from this repo: see the Releases section, CSVirtualCamera_1.0.zip