Skip to content

plugin: keep libpinmame.so when the Linux plugins are built on Windows - #52

Merged
freezy merged 1 commit into
masterfrom
fix/linux-plugins-on-windows
Nov 15, 2026
Merged

freezy merged 1 commit into
masterfrom
fix/linux-plugins-on-windows

Conversation

@freezy

@freezy freezy commented Nov 15, 2026

Copy link
Copy Markdown
Member

Building the Linux plugins on a Windows machine (dotnet build -r linux-x64, for a Linux player that is cross-built there) left Plugins/linux-x64 without libpinmame.so.

The deploy target copies the versioned library from the NuGet package as libpinmame.so and then deletes the versioned copies, which it finds with libpinmame.so.*. On Windows that pattern also matches libpinmame.so itself, and since the item list is made before the copy, a libpinmame.so from an earlier build was on it: the library was deleted right after it was deployed.

libpinmame.so is now excluded from that list. On Linux nothing changes: there the pattern never matched it.

Tested on Windows: dotnet build -c Release -r linux-x64 now leaves libpinmame.so in place, and a Linux player built with it loads PinMAME.

There the pattern libpinmame.so.* also matches libpinmame.so, so the deploy deleted the library it had just copied.
@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Keeps libpinmame.so out of the Linux plugin cleanup list when building on Windows.

  • Windows Linux cross-builds keep libpinmame.so in the plugin folder.

Reviews (1) · Last reviewed commit: "plugin: keep libpinmame.so when the Linu..." · Reviewed by Greptile

@freezy
freezy merged commit 58811ff into master Nov 15, 2026
17 checks passed
@freezy
freezy deleted the fix/linux-plugins-on-windows branch November 15, 2026 13:47
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.

1 participant