mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Only get git hash when release build so debug build won't slow down but still checking for empty file in debug
This commit is contained in:
parent
d1316c1b56
commit
f5e7aeb6f7
2 changed files with 9 additions and 5 deletions
|
@ -523,10 +523,14 @@
|
|||
<PropertyGroup>
|
||||
<PreBuildEvent>cd $(ProjectDir)
|
||||
|
||||
for %25%25x in (git.exe) do if not [%25%25~$PATH:x]==[] (
|
||||
git rev-parse HEAD > GitHash.txt
|
||||
) else (
|
||||
type nul > GitHash.txt
|
||||
if $(ConfigurationName) == Release (
|
||||
for %25%25x in (git.exe) do if not [%25%25~$PATH:x]==[] (
|
||||
git rev-parse HEAD > GitHash.txt
|
||||
)
|
||||
)
|
||||
|
||||
if not exist GitHash.txt (
|
||||
type nul > GitHash.txt
|
||||
)</PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
|
||||
|
|
|
@ -432,7 +432,7 @@
|
|||
<PreBuildEvent>cd $(ProjectDir)APIKeys\
|
||||
|
||||
if not exist APIKeysLocal.cs (
|
||||
type nul > APIKeysLocal.cs
|
||||
type nul > APIKeysLocal.cs
|
||||
)</PreBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
|
Loading…
Reference in a new issue