-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.Build.targets.example
21 lines (20 loc) · 1.03 KB
/
Directory.Build.targets.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Project>
<PropertyGroup>
<DvInstallDir>D:\Programs\Derail Valley</DvInstallDir>
<UnityInstallDir>D:\Programs\Unity\2019.4.40f1\Editor</UnityInstallDir>
<ReferencePath>
$(DvInstallDir)\DerailValley_Data\Managed\;
$(DvInstallDir)\DerailValley_Data\Managed\UnityModManager\;
$(UnityInstallDir)\Data\Managed\
</ReferencePath>
<AssemblySearchPaths>$(AssemblySearchPaths);$(ReferencePath);</AssemblySearchPaths>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<!-- Copy to build folder -->
<Copy SourceFiles="$(TargetPath)" DestinationFolder="build/" />
<!-- Package after Release build -->
<Exec Condition="'$(OS)' == 'Windows_NT'" Command="powershell -executionpolicy bypass .\package.ps1 -NoArchive -OutputDirectory '$(DvInstallDir)\Mods'" />
<!-- Linux -->
<Exec Condition="'$(OS)' != 'Windows_NT'" Command="pwsh -Command "(package.ps1)"" />
</Target>
</Project>