-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Arcomage.csproj
18 lines (18 loc) · 1.33 KB
/
Arcomage.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<Project Sdk="Godot.NET.Sdk/4.3.0">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<InterfaceLocalization><![CDATA[https://docs.google.com/spreadsheets/d/e/2PACX-1vQypyad7a5Yp2Yv54YsFIbJJfxc02OduroayIK16Qt-pqiELdC1sq9v04VY8bANPsqajRV6SB9jTDqR/pub?gid=1374382602&single=true&output=csv]]></InterfaceLocalization>
<CardsLocalization><![CDATA[https://docs.google.com/spreadsheets/d/e/2PACX-1vQypyad7a5Yp2Yv54YsFIbJJfxc02OduroayIK16Qt-pqiELdC1sq9v04VY8bANPsqajRV6SB9jTDqR/pub?gid=885174373&single=true&output=csv]]></CardsLocalization>
<BuildNumberPath>$(MSBuildProjectDirectory)\build.txt</BuildNumberPath>
<CurrentBuildNumber>$([System.DateTime]::Now.ToString("ddMMyyyy"))</CurrentBuildNumber>
</PropertyGroup>
<Target Name="GenerateBuildNumber" BeforeTargets="BeforeBuild">
<Exec Command="echo | set /p=$(CurrentBuildNumber) > $(BuildNumberPath)& exit /b 0" />
</Target>
<Target Name="DownloadFilesBeforeBuild" BeforeTargets="Build">
<Exec Command="curl -L -o "$(MSBuildProjectDirectory)\Locales\Arcomage%20Translations%20-%20Interface.csv" "$(InterfaceLocalization)"" />
<Exec Command="curl -L -o "$(MSBuildProjectDirectory)\Locales\Arcomage%20Translations%20-%20Cards.csv" "$(CardsLocalization)"" />
</Target>
</Project>