mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-22 11:58:55 +00:00
Gpt4all Custom Updater
This PR establishes the initial infrastructure required to migrate gpt4all away from reliance on the IFW framwork by implementing a custom updater. This custom updater (currently headless only) can perform the same operations as the existing updater with the option for more functionality to be added and most importantly, is installer agnostic, meaning gpt4all can start to leverage platform specific installers. Implements both offline and online installation and update mechanisms. Initial implementation of: https://github.com/nomic-ai/gpt4all/issues/2878 Signed-off-by: John Parent <john.parent@kitware.com>
This commit is contained in:
30
gpt4all-updater/include/CommandLine.h
Normal file
30
gpt4all-updater/include/CommandLine.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <QCommandLineParser>
|
||||
|
||||
|
||||
namespace gpt4all {
|
||||
namespace command {
|
||||
|
||||
enum CommandType {
|
||||
UPDATE,
|
||||
MODIFY,
|
||||
DOWNGRADE,
|
||||
UNINSTALL
|
||||
};
|
||||
|
||||
class CommandLine : public QObject
|
||||
{
|
||||
public:
|
||||
CommandLine();
|
||||
~CommandLine();
|
||||
void parse(QCoreApplication &app);
|
||||
CommandType command();
|
||||
private:
|
||||
CommandType type;
|
||||
QCommandLineParser * parser;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user