GH-1060 implement very basic updater (only linux and maybe osx right now)

This commit is contained in:
Petr Mrázek
2015-06-08 02:43:16 +02:00
parent 166813cb91
commit 82e05661d2
8 changed files with 170 additions and 116 deletions

View File

@ -88,22 +88,17 @@ struct Operation
OP_DELETE,
} type;
//! The file to operate on. If this is a DELETE or CHMOD operation, this is the file that will be modified.
//! The file to operate on.
QString file;
//! The destination file. If this is a DELETE or CHMOD operation, this field will be ignored.
//! The destination file.
QString dest;
//! The mode to change the source file to. Ignored if this isn't a CHMOD operation.
//! The mode to change the source file to.
int mode;
};
typedef QList<Operation> OperationList;
/**
* Takes the @OperationList list and writes an install script for the updater to the update files directory.
*/
bool writeInstallScript(OperationList& opsList, QString scriptFile);
/**
* Loads the file list from the given version info JSON object into the given list.
*/