Skip to content

Commit

Permalink
Merge pull request #17 from Fexty12573/fix-packaging-script
Browse files Browse the repository at this point in the history
Make package-release.bat work with Windows version < 11
  • Loading branch information
Andoryuuta authored Jan 15, 2024
2 parents 5dc9f04 + effd509 commit 97ec803
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions package-release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ set PLUGINS_DIR=%OUTPUT_ROOT_DIR%\nativePC\plugins
set LOADER_DIR=%PLUGINS_DIR%\CSharp\Loader

if "%CONFIGURATION%" == "Debug" (
xcopy /Y /-I "%SOLUTION_DIR%\SharpPluginLoader.Bootstrapper\bin\Debug\net8.0\SharpPluginLoader.Bootstrapper.dll" "%LOADER_DIR%\SharpPluginLoader.Bootstrapper.Debug.dll"
xcopy /Y /-I "%SOLUTION_DIR%\SharpPluginLoader.Core\bin\Debug\net8.0\SharpPluginLoader.Core.Debug.dll" "%LOADER_DIR%\SharpPluginLoader.Core.Debug.dll"
xcopy /Y /-I "%SOLUTION_DIR%\Assets\Default.Debug.bin" "%LOADER_DIR%\Default.Debug.bin"
xcopy /Y /-I "%SOLUTION_DIR%\x64\Debug\mhw-cs-plugin-loader.dll" "%OUTPUT_ROOT_DIR%\winmm.dll"
xcopy /Y /-I "%SOLUTION_DIR%\mhw-cs-plugin-loader\SharpPluginLoader.runtimeconfig.json" "%LOADER_DIR%\SharpPluginLoader.runtimeconfig.json"
echo F | xcopy "%SOLUTION_DIR%\SharpPluginLoader.Bootstrapper\bin\Debug\net8.0\SharpPluginLoader.Bootstrapper.dll" "%LOADER_DIR%\SharpPluginLoader.Bootstrapper.Debug.dll" > nul
echo F | xcopy "%SOLUTION_DIR%\SharpPluginLoader.Core\bin\Debug\net8.0\SharpPluginLoader.Core.Debug.dll" "%LOADER_DIR%\SharpPluginLoader.Core.Debug.dll" > nul
echo F | xcopy "%SOLUTION_DIR%\Assets\Default.Debug.bin" "%LOADER_DIR%\Default.Debug.bin" > nul
echo F | xcopy "%SOLUTION_DIR%\x64\Debug\mhw-cs-plugin-loader.dll" "%OUTPUT_ROOT_DIR%\winmm.dll" > nul
echo F | xcopy "%SOLUTION_DIR%\mhw-cs-plugin-loader\SharpPluginLoader.runtimeconfig.json" "%LOADER_DIR%\SharpPluginLoader.runtimeconfig.json" > nul
) else if "%CONFIGURATION%" == "Release" (
xcopy /Y /-I "%SOLUTION_DIR%\SharpPluginLoader.Bootstrapper\bin\Release\net8.0\SharpPluginLoader.Bootstrapper.dll" "%LOADER_DIR%\SharpPluginLoader.Bootstrapper.dll"
xcopy /Y /-I "%SOLUTION_DIR%\SharpPluginLoader.Core\bin\Release\net8.0\SharpPluginLoader.Core.dll" "%LOADER_DIR%\SharpPluginLoader.Core.dll"
xcopy /Y /-I "%SOLUTION_DIR%\Assets\Default.bin" "%LOADER_DIR%\Default.bin"
xcopy /Y /-I "%SOLUTION_DIR%\x64\Release\mhw-cs-plugin-loader.dll" "%OUTPUT_ROOT_DIR%\winmm.dll"
xcopy /Y /-I "%SOLUTION_DIR%\mhw-cs-plugin-loader\SharpPluginLoader.runtimeconfig.json" "%LOADER_DIR%\SharpPluginLoader.runtimeconfig.json"
echo F | xcopy "%SOLUTION_DIR%\SharpPluginLoader.Bootstrapper\bin\Release\net8.0\SharpPluginLoader.Bootstrapper.dll" "%LOADER_DIR%\SharpPluginLoader.Bootstrapper.dll" > nul
echo F | xcopy "%SOLUTION_DIR%\SharpPluginLoader.Core\bin\Release\net8.0\SharpPluginLoader.Core.dll" "%LOADER_DIR%\SharpPluginLoader.Core.dll" > nul
echo F | xcopy "%SOLUTION_DIR%\Assets\Default.bin" "%LOADER_DIR%\Default.bin" > nul
echo F | xcopy "%SOLUTION_DIR%\x64\Release\mhw-cs-plugin-loader.dll" "%OUTPUT_ROOT_DIR%\winmm.dll" > nul
echo F | xcopy "%SOLUTION_DIR%\mhw-cs-plugin-loader\SharpPluginLoader.runtimeconfig.json" "%LOADER_DIR%\SharpPluginLoader.runtimeconfig.json" > nul
)

0 comments on commit 97ec803

Please sign in to comment.