2023-12-07 11:41:09 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
enum eManifestType {
|
|
|
|
MANIFEST_HYPRLOAD,
|
|
|
|
MANIFEST_HYPRPM
|
|
|
|
};
|
|
|
|
|
|
|
|
class CManifest {
|
|
|
|
public:
|
|
|
|
CManifest(const eManifestType type, const std::string& path);
|
|
|
|
|
|
|
|
struct SManifestPlugin {
|
|
|
|
std::string name;
|
|
|
|
std::string description;
|
|
|
|
std::string version;
|
|
|
|
std::vector<std::string> authors;
|
|
|
|
std::vector<std::string> buildSteps;
|
|
|
|
std::string output;
|
2024-01-07 18:15:51 +01:00
|
|
|
bool failed = false;
|
2023-12-07 11:41:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct {
|
|
|
|
std::string name;
|
|
|
|
std::vector<std::string> authors;
|
|
|
|
std::vector<std::pair<std::string, std::string>> commitPins;
|
|
|
|
} m_sRepository;
|
|
|
|
|
|
|
|
std::vector<SManifestPlugin> m_vPlugins;
|
|
|
|
bool m_bGood = true;
|
|
|
|
};
|