diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-12-16 17:56:42 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-12-16 17:56:42 +0300 |
commit | f939bd0194f05167ec83afbed4e957ea8fcbb0e6 (patch) | |
tree | 996a60c51a4fdb28a8c201b5c0631401d0473462 /hakchi_gui.csproj | |
parent | c9e004eb3867c51663dc565404864d99cd682685 (diff) |
Fixes
Diffstat (limited to 'hakchi_gui.csproj')
-rw-r--r-- | hakchi_gui.csproj | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj index 654c2db5..e818b3cd 100644 --- a/hakchi_gui.csproj +++ b/hakchi_gui.csproj @@ -2364,6 +2364,9 @@ <Content Include="mods\mod_hakchi\hakchi\rootfs\etc\preinit.d\p7020_usb">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
+ <Content Include="data\zImage">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
<None Include="Properties\app.manifest" />
<Content Include="user_mods\snes_custom_filters.hmod\canoe-custom-filters">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
@@ -2807,8 +2810,18 @@ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
+ <PreBuildEvent>echo. > NUL 2> "$(ProjectDir)commit.txt"
+
+git --version && (
+ for /f %25%25i in ('git rev-parse --short HEAD') do (
+ git diff-index --quiet HEAD -- && (
+ echo|set /p="%25%25i" >> "$(ProjectDir)commit.txt"
+ SET ERRORLEVEL=0
+ ) || (
+ echo|set /p="%25%25i (dirty)" >> "$(ProjectDir)commit.txt"
+ )
+ )
+) || SET ERRORLEVEL=0</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>
|