Removed GitHash creation

This commit is contained in:
Jaex 2015-09-06 12:18:05 +03:00
parent 4ff8f97334
commit c203334ed5
2 changed files with 2 additions and 27 deletions

View file

@ -299,12 +299,6 @@ private static void Run()
DebugHelper.WriteLine("Command line: " + Environment.CommandLine);
DebugHelper.WriteLine("Personal path: " + PersonalPath);
string gitHash = GetGitHash();
if (!string.IsNullOrEmpty(gitHash))
{
DebugHelper.WriteLine("Git: https://github.com/ShareX/ShareX/tree/" + gitHash);
}
LoadProgramSettings();
UploaderSettingsResetEvent = new ManualResetEvent(false);
@ -550,15 +544,6 @@ public static void UploadersConfigSaveAsync()
}
}
public static string GetGitHash()
{
using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("ShareX.GitHash.txt"))
using (StreamReader reader = new StreamReader(stream))
{
return reader.ReadLine();
}
}
private static bool CheckAdminTasks()
{
if (CLI.IsCommandExist("dnschanger"))

View file

@ -988,7 +988,6 @@
</None>
<None Include="Resources\barcode-2d.png" />
<None Include="Resources\GitHub.png" />
<EmbeddedResource Include="GitHash.txt" />
<None Include="Resources\Twitter.ico" />
<None Include="Resources\folder.png" />
<None Include="Resources\clipboard.png" />
@ -1057,17 +1056,8 @@
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>cd $(ProjectDir)
if $(ConfigurationName) == Release (
for %25%25x in (git.exe) do if not [%25%25~$PATH:x]==[] (
git rev-parse HEAD &gt; GitHash.txt
)
)
if not exist GitHash.txt (
type nul &gt; GitHash.txt
)</PreBuildEvent>
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.