Skip to content

Build Instructions

Prateeksha Das edited this page May 26, 2023 · 1 revision
  • Windows
  • macOS

Windows

Pre-requisites

Build & run

  • Run the script in Powershell 7 scripts\Build-Windows.ps1
  • After running successfully dlls are created in <project-root>/release
  • Copy release/data/obs-plugins/caffeine-obs-plugin folder into <path-to-obs-studio>/data/obs-plugins
  • Go to release/obs-plugins/64bit folder, copy caffeine-obs-plugin.dll and caffeine-obs-plugin.pdb into <path-to-obs-studio>/obs-plugins/64bit
  • Launch OBS-Studio to verify Caffeine plugin is available by selecting Caffeine from Docks

macOS

Pre-requisites

  • XCode 14.2 or newer
  • brew
  • cmake - brew install cmake
  • openssl
    • Intel:
      • brew install openssl
      • Add to path:
        export OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1
        export OPENSSL_LIBRARIES=/usr/local/opt/openssl@1.1/lib
        
    • arm64:
      • Add to path:
         export OPENSSL_LIBRARIES=/opt/homebrew/Cellar/openssl@1.1/1.1.1t/lib
         export OPENSSL_ROOT_DIR=/opt/homebrew/Cellar/openssl@1.1/1.1.1t 
        

Build & run

  • Run the script in Terminal scripts\build-macos.zsh
  • After running successfully .plugin are created in <project-root>/release
  • Copy caffeine-obs-plugin.plugin from <project-root>/release into ~/Library/Application Support/obs-studio/plugins folder
  • Launch OBS-Studio to verify Caffeine plugin is available by selecting Caffeine from Docks

Clone this wiki locally