mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Make update URL a compile time option
This commit is contained in:
parent
2bee51c101
commit
58fd57fdcd
3 changed files with 6 additions and 1 deletions
|
@ -3,6 +3,8 @@ set( APPLICATION_NAME "ownCloud" )
|
|||
set( APPLICATION_EXECUTABLE "owncloud" )
|
||||
set( APPLICATION_DOMAIN "owncloud.com" )
|
||||
set( APPLICATION_VENDOR "ownCloud, Inc" )
|
||||
set( APPLICATION_UPDATE_URL "https://updates.owncloud.com/client/" )
|
||||
|
||||
set( THEME_CLASS "ownCloudTheme" )
|
||||
set( APPLICATION_REV_DOMAIN "com.owncloud.desktopclient" )
|
||||
set( WIN_SETUP_BITMAP_PATH "${CMAKE_SOURCE_DIR}/admin/win/nsi" )
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#cmakedefine APPLICATION_NAME "@APPLICATION_NAME@"
|
||||
#cmakedefine APPLICATION_SHORTNAME "@APPLICATION_SHORTNAME@"
|
||||
#cmakedefine APPLICATION_EXECUTABLE "@APPLICATION_EXECUTABLE@"
|
||||
#cmakedefine APPLICATION_UPDATE_URL "@APPLICATION_UPDATE_URL@"
|
||||
|
||||
#cmakedefine SYSCONFDIR "@SYSCONFDIR@"
|
||||
#cmakedefine DATADIR "@DATADIR@"
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include "mirall/sparkleupdater.h"
|
||||
#include "mirall/ocupdater.h"
|
||||
|
||||
#include "config.h"
|
||||
|
||||
namespace Mirall {
|
||||
|
||||
Updater *Updater::_instance = 0;
|
||||
|
@ -29,7 +31,7 @@ Updater * Updater::instance()
|
|||
|
||||
Updater *Updater::create()
|
||||
{
|
||||
QString updateBaseUrl(QLatin1String("http://update.thinkpad/"));
|
||||
QString updateBaseUrl(QLatin1String(APPLICATION_UPDATE_URL));
|
||||
#ifdef Q_OS_MAC
|
||||
return new SparkleUpdater(updateBaseUrl+QLatin1String("/rss/");
|
||||
#elif defined (Q_OS_WIN32)
|
||||
|
|
Loading…
Reference in a new issue