Move copy-to-output scripts to Build/ and make them work

This commit is contained in:
YoshiRulz 2020-05-04 04:17:13 +10:00
parent cf252b7ba0
commit 50461f17ee
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
5 changed files with 20 additions and 6 deletions

View File

@ -0,0 +1,11 @@
CHDIR "%~dp0\.."
ROBOCOPY /E Assets output
FOR /D %%D IN (src\BizHawk.Client.EmuHawk\bin\*) DO (
ROBOCOPY %%D output
RENAME output\BizHawk.Client.EmuHawk.exe EmuHawk.exe
RENAME output\BizHawk.Client.EmuHawk.exe.config EmuHawk.exe.config
goto end
)
:end

View File

@ -0,0 +1,6 @@
#!/bin/sh
cd "$(dirname "$0")/.."
cp -f -r Assets/* output || printf ""
cd src/BizHawk.Client.EmuHawk/bin && for d in *; do
cp -f $d/* ../../../output && cd ../../../output && mv BizHawk.Client.EmuHawk.exe EmuHawk.exe && mv BizHawk.Client.EmuHawk.exe.config EmuHawk.exe.config && exit 0
done

View File

@ -1 +0,0 @@
REM TODO

View File

@ -1,2 +0,0 @@
#!/bin/sh
cd "$(dirname "$0")/.." && (cp -r Assets/* output; cp src/BizHawk.Client.EmuHawk/bin/*/* output)

View File

@ -634,8 +634,8 @@
<Compile Update="tools/Watch/WatchValueBox.cs" SubType="Component" />
<Compile Update="UpdateChecker.cs" SubType="Code" />
</ItemGroup>
<Target Name="PreBuild" AfterTargets="PreBuildEvent">
<Exec Command='"$(ProjectDir)..\..\Dist\copy_assets_and_emuhawk_to_output.bat"' Condition=" '$(OS)' == 'Windows_NT' " />
<Exec Command='"$(ProjectDir)../../Dist/copy_assets_and_emuhawk_to_output.sh"' Condition=" '$(OS)' != 'Windows_NT' " />
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command='"$(ProjectDir)..\..\Build\copy_assets_and_emuhawk_to_output.bat"' Condition=" '$(OS)' == 'Windows_NT' " />
<Exec Command='"$(ProjectDir)../../Build/copy_assets_and_emuhawk_to_output.sh"' Condition=" '$(OS)' != 'Windows_NT' " />
</Target>
</Project>