summaryrefslogtreecommitdiffstats
path: root/logic/updater/GoUpdate.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-06-08 02:43:16 +0200
committerPetr Mrázek <peterix@gmail.com>2015-06-09 00:03:42 +0200
commit82e05661d207621f917d79ebd513abc57a36c084 (patch)
treeb13eb12af54ff1a6214d9b0c7b34ce6a9e5aa975 /logic/updater/GoUpdate.h
parent166813cb918ebd029325e12377989bfdc2021074 (diff)
downloadMultiMC-82e05661d207621f917d79ebd513abc57a36c084.tar
MultiMC-82e05661d207621f917d79ebd513abc57a36c084.tar.gz
MultiMC-82e05661d207621f917d79ebd513abc57a36c084.tar.lz
MultiMC-82e05661d207621f917d79ebd513abc57a36c084.tar.xz
MultiMC-82e05661d207621f917d79ebd513abc57a36c084.zip
GH-1060 implement very basic updater (only linux and maybe osx right now)
Diffstat (limited to 'logic/updater/GoUpdate.h')
-rw-r--r--logic/updater/GoUpdate.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/logic/updater/GoUpdate.h b/logic/updater/GoUpdate.h
index 941c4e3a..21976f8f 100644
--- a/logic/updater/GoUpdate.h
+++ b/logic/updater/GoUpdate.h
@@ -88,23 +88,18 @@ 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.
*/
bool parseVersionInfo(const QByteArray &data, VersionFileList& list, QString &error);