mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Bazaar/Updater : cleaned test application
git-svn-id: svn://ultimatepp.org/upp/trunk@3015 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
777fd2e0ba
commit
055f73a345
1 changed files with 7 additions and 6 deletions
|
|
@ -1,21 +1,22 @@
|
|||
#include <Updater/Updater.h>
|
||||
|
||||
double GetMaxVersion(void)
|
||||
{
|
||||
return 1.6;
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
Updater updater;
|
||||
updater
|
||||
.SetMaxVersion(GetMaxVersion())
|
||||
.SetMaxVersion(1.60)
|
||||
.SetWebRoot("www.timberstruct.com/webupdater/updatertest")
|
||||
.UpdateManual();
|
||||
|
||||
// run updater -- DON'T change this !
|
||||
if(!updater.Run())
|
||||
return;
|
||||
|
||||
// run the default prompts -- see Updater source code
|
||||
// if you need some fine-grained control
|
||||
if(!updater.DefaultPrompts())
|
||||
return;
|
||||
|
||||
PromptOK("App version is 1.00");
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue