Commit Graph
26 Commits
Author SHA1 Message Date
Kenneth Skovhede fac12ba772 Further consolidated the data folder.
Added support for `--portable-mode` and `--server-datafolder` for the CLI, ServerUtil, and Agent.

Fixed a few places where file reads were not cached properly.

Moved some responsibilities of UpdaterManager into DataFolderManager.

This now supports storing `machineid.txt` and `installation.txt` inside the path pointed to by `--server-datafolder` or alternatively with `--portable-mode`.

It is possible that some fringe backwards compatibility is lost with this update.

Fixed an issue with AutoUpdater crashing on check/download.

This fixes #5902
2025-01-28 13:01:35 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth Skovhede 05e5fbcf80 Fixed issue with recovery-tool help.
Cleaned up some loading of embedded resourse to rely on type instead of assembly name.
Implemented installed executable name instead of using Windows executable names.
2024-05-21 08:26:40 +02:00
Kenneth Skovhede b8f9a634e3 Fixed issues with checking signed manifest 2024-05-04 08:01:01 +02:00
Kenneth Skovhede 5b9e294dec Revisiting the machine-id concept.
Removed the text from the update folder as it is no longer being used.
Added a new `machineid.txt` file that controls the machine-id.
De-coupled the machine-id from the installationid as the latter is used for usage reporting, and should not be connected to the machine-id
2024-04-29 17:58:00 +02:00
Kenneth Skovhede a1a4042198 Added support for having multiple valid keys for a manifest 2024-03-27 11:24:49 +01:00
Kenneth Skovhede 115e887802 Implemented new updater logic that supports multi-arch distributions. 2024-03-15 14:18:56 +01:00
Kenneth Skovhede 473c6cbbb8 Merge commit '4f577c65a4d8806f79637c50c21ca3a683c5a07a' into feature/kestrel-avalonia-upgrade 2024-03-04 12:21:53 +01:00
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Max 41a5591532 upstream 2019-12-25 16:34:56 +01:00
Kenneth Hsu 2aa76881a5 Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2019-10-19 13:59:22 -07:00
BlueBlock 1c28cf0b15 refactor AutoUpdater to an exe and a library 2019-09-06 16:57:44 -04:00
verhoek ae5d6ffcc7 Added option to generate new priv/pub key pair without verifying the manifest. 2018-12-23 20:32:21 +01:00
Kenneth Hsu 07c1d85b4a Remove empty statements. 2018-10-10 21:22:31 -07:00
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede 0c68daff6c Fixed all whitespace to be 4 spaces instead of tabs 2016-09-15 11:39:27 +02:00
Kenneth Skovhede c5be6a1652 Added release type to update manager to avoid relying on a valid manifest for the install 2016-04-26 10:32:21 +02:00
Kenneth Skovhede d4257f877d Added overrides to allow OEM provided values for auto-update settings 2016-04-23 08:13:40 +02:00
Kenneth Skovhede e11a59a4fa Fix the mapping for pre-update channel releases 2016-03-13 12:54:30 +01:00
Kenneth Skovhede 045f4caacb Added detection of channel by parsing custom updater urls 2016-03-13 12:27:33 +01:00
Kenneth Skovhede e0237b5309 Implemented two new build channels: beta and canary.
Updated build system to allow building various types of releases.
2016-03-11 22:55:32 +01:00
Kenneth Skovhede 8d13e698eb Updated copyright notices 2015-01-20 21:44:52 +01:00
Kenneth Skovhede ef3a62bf72 Changed the default for auto-update to be notify instead of install.
Added the --auto-update option to the commandline to allow automatic updates.
Added a new Duplicati.Library.AutoUpdater.exe tool to work with updates, especially handy if the update breaks the install and for manual handling of updates.
2014-08-17 15:45:44 +02:00
Kenneth Skovhede 8c75afb5b8 Bugfix for the ID property 2014-07-15 21:57:45 +02:00
Kenneth Skovhede 2ba86487ab Added install-id and user-agent to updater requests 2014-07-09 21:16:51 +02:00
Kenneth Skovhede 9841dbc7ac Updated the autoupdater to use a static instance and fixed a number of paths to use the base dir.
Added a current pointer-file to allow running with a version that is not the newest.
Updater is now working except for OSX, where the bundle setup is causing issues when running the loaded instance.
2014-07-03 11:01:49 +02:00