diff --git a/README.md b/README.md index 546c5c8..d5c3be3 100644 --- a/README.md +++ b/README.md @@ -54,22 +54,18 @@ Prerequisites: just build ``` -2. Copy the plugin to the OBS Studio plugins directory: -```bash -# macOS -cp -a build_macos/RelWithDebInfo/obs-moq.plugin ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/PlugIns/ - -# Linux -cp build_x86_64/obs-moq.so ~/.config/obs-studio/plugins/obs-moq/bin/64bit/obs-moq.so +2. Copy the plugin to the OBS Studio plugins directory and run it: -# eventually, without the fork: -cp -a build_macos/RelWithDebInfo/obs-moq.plugin ~/Library/Application\ Support/obs-studio/plugins/ +```bash +# macOS only: +# This script assumes a local fork of OBS Studio in ../obs-studio +just run ``` -3. Run OBS Studio with some extra logging for debugging. +On linux you'll have to do: ```bash -# macOS -RUST_LOG=debug RUST_BACKTRACE=1 OBS_LOG_LEVEL=debug ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/MacOS/OBS +cp build_x86_64/obs-moq.so ~/.config/obs-studio/plugins/obs-moq/bin/64bit/obs-moq.so +# TODO: add Linux command to `just run` ``` ## Configuring MoQ Output Streaming diff --git a/justfile b/justfile index 22edf27..4a95984 100644 --- a/justfile +++ b/justfile @@ -32,6 +32,15 @@ build preset="": PRESET=$(just preset "{{preset}}") cmake --build --preset "$PRESET" +# Run a local fork of OBS Studio with the plugin loaded +# TODO support for other platforms +run: + # Copy the plugin to the OBS Studio plugins directory + cp -a build_macos/RelWithDebInfo/obs-moq.plugin ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/PlugIns/ + + # Run OBS Studio with the plugin loaded + RUST_LOG=debug RUST_BACKTRACE=1 OBS_LOG_LEVEL=debug ../obs-studio/build_macos/frontend/RelWithDebInfo/OBS.app/Contents/MacOS/OBS + # Run the CI checks check: ./build-aux/run-clang-format --check