Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented download dialog & Qt4 support #22

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: cpp

before_install:
- sudo apt-get install build-essential libqt4-core libqt4-dev libqt4-gui qt4-dev-tools libssl-dev

script:
- cd sample
- qmake
- make
- sudo make install
8 changes: 5 additions & 3 deletions Fervor.pri
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SOURCES += \
$$PWD/fvplatform.cpp \
$$PWD/fvignoredversions.cpp \
$$PWD/fvavailableupdate.cpp \
$$PWD/fvupdateconfirmdialog.cpp
$$PWD/fvdownloaddialog.cpp

HEADERS += \
$$PWD/fvupdatewindow.h \
Expand All @@ -43,10 +43,12 @@ HEADERS += \
$$PWD/fvplatform.h \
$$PWD/fvignoredversions.h \
$$PWD/fvavailableupdate.h \
$$PWD/fvupdateconfirmdialog.h
$$PWD/fvdownloaddialog.h

FORMS += $$PWD/fvupdatewindow.ui \
$$PWD/fvupdateconfirmdialog.ui
$$PWD/fvdownloaddialog.ui

TRANSLATIONS += $$PWD/fervor_lt.ts
CODECFORTR = UTF-8

RESOURCES += $$PWD/fv_resources.qrc
15 changes: 5 additions & 10 deletions README.mdown
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
Check out the [`autoupdate` branch](fervor/tree/autoupdate) by Torben Dannhauer too!

----
## Fervor

Fervor is a simple, multiplatform ([Qt](http://qt.nokia.com/)-based) application update tool, inspired by [Sparkle](http://sparkle.andymatuschak.org/).
![Build status](https://travis-ci.org/alex-97/fervor.svg)

Check out the [`autoupdate` branch](fervor/tree/autoupdate) by Torben Dannhauer too!

# Description
---

Fervor is a software library that you include into your own [Qt](http://qt.nokia.com/)-based application in order to enable the application to automatically check for updates and suggest to install them.

When installed and enabled, Fervor downloads a "flavoured" RSS feed (dubbed "appcast") and checks whether an update to the application is available. The RSS feed ("appcast") lists various versions of the application ("1.0", "1.1", "2.0", ...) that are available for download.

When a newer version of the application is found in the "appcast" (e.g. the user is using 1.0, and 1.1 is available), a dialog is presented to the user (see below for example) that allows the user to choose whether he/she wants to install the update, be reminded about the update later, or skip a particular proposed version altogether. A dialog also shows some release notes about the proposed update that help the user to choose whether or not to install an update.

At the moment, Fervor is not as cool as [Sparkle](http://sparkle.andymatuschak.org/) -- it is not able to install the actual update automatically (the user is given an option to download and install the update manually). Pull requests with unattended install modules for `.dmg`, `.pkg` (Mac OS X), `.msi` (Windows), `.rpm`, `.deb` (Linux) are welcome!

Fervor also supports downloading and installing the updates directly from the application using an integrated dowload dialog.

# Features

Expand All @@ -30,9 +28,6 @@ At the moment, Fervor is not as cool as [Sparkle](http://sparkle.andymatuschak.o

![](http://pypt.github.com/fervor/screenshot-1.png "Update is available")

![](http://pypt.github.com/fervor/screenshot-2.png "Download the update")


# Installation and Usage

(This is a description of the sample application located in `sample/`.)
Expand Down
21 changes: 21 additions & 0 deletions bin/autostyle.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
:: Description: This script changes the style format of
:: all the source code of the project.

:: Setup the command line
@echo off
title Autostyle

:: Go to the directory where the script is run
cd /d %~dp0

:: Style and format the source code recursively
astyle --style=allman -C -S -xG -Y -XW -w -f -F -p -xd -k3 -y -xj -c -K -L --suffix=none --recursive ../*.cpp ../*.h ../*.hxx ../*.cxx

:: Notify the user that we have finished
echo.
echo Code styling complete!
echo.

:: Let the user see the output
pause

19 changes: 19 additions & 0 deletions bin/autostyle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Description: This script changes the style format of
# all the source code of the project.

# Run only on the directory of the script
cd "$(dirname ${BASH_SOURCE[0]})"

# Style and format recursively
astyle --style=allman -C -S -xG -Y -XW -w -f -F -p -xd -k3 -y -xj -c -K -L --suffix=none --recursive ../*.cpp ../*.h ../*.hxx ../*.cxx

# Notify the user that we are done
echo
echo "Code styling complete!"
echo

# Let the user see the output
read -n1 -r -p "Press any key to continue..." key
clear
1 change: 1 addition & 0 deletions bin/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The scripts contained in this folder will require you to install the [astyle](http://astyle.sf.net) source code styler.
5 changes: 5 additions & 0 deletions fv_resources.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/icons">
<file alias="update.png">update.png</file>
</qresource>
</RCC>
Loading