Giter Club home page Giter Club logo

fervor's People

Contributors

bilke avatar huangxinpin avatar pypt avatar todbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fervor's Issues

Add more documentation

So I get the general idea as to how fervor works and I really like it. But even with the sample application I'm still now quite sure how it works? Do I just create an entirely new binary and fervor will take care of the installing and diffing and everything for me? Could you provide some more details in the form of more documentation? Maybe write a wiki article walking through how to take an existing qt application and start using fervor with it.

tl;dr I love this idea! Can you tell me more?

Feed Error:

always gives me the message popup about enclosure error with the download link even when running the sample project too.

The library ignores main application QSettings usage

The library uses its own variable for settings storage, at least in fvignoredversions.cpp (autoupdate branch). When an application uses the library, it might end up storing settings in two different places: one for application settings (if it stores them, for example, in IniFormat), one for Fervor.
I believe this is harder to understand, to maintain and to configure after deploy, than in case where application provides Fervor library with settings variable. The application author would then be free to decide how he wants to store settings, he wouldn't have to comply with library requirements.
I propose to roll back the commit c76d4bc ("reinstate access to QSettings to store ignored version").

Compile error: unresolved external: "extern QSettings *settings;"

Line 31 in fvupdater.cpp:
I get a compile error: "unresolved external" - "extern QSettings* settings;".

This is no wonder. I couldn't find any place in the code where "settings" is actually defined.

Using Qt 5.1, VC 2012 x64.

Loosely translated compile message:
fvupdater.obj : error LNK2019: Link to unresolved external Symbol ""class QSettings * settings" (?settings@@3PEAVQSettings@@ea)" in function ""private: void __cdecl FvUpdater::decideWhatToDoWithCurrentUpdateProposal(void)" (?decideWhatToDoWithCurrentUpdateProposal@FvUpdater@@AEAAXXZ)".

So cross-platform and automatic?

So we use Sparkle right now on Mac and Win Sparkle on PC. We have a cross-platform QT application.

I was wondering if your service would work better. I am looking for an auto-updater that will always ensure the user is using the newest version. I'm fine with a running background service, but I need it working properly. I just need to make sure the user is always running the newest version even if the program is still open.

Would your service do that for me? Thank you.

Crashes quitting the update dialog box

Also I got a few crashes on quitting of the update dialog box, so I think that it could be safer to move call:

FvUpdater::sharedUpdater()->updaterWindowWasClosed();

to

FvUpdateWindow::~FvUpdateWindow()

Just to be on a safe side.

Problem getting Xml file with Qt5.1 from redirected sites

Hi, I tried to use your updater with a redirected XML file hosted by Sourceforge (cf: http://sourceforge.net/projects/serizer/files/Serizer.xml/download).

EDIT : The error is "Connection closed"

I'm using Qt5.1 on OSX Mavericks (the last) with clang64.
I resolve it by settings a UserAgent in request header, I really don't know why but it work like a charm now !

I guess the same fix must be apply to executable downloader function.

I suggest a fix for this problem, set the content-type mime type header is not mandatory but I think it's a better way to using protocol:

diff --git a/fvupdater.cpp b/fvupdater.cpp
index 2e5a429..a958204 100644
--- a/fvupdater.cpp
+++ b/fvupdater.cpp
@@ -289,7 +289,12 @@ void FvUpdater::startDownloadFeed(QUrl url)
{
    m_xml.clear();

-       m_reply = m_qnam.get(QNetworkRequest(url));
+    QNetworkRequest request;
+    request.setHeader(QNetworkRequest::ContentTypeHeader, "application/xml");
+    request.setHeader(QNetworkRequest::UserAgentHeader, QApplication::applicationName());
+    request.setUrl(url);
+
+    m_reply = m_qnam.get(request);

        connect(m_reply, SIGNAL(readyRead()), this, SLOT(httpFeedReadyRead()));
        connect(m_reply, SIGNAL(downloadProgress(qint64, qint64)), this, SLOT(httpFeedUpdateDataReadProgress(qint64, qint64)));

Update window appears below the main window

If update window is called from the dialog box (Preferences in my case), it will appear "below" it.

This call helps:

setWindowModality(Qt::ApplicationModal);

(same in FvUpdateConfirmDialog)

Have them to be app-modal, is a good idea anyway.

DLL entry point not found (QNetworkAccessManager) debug version

I'm using qt 4.8.1 (mingw, winxp). After integrated Fervor in my application, the release version was working,but the debug version doesn't because of an error during the application startup.

Whe the runtime trying to load QtNetwokd4.dll, it doesnt found this export: _ZN10QSslSocket22connectToHostEncryptedERK7QStringt6QFlagsIN9QIODevice12OpenModeFlagEE

I don't understand if it's a Qt distribution bug or a strange mismatch of configuration in my computer.
Are there any other guys with this issue?

Always Offers Version (even if not newer)

Hey Pypt! Thanks for your awesome work! I love this library! It was exactly what I was looking for!

I think I may have found an issue (although it may be my fault). I have my latest version as "2.0.2 Beta" and even when that is the version in my Appcast.xml file and my application, Fervor still offers me an update link. Am I doing something incorrectly?

Thanks for your awesome work!

Chris K

Edit: Nevermind. I just had to run the application again without recompiling it (it had to be the same binary run twice).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.