mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-29 08:51:36 +13:00
Use "develop" branch when checking for dev builds
This commit is contained in:
parent
e4721cefb0
commit
a3f615d72c
4 changed files with 8 additions and 5 deletions
|
@ -30,6 +30,8 @@ namespace ShareX.HelpersLib
|
||||||
{
|
{
|
||||||
public class AppVeyorUpdateChecker : UpdateChecker
|
public class AppVeyorUpdateChecker : UpdateChecker
|
||||||
{
|
{
|
||||||
|
public string Branch { get; set; } = "master";
|
||||||
|
|
||||||
public override void CheckUpdate()
|
public override void CheckUpdate()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -41,7 +43,7 @@ public override void CheckUpdate()
|
||||||
Proxy = Proxy
|
Proxy = Proxy
|
||||||
};
|
};
|
||||||
|
|
||||||
AppVeyorProject project = appveyor.GetProjectByBranch("master");
|
AppVeyorProject project = appveyor.GetProjectByBranch(Branch);
|
||||||
|
|
||||||
if (!project.build.status.Equals("success", StringComparison.InvariantCultureIgnoreCase) &&
|
if (!project.build.status.Equals("success", StringComparison.InvariantCultureIgnoreCase) &&
|
||||||
!project.build.status.Equals("running", StringComparison.InvariantCultureIgnoreCase))
|
!project.build.status.Equals("running", StringComparison.InvariantCultureIgnoreCase))
|
||||||
|
|
|
@ -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 MultiInstance { get; private set; }
|
||||||
public static bool Portable { get; private set; }
|
public static bool Portable { get; private set; }
|
||||||
public static bool PortableApps { get; private set; }
|
public static bool PortableApps { get; private set; }
|
||||||
|
|
|
@ -1781,7 +1781,8 @@ public static void DownloadAppVeyorBuild()
|
||||||
{
|
{
|
||||||
IsBeta = Program.Dev,
|
IsBeta = Program.Dev,
|
||||||
IsPortable = Program.Portable,
|
IsPortable = Program.Portable,
|
||||||
Proxy = HelpersOptions.CurrentProxy.GetWebProxy()
|
Proxy = HelpersOptions.CurrentProxy.GetWebProxy(),
|
||||||
|
Branch = "develop"
|
||||||
};
|
};
|
||||||
updateChecker.CheckUpdate();
|
updateChecker.CheckUpdate();
|
||||||
UpdateMessageBox.Start(updateChecker);
|
UpdateMessageBox.Start(updateChecker);
|
||||||
|
|
|
@ -30,5 +30,5 @@ You should have received a copy of the GNU General Public License
|
||||||
[assembly: AssemblyProduct("ShareX")]
|
[assembly: AssemblyProduct("ShareX")]
|
||||||
[assembly: AssemblyCopyright("Copyright (c) 2007-2021 ShareX Team")]
|
[assembly: AssemblyCopyright("Copyright (c) 2007-2021 ShareX Team")]
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
[assembly: AssemblyVersion("13.7.0")]
|
[assembly: AssemblyVersion("13.7.1")]
|
||||||
[assembly: AssemblyFileVersion("13.7.0")]
|
[assembly: AssemblyFileVersion("13.7.1")]
|
Loading…
Reference in a new issue