diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3b75fbf --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# custom config +fvupdateconfig.h + +# OS X +.DS_Store + +# Qt +*.pro.user diff --git a/Fervor.pro b/Fervor.pro new file mode 100644 index 0000000..9618e7f --- /dev/null +++ b/Fervor.pro @@ -0,0 +1,24 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2012-04-18T13:27:45 +# +#------------------------------------------------- + +QT += core gui webkit + +TARGET = Fervor +VERSION = 1.0 +TEMPLATE = app + +DEFINES += APP_VERSION=\\\"$$VERSION\\\" + +SOURCES += main.cpp\ + mainwindow.cpp \ + fvupdatewindow.cpp + +HEADERS += mainwindow.h \ + fvupdatewindow.h \ + fvupdateconfig.h + +FORMS += mainwindow.ui \ + fvupdatewindow.ui diff --git a/README.mdown b/README.mdown new file mode 100644 index 0000000..d2dbcce --- /dev/null +++ b/README.mdown @@ -0,0 +1 @@ +Fervor is (will / should be) a simple, multiplatform (Qt-based) application autoupdater, "inspired" by [Sparkle](http://sparkle.andymatuschak.org/). diff --git a/fvupdateconfig.h.sample b/fvupdateconfig.h.sample new file mode 100644 index 0000000..77d39e7 --- /dev/null +++ b/fvupdateconfig.h.sample @@ -0,0 +1,13 @@ +#ifndef FVUPDATECONFIG_H +#define FVUPDATECONFIG_H + +// +// Info.plist: +// +// SUEnableSystemProfiling = YES +// SUExpectsDSASignature = YES +// SUFeedURL = http://anglonas.fotonija.lt/MacOSX/updates.php +// SUPublicDSAKeyFile = aupdate_dsa_pub.pem +// + +#endif // FVUPDATECONFIG_H diff --git a/fvupdatewindow.cpp b/fvupdatewindow.cpp new file mode 100644 index 0000000..14b7057 --- /dev/null +++ b/fvupdatewindow.cpp @@ -0,0 +1,16 @@ +#include "fvupdatewindow.h" +#include "ui_fvupdatewindow.h" +#include "fvupdateconfig.h" + + +FvUpdateWindow::FvUpdateWindow(QWidget *parent) : + QWidget(parent), + ui(new Ui::FvUpdateWindow) +{ + ui->setupUi(this); +} + +FvUpdateWindow::~FvUpdateWindow() +{ + delete ui; +} diff --git a/fvupdatewindow.h b/fvupdatewindow.h new file mode 100644 index 0000000..5540908 --- /dev/null +++ b/fvupdatewindow.h @@ -0,0 +1,22 @@ +#ifndef FVUPDATEWINDOW_H +#define FVUPDATEWINDOW_H + +#include + +namespace Ui { +class FvUpdateWindow; +} + +class FvUpdateWindow : public QWidget +{ + Q_OBJECT + +public: + explicit FvUpdateWindow(QWidget *parent = 0); + ~FvUpdateWindow(); + +private: + Ui::FvUpdateWindow *ui; +}; + +#endif // FVUPDATEWINDOW_H diff --git a/fvupdatewindow.ui b/fvupdatewindow.ui new file mode 100644 index 0000000..681600f --- /dev/null +++ b/fvupdatewindow.ui @@ -0,0 +1,136 @@ + + + FvUpdateWindow + + + + 0 + 0 + 615 + 329 + + + + Software Update + + + + + + + 0 + 0 + + + + + 80 + 80 + + + + + 80 + 80 + + + + false + + + + + + + + + + 75 + true + + + + A new version of %s is available! + + + + + + + %s %s is now available - you have %s. Would you like to download it now? + + + + + + + + 75 + true + + + + Release Notes: + + + + + + + about:blank + + + + + + + + + + + + + Skip This Version + + + + + + + + + Remind Me Later + + + + + + + Install Update + + + true + + + true + + + + + + + + + + + + + + QWebView + QWidget +
QtWebKit/QWebView
+
+
+ + +
diff --git a/sample/main.cpp b/sample/main.cpp new file mode 100644 index 0000000..958a0b4 --- /dev/null +++ b/sample/main.cpp @@ -0,0 +1,14 @@ +#include +#include "mainwindow.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + + a.setApplicationVersion(APP_VERSION); + + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/sample/mainwindow.cpp b/sample/mainwindow.cpp new file mode 100644 index 0000000..54db43b --- /dev/null +++ b/sample/mainwindow.cpp @@ -0,0 +1,22 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" +#include "fvupdatewindow.h" +#include + + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); + + updateWindow = new FvUpdateWindow(); + + connect(ui->updateButton, SIGNAL(clicked()), updateWindow, SLOT(show())); +} + +MainWindow::~MainWindow() +{ + delete ui; + delete updateWindow; +} diff --git a/sample/mainwindow.h b/sample/mainwindow.h new file mode 100644 index 0000000..92433c0 --- /dev/null +++ b/sample/mainwindow.h @@ -0,0 +1,25 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include +class FvUpdateWindow; + + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; + FvUpdateWindow* updateWindow; +}; + +#endif // MAINWINDOW_H diff --git a/sample/mainwindow.ui b/sample/mainwindow.ui new file mode 100644 index 0000000..bf14c63 --- /dev/null +++ b/sample/mainwindow.ui @@ -0,0 +1,45 @@ + + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + 140 + 110 + 114 + 32 + + + + Updates + + + + + + + 0 + 0 + 400 + 22 + + + + + + + +