Skip to content

Commit

Permalink
GitHub Actions: Release the MacOS builds in the new .plugin format (L…
Browse files Browse the repository at this point in the history
…iveSplit#34)

This changes how the MacOS builds are being released by using the .plugin format that newer OBS versions require to load a plugin, this means that the user will just be able to copy the folder to the right place and it should just work.

Fixes LiveSplit#20 and LiveSplit#12
  • Loading branch information
Refragg authored Aug 21, 2023
1 parent 925e9ec commit a41eefd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ main() {
mkdir -p $stage/obs-livesplit-one/bin/$PLUGIN_BITS
cp target/$TARGET/max-opt/libobs_livesplit_one.so $stage/obs-livesplit-one/bin/$PLUGIN_BITS/libobs-livesplit-one.so
elif [ "$OS_NAME" = "macOS-latest" ]; then
cp target/$TARGET/max-opt/libobs_livesplit_one.dylib $stage/obs-livesplit-one.so
mkdir -p $stage/obs-livesplit-one.plugin/Contents/MacOS
mkdir -p $stage/obs-livesplit-one.plugin/Contents/Resources
cp target/$TARGET/max-opt/libobs_livesplit_one.dylib $stage/obs-livesplit-one.plugin/Contents/MacOS/obs-livesplit-one.so
elif [ "$OS_NAME" = "windows-latest" ]; then
cp target/$TARGET/max-opt/obs_livesplit_one.dll $stage/obs-livesplit-one.dll
fi
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Download the latest release for your operating system from the

- Right click your `OBS` -> Options -> Show in Finder
- Right click the `OBS.app` -> Show Package Contents
- Drag `obs-livesplit-one.so` into `Contents/PlugIns`
- Drag `obs-livesplit-one.plugin` into `Contents/PlugIns`

## Usage

Expand Down

0 comments on commit a41eefd

Please sign in to comment.