0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/deps
jp9000 d3eaeda27c deps/file-updater: Add file updater util. lib
This allows plugins to update and cache data files from a remote source.

Here are the steps that occur when the API initiates an update check:

1.) It checks to see if the local files are greater than the cached
    files.  If the local version is newer (for whatever reason), it
    replaces the cached version(s) with the local version.

2.) A packages.json file is downloaded from the specified URL.  That
    packages.json file contains a version number and a list of files to
    be updated.

3.) If the downloaded package version is greater than the cached
    version, executes step 4-5 on each file.

4.) Checks the version for the file to update in packages.json, and if
    the version is greater than the cached version, proceeds to step 5,
    otherwise repeat step 4-5 for other files.

5.) Calls the callback given to the update function (if any) with the
    file information (file name, buffer, etc), and if the callback
    returns true, allows the cached file to be updated and replaced,
    otherwise goes back to step 4-6 for the rest of the files.

NOTE: Files are never modified directly.  All file saving/modification
is performed in a temporary directory, and then files are moved to their
destination.  This should eliminate any possibility of file corruption
(or at least dramatically reduce the possibility).
2015-08-19 15:48:04 -07:00
..
file-updater deps/file-updater: Add file updater util. lib 2015-08-19 15:48:04 -07:00
glad deps-glad: Only link to libdl on Linux 2015-05-03 14:38:24 +02:00
ipc-util ipc-util: Fix access rights issue with IPC pipe 2015-07-05 15:17:08 -07:00
jansson Merge pull request #424 from fryshorts/bsd-build-fixes 2015-05-05 04:46:16 -07:00
libff deps-libff: Adjust start_pts if invalid pts found 2015-08-02 15:54:35 -05:00
w32-pthreads deps-w32-pthreads: Update FSF address 2015-07-11 09:10:27 -07:00
CMakeLists.txt deps/file-updater: Add file updater util. lib 2015-08-19 15:48:04 -07:00