Use "develop" branch when checking for dev builds

This commit is contained in:
Jaex 2021-12-31 23:24:24 +03:00
parent e4721cefb0
commit a3f615d72c
4 changed files with 8 additions and 5 deletions

View file

@ -30,6 +30,8 @@ namespace ShareX.HelpersLib
{
public class AppVeyorUpdateChecker : UpdateChecker
{
public string Branch { get; set; } = "master";
public override void CheckUpdate()
{
try
@ -41,7 +43,7 @@ public override void CheckUpdate()
Proxy = Proxy
};
AppVeyorProject project = appveyor.GetProjectByBranch("master");
AppVeyorProject project = appveyor.GetProjectByBranch(Branch);
if (!project.build.status.Equals("success", StringComparison.InvariantCultureIgnoreCase) &&
!project.build.status.Equals("running", StringComparison.InvariantCultureIgnoreCase))

View file

@ -108,7 +108,7 @@ public static string TitleShort
}
}
public static bool Dev { get; } = false;
public static bool Dev { get; } = true;
public static bool MultiInstance { get; private set; }
public static bool Portable { get; private set; }
public static bool PortableApps { get; private set; }

View file

@ -1781,7 +1781,8 @@ public static void DownloadAppVeyorBuild()
{
IsBeta = Program.Dev,
IsPortable = Program.Portable,
Proxy = HelpersOptions.CurrentProxy.GetWebProxy()
Proxy = HelpersOptions.CurrentProxy.GetWebProxy(),
Branch = "develop"
};
updateChecker.CheckUpdate();
UpdateMessageBox.Start(updateChecker);

View file

@ -30,5 +30,5 @@ You should have received a copy of the GNU General Public License
[assembly: AssemblyProduct("ShareX")]
[assembly: AssemblyCopyright("Copyright (c) 2007-2021 ShareX Team")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("13.7.0")]
[assembly: AssemblyFileVersion("13.7.0")]
[assembly: AssemblyVersion("13.7.1")]
[assembly: AssemblyFileVersion("13.7.1")]