224 Commits

Author SHA1 Message Date
Jeremy Wilson
7de9a8d03d Respect version skipping in win_sparkle_check_update_without_ui
Use UpdateChecker class in win_sparkle_check_update_without_ui() in the
same way that the initial update does, so that silent check respects the
"skip this version" state.

Rationale: manual check should report the latest version even if
previously ignored, but win_sparkle_check_update_without_ui() is more
likely than not used as a replacement for the automatic checks and so
shouldn't annoy people.

See #32.
2014-09-16 17:18:44 +02:00
Václav Slavík
ee52a853c4 Update NEWS for v0.4. v0.4 2014-09-06 13:26:40 +02:00
Václav Slavík
f4abef980a Update distrib.makefile to include x64 builds. 2014-09-06 13:26:40 +02:00
Václav Slavík
9578476f90 Update copyright years. 2014-09-06 12:11:35 +02:00
Václav Slavík
c58140f164 Regenerate project files. 2014-09-06 12:02:22 +02:00
Václav Slavík
c7e0d1a504 VS2012/2013: Don't use SSE2 instructions.
Newer versions of VC++ build for SSE2 by default.  Disable this and use
only basic IA32 instruction set for maximum compatibility.
2014-09-06 12:02:06 +02:00
Václav Slavík
84f7301109 Try harder to set release notes HTML if embedded.
The HTML view would sometimes (but not always) show nonsense when the
text comes from <description> instead of a separate URL.  Fix it by
using the same ugly gross hack that wxWebView does - set the content
twice.  Ugh.

Hopefully fixes #29.
2014-09-03 19:07:36 +02:00
Václav Slavík
e8146b569f Merge pull request #27 from BobCromwell/master
Fix CleanLeftovers can't handle Unicode path.

Finishes 6542e90, which was incomplete and omitted CleanLeftovers().
2014-07-21 16:10:02 +02:00
tianbaoming
07fe601a23 Fix CleanLeftovers can't handle unicode path 2014-07-21 17:54:51 +08:00
Václav Slavík
6542e90ff6 Fix downloading updates if the user directory is non-ASCII.
Use Unicode APIs everywhere related to filenames, including the
temporary directory.

Fixes #26.
2014-07-17 19:21:56 +02:00
Václav Slavík
aff3c9744a Clarify git setup steps in README.
Explicitly mention "cd winsparkle" for those unfamiliar with git.
2014-07-17 11:15:03 +02:00
Václav Slavík
007f0c5189 Don't crash on empty appcasts.
This bug was introduced by PR #14 in ec85b3cfee.

Fixes #24.
2014-06-06 19:11:01 +02:00
Václav Slavík
fef8fa68a8 Update docs link in the README. 2014-05-27 17:45:52 +02:00
Andreas Schyman
dc83f0da5f Added win_sparkle_get_last_check_time to dll_api
Added function win_sparkle_get_last_check_time to dll_api.
2014-04-02 19:03:03 +02:00
Václav Slavík
360c589b0b Merge pull request #14 from alexnovichkov/sparkle_os
Add sparkle:os attribute support for multi-platform feeds.
2014-01-27 09:19:06 -08:00
Alex Novichkov
826deeaa9d Moved is_windows_item() to anonymous namespace,
fixed tabs, added parsing break in OnEndElement()
2014-01-24 09:11:04 +04:00
Alex Novichkov
ec85b3cfee Added possibility to use alternate download locations (sparkle:os attribute) 2014-01-23 17:05:51 +04:00
Vaclav Slavik
d00cab737a Fix .gitattributes syntax & normalize line endings. 2013-10-23 19:14:27 +02:00
Vaclav Slavik
5e4c7a598f Merge branch 'shutdown-on-update' 2013-10-08 09:50:56 +02:00
Vaclav Slavik
38898b74a9 Remove testing code from the example.
Keep the example simple.
2013-10-08 09:50:32 +02:00
Vaclav Slavik
c8f1e1a40f Rename "shutdown_poll" to "can_shutdown".
The function is not really used for periodic polling, so the name didn't fit.
2013-10-08 09:50:15 +02:00
Vaclav Slavik
e17325260f Simply UI when the app can't be terminated.
A modal message dialog is more appropriate for this situation, so use
that instead of another state of the updater window.  Makes for much
simpler code as well.
2013-10-08 09:39:45 +02:00
Vaclav Slavik
368311a31b Move callbacks handling into dedicated ApplicationController class. 2013-10-08 08:26:27 +02:00
Vaclav Slavik
663b66370f Make the callbacks explicitly __cdecl. 2013-10-08 08:25:03 +02:00
Vaclav Slavik
3ce381893c Improve callbacks documentation. 2013-10-01 19:33:22 +02:00
Vaclav Slavik
5a9f2c98cc Fix defects in win_sparkle_set_*_callback() implementations.
Must be wrapped in exception catching. Remove superfluous 'return;'.
2013-10-01 19:33:22 +02:00
Vaclav Slavik
aa4d6df12a Add public types for callback functions to winsparkle.h. 2013-10-01 19:33:22 +02:00
Vaclav Slavik
58129c25fd Remove unused winsparkletypes.h. 2013-10-01 19:20:43 +02:00
Vaclav Slavik
82fc8c72d3 Merge branch 'master' into shutdown-on-update 2013-10-01 19:10:19 +02:00
Vaclav Slavik
d573fa006e Merge branch 'vs2013' 2013-09-30 19:37:50 +02:00
Vaclav Slavik
15db98dd56 Regenerate project files. 2013-09-30 19:37:24 +02:00
Vaclav Slavik
c8aaf9167a Add Visual Studio 2013 support. 2013-09-30 19:36:32 +02:00
Vaclav Slavik
51bd1821a8 Update wxWidgets version used to "almost 3.0". 2013-09-30 19:36:32 +02:00
Vaclav Slavik
d101ba3dbf Add .gitattributes for Visual Studio files. 2013-09-30 19:21:36 +02:00
Vaclav Slavik
ed9a05ef36 Define _CRT_SECURE_NO_WARNINGS in project file, not source. 2013-09-30 19:21:36 +02:00
Örn Guðjónsson
f692660e34 Add API for silent on-demand update checks.
There might be cases where the application would want to check for
updates manually. This would override the users request to not perform
update checks, if that is enabled, so should be used with care.

