Commit graph

10 commits

Author SHA1 Message Date
Pat Hartl
a6ca4297d5 List variables when debugging PowerShell script executions 2024-07-07 20:37:39 -05:00
Pat Hartl
9ea51f6fa5 Run powershell instead of powershell.exe 2024-06-19 17:21:49 -05:00
Pat Hartl
6fec91e73e Fix PowerShell scripts, add script debug mode
PowerShell scripts now execute correctly with the client. The built in PowerShell API's serializer will always return null on .NET 8 for some reason. The serializer/deserializer was switched to YAML, mostly due to convenience of already having a package for it.

Added a new settings for enabling script debugging mode. This ensures that when a script is executed, the PowerShell terminal window is not closed. This allows power users to get the same environment that the script executes in. It also allows for some scroll back to see what potentially went wrong in their script.
2024-06-11 21:43:12 -05:00
Pat Hartl
0bf4e8cc6d Import PowerShell cmdlets module based on SDK assembly's location
Fixes #45
2023-12-13 23:38:13 -06:00
Pat Hartl
bc30cc911a Find LANCommander PowerShell module manifest using search
Probably pretty hacky. Environment.CurrentDirectory doesn't seem to be reliable in dev vs prod. In dev it correctly matches the LANCommander.PlaynitePlugin.dll's location. In prod it is the main directory of Playnite.
2023-11-17 22:35:17 -06:00
Pat Hartl
737f2bec84 Fix how arguments are passed to scripts 2023-11-17 21:39:28 -06:00
Pat Hartl
a47b77cc5c Run scripts as admin if directed via script contents 2023-11-17 21:39:01 -06:00
Pat Hartl
f19ef09ff8 Force IgnoreWow64Redirection in scripts 2023-11-17 21:38:37 -06:00
Pat Hartl
196feedded Load PowerShell module on script execution. Add cmdlet to deserialize/decode variables. 2023-11-16 14:34:00 -06:00
Pat Hartl
29dcebb70f New PowerShell runtime with the ability to use variables 2023-11-15 22:38:20 -06:00