generating language res file at build time (#3252)

This commit is contained in:
samuraiGH 2025-03-16 13:28:03 +03:00 committed by GitHub
parent d1fce63d69
commit 7751fe7e75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 12 additions and 13 deletions

1
Localization/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
DefaultLang.resources

Binary file not shown.

View file

@ -12,10 +12,20 @@
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="DefaultLang.resources" />
<EmbeddedResource Include="DefaultLang.resources" Visible="false" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<Target Name="MakeLangResFile" BeforeTargets="BeforeBuild">
<Exec
Command="cd ..\Utils\DefaultLanguageResMaker &amp; LanguageResMaker.exe"
Condition="$(OS) == 'Windows_NT'" />
<Exec
Command="cd ../Utils/DefaultLanguageResMaker &amp;&amp; mono LanguageResMaker.exe"
Condition="$(OS) != 'Windows_NT'" />
</Target>
</Project>

View file

@ -7,10 +7,6 @@ GetSamples.exe _svn\BF BF
GetSamples.exe _svn\PL0\ PL0\
cd ..\..
cd utils\DefaultLanguageResMaker\
LanguageResMaker.exe
cd ..\..
Utils\IncrementVresion\IncrementVresion.exe Configuration\Version.defs REVISION 1
Utils\ReplaceInFiles\ReplaceInFiles.exe Configuration\Version.defs Configuration\GlobalAssemblyInfo.cs.tmpl Configuration\GlobalAssemblyInfo.cs
Utils\ReplaceInFiles\ReplaceInFiles.exe Configuration\Version.defs ReleaseGenerators\PascalABCNET_version.nsh.tmpl ReleaseGenerators\PascalABCNET_version.nsh

View file

@ -1,8 +1,4 @@
#!/bin/sh -e
cd Utils/DefaultLanguageResMaker
mono LanguageResMaker.exe
cd ../..
dotnet build -c Release --no-incremental pabcnetc.sln
dotnet build -c Release --no-incremental PascalABCNETLinux.sln
mono --aot bin/pabcnetc.exe

View file

@ -1,8 +1,4 @@
#!/bin/sh -e
cd Utils/DefaultLanguageResMaker
mono LanguageResMaker.exe
cd ../..
dotnet build -c Release --no-incremental pabcnetc.sln
dotnet build -c Release --no-incremental PascalABCNETLinux.sln
mono --aot bin/pabcnetc.exe