Skip to content

Commit

Permalink
Check is AppVeyor 7zip path correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaex committed Aug 26, 2016
1 parent 4d3c14b commit fc6cab7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ShareX.Setup/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ private enum SetupType
private static string SteamLauncherDir => Path.Combine(ParentDir, @"..\ShareX_Steam\ShareX_Steam\bin\Release");
private static string SteamUpdatesDir => Path.Combine(SteamOutputDir, "Updates");
private static string ChromeReleaseDir => Path.Combine(ParentDir, @"..\ShareX_Chrome\ShareX_Chrome\bin\Release");
private static string InnoSetupCompilerPath => @"C:\Program Files (x86)\Inno Setup 5\ISCC.exe";
private static string ZipPath => Setup == SetupType.AppVeyor ? "7z" : @"C:\Program Files\7-Zip\7z.exe";
private static string InnoSetupCompilerPath = @"C:\Program Files (x86)\Inno Setup 5\ISCC.exe";
private static string ZipPath = @"C:\Program Files\7-Zip\7z.exe";

private static void Main(string[] args)
{
Expand Down Expand Up @@ -259,12 +259,13 @@ private static void CreatePortable(string destination)

private static void OpenOutputDirectory()
{
Process.Start("explorer.exe", OutputDir);
Process.Start(OutputDir);
}

private static void UploadLatestFile()
{
FileInfo fileInfo = new DirectoryInfo(OutputDir).GetFiles("*.exe").OrderByDescending(f => f.LastWriteTime).FirstOrDefault();

if (fileInfo != null)
{
Console.WriteLine("Uploading setup file.");
Expand Down

0 comments on commit fc6cab7

Please sign in to comment.