From ede3c5cb3e7fc0144c870bbdca7c7c1f9901289b Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Wed, 8 Oct 2014 02:32:10 +0100 Subject: [PATCH] Add a xml for updates and add new config function to fervor --- cmake/PlaYUVerUpdate.xml.in | 58 +++++++++++++++++++++++++++++++++++++ config.h.in | 2 +- source/app/main.cpp | 3 +- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 cmake/PlaYUVerUpdate.xml.in diff --git a/cmake/PlaYUVerUpdate.xml.in b/cmake/PlaYUVerUpdate.xml.in new file mode 100644 index 0000000..4597662 --- /dev/null +++ b/cmake/PlaYUVerUpdate.xml.in @@ -0,0 +1,58 @@ + + + + + Your Great App's Changelog + http://pypt.github.com/fervor/Appcast.xml + Most recent changes with links to updates. + en + + + + Version @PLAYUVER_VERSION@ + Mon, 09 Jan 2006 19:20:11 +0000 + http://htmlpreview.github.io/?https://github.com/pixlra/playuver/blob/@GIT_BRANCH@/resources/releaseNotes.html + + + http://htmlpreview.github.io/?https://github.com/pixlra/playuver/blob/@GIT_BRANCH@/resources/releaseNotes.html + http://htmlpreview.github.io/?https://github.com/pixlra/playuver/blob/@GIT_BRANCH@/resources/releaseNotes.html + + + + + + + + + + + + + + + diff --git a/config.h.in b/config.h.in index 5174a01..8e7c4a0 100644 --- a/config.h.in +++ b/config.h.in @@ -33,7 +33,7 @@ #define PLAYUVER_VERSION @PLAYUVER_VERSION@ #define PLAYUVER_VERSION_STRING "@PLAYUVER_VERSION@" -#define DEPENDENCIES_STRING @DEPENDENCIES_STRING@ +#define DEPENDENCIES_STRING "@DEPENDENCIES_STRING@" /* QT definition */ #cmakedefine USE_QT4 diff --git a/source/app/main.cpp b/source/app/main.cpp index 739cf8f..f437c96 100644 --- a/source/app/main.cpp +++ b/source/app/main.cpp @@ -50,7 +50,8 @@ int main( int argc, char *argv[] ) w.show(); w.parseArgs( argc, argv ); #ifdef USE_FERVOR - FvUpdater::sharedUpdater()->SetFeedURL("http://192.168.96.201/share/jcarreira.it.pub/plaYUVer/playuver-update.xml"); + FvUpdater::sharedUpdater()->SetFeedURL("http://192.168.96.201/share/jcarreira.it.pub/plaYUVer/PlaYUVerUpdate.xml"); + FvUpdater::sharedUpdater()->SetDependencies(DEPENDENCIES_STRING); #endif return a.exec(); }