From effd509200169d24f6c59bb34cc623152c480454 Mon Sep 17 00:00:00 2001 From: Andrew Gutekanst Date: Mon, 15 Jan 2024 14:46:24 -0500 Subject: [PATCH] Make package-release.bat work with Windows version < 11 --- package-release.bat | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package-release.bat b/package-release.bat index 4724f52..521eda2 100644 --- a/package-release.bat +++ b/package-release.bat @@ -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 )