Add in_sparkle_check_update_without_ui() for this purpose. It is not
completely UI-less, as it still shows the "update available" window, but
it doesn't show any UI unless there actually is an update.
2013-09-29 19:52:17 +02:00
Örn Guðjónsson
bac95e2986 Don't poll host app for termination
Instead of polling the host app for termination we now just display a
message to the user saying that we were unable to shutdown the
application at this time and presenting them with a retry button. If the
application isn't ready when the user presses the retry button nothing
happens. Otherwise we launch the installer and terminate the host.
2013-09-26 16:29:51 +00:00
Örn Guðjónsson
b35e7c781d winsparkle.h no longer imports from src folder
As pointed out by @Vaclav Slavik the public API should be separate from
the private one.
2013-09-26 11:32:17 +00:00
Örn Guðjónsson
1dbae085b4 Untabify
Use spaces instead of tabs. Also change "since version" to 0.4
2013-09-25 23:09:33 +00:00
Örn Guðjónsson
ba556458e0 Provide UI when waiting for host app
Now we continuously poll the host if it's ready to terminate (every .5
second) in a thread while displaying an indefinite progressbar to the
user and telling him that we are waiting for the host to terminate.
2013-09-25 17:27:18 +00:00
Örn Guðjónsson
1b35859e9c Added missing reminder to fix implementation 2013-09-24 17:34:49 +00:00
Örn Guðjónsson
cae3c943a5 Added callbacks for shutting down the host
You can now set up winsparkle with two callbacks:
ShutDownPollCallback and ShutDownRequestCallback.

ShutDownPollCallback asks the application if it's ready to shut down

ShutDownRequestCallback shuts down the application.

These can be set by implementing the functions and calling

win_sparkle_set_shutdown_poll_callback(&shutDownPollCallback);
win_sparkle_set_shutdown_request_callback(&shutDownRequestCallback);

If this is not set, WinSparkle will not try to shut down the host.
2013-09-24 17:31:46 +00:00
Vaclav Slavik
7bffa3d1a3 Increase version to 0.4, update release notes. 2013-08-01 17:04:14 +02:00
Vaclav Slavik
5818d85697 Add win_sparkle_set_app_build_version().
This allows using internal build number for comparing versions and
another (shortVersionString) for display to the user, as on OS X.
2013-07-31 18:12:15 +02:00
Vaclav Slavik
839cf01146 Add support for HTTPS downloads. 2013-07-25 18:16:10 +02:00
Václav Slavík
21fde84fb9 Merge pull request #9 from saghul/download_filename
Get update filename from Content-Disposition header if available
2013-06-30 02:02:50 -07:00
Saúl Ibarra Corretgé
9e885438ea Get update filename from Content-Disposition header if available 2013-06-26 17:19:20 +02:00
Vaclav Slavik
348bcbea9b Rename 3rdparty projects to include "WinSparkle" in them.
This makes using the projects in a parent solution a bit cleaner.
2013-06-18 18:46:55 +02:00
Vaclav Slavik
f0753423e2 Regenerate project files. 2013-06-09 16:56:43 +02:00
Vaclav Slavik
f5502b35e9 VS2012: use v110_xp toolset.
This ensures that WinSparkle.dll is still usable on Windows XP, for
users of VS2012 that need to ship for XP.
2013-06-09 16:56:24 +02:00