This is dumb

This reverts commit d694213000.
This commit is contained in:
YoshiRulz 2020-05-04 07:21:52 +10:00
parent d694213000
commit 245cbfbcea
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
6 changed files with 40 additions and 9 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

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

View File

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

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<ApplicationIcon>discohawk.ico</ApplicationIcon>
<DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<OutputPath>$(ProjectDir)bin</OutputPath>
<OutputType>Exe</OutputType>
<TargetFramework>net48</TargetFramework>
</PropertyGroup>
@ -82,4 +82,8 @@
<EmbeddedResource Update="MainDiscoForm.resx" DependentUpon="MainDiscoForm.cs" SubType="Designer" />
-->
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command='"$(ProjectDir)..\..\Build\copy_discohawk_to_output.bat"' Condition=" '$(OS)' == 'Windows_NT' " />
<Exec Command='"$(ProjectDir)../../Build/copy_discohawk_to_output.sh"' Condition=" '$(OS)' != 'Windows_NT' " />
</Target>
</Project>

View File

@ -5,10 +5,9 @@
<ApplicationIcon>images/logo.ico</ApplicationIcon>
<ApplicationManifest>app.manifest</ApplicationManifest>
<DefineConstants>$(DefineConstants);EXE_PROJECT</DefineConstants>
<OutputPath>$(ProjectDir)../../output</OutputPath>
<OutputPath>$(ProjectDir)bin</OutputPath>
<OutputType>WinExe</OutputType>
<TargetFramework>net48</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<!--
<PropertyGroup>
@ -413,7 +412,6 @@
<Compile Update="PlatformChooser.cs" SubType="Form" />
<Compile Update="PlatformChooser.Designer.cs" DependentUpon="PlatformChooser.cs" />
<EmbeddedResource Update="PlatformChooser.resx" DependentUpon="PlatformChooser.cs" />
<!-- creates circular dependency
<Compile Update="Properties/Resources.cs" DependentUpon="Resources.resx" />
-->
@ -639,10 +637,8 @@
<Compile Update="tools/Watch/WatchValueBox.cs" SubType="Component" />
<Compile Update="UpdateChecker.cs" SubType="Code" />
</ItemGroup>
<Target Name="EmuHawkAfterBuild" AfterTargets="Build">
<ItemGroup>
<AssetFiles Include="$(ProjectDir)../../Assets/**/*.*" Exclude="$(ProjectDir)../../Assets/**/.gitempty;$(ProjectDir)../../Assets/**/.gitignore" />
</ItemGroup>
<Copy SourceFiles="@(AssetFiles)" DestinationFolder="$(OutputPath)%(RecursiveDir)" SkipUnchangedFiles="true" />
<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>