Move copy-to-output scripts to Build/ and make them work
This commit is contained in:
parent
cf252b7ba0
commit
50461f17ee
|
@ -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
|
|
@ -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
|
|
@ -1 +0,0 @@
|
|||
REM TODO
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
cd "$(dirname "$0")/.." && (cp -r Assets/* output; cp src/BizHawk.Client.EmuHawk/bin/*/* output)
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue