Skip to content

Commit

Permalink
Move to extension packaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Aug 9, 2024
1 parent 3c5372b commit 24bcc78
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ cmake_minimum_required(VERSION 3.16)

project(installer_manual)

find_package(mo2-cmake CONFIG REQUIRED)

mo2_configure_extension()

add_subdirectory(src)
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"id": "mo2-installer-manual",
"name": "Manual Installer",
"version": "1.0.2",
"description": "Fallback installer for mods that can be extracted but can't be handled by another installer.",
"icon": "icon.png",
"author": {
"name": "Mod Organizer 2",
"homepage": "https://www.modorganizer.org/"
},
"contributors": [
"AL",
"Holt59",
"isanae",
"LePresidente",
"LostDragonist",
"Silarn",
"Tannin",
"TheBloke",
"Thomas Tanner"
],
"type": "plugin",
"content": {
"plugins": {
"autodetect": true
},
"translations": {
"autodetect": "translations"
}
}
}
15 changes: 5 additions & 10 deletions src/installer_manual_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
<context>
<name>ArchiveTreeWidget</name>
<message>
<location filename="archivetree.cpp" line="433"/>
<location filename="archivetree.cpp" line="443"/>
<location filename="archivetree.cpp" line="435"/>
<location filename="archivetree.cpp" line="445"/>
<source>Cannot drop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="archivetree.cpp" line="434"/>
<location filename="archivetree.cpp" line="436"/>
<source>Cannot drop &apos;%1&apos; into one of its subfolder.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="archivetree.cpp" line="445"/>
<location filename="archivetree.cpp" line="447"/>
<source>A file &apos;%1&apos; already exists in folder &apos;%2&apos;.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="archivetree.cpp" line="448"/>
<location filename="archivetree.cpp" line="450"/>
<source>A folder &apos;%1&apos; already exists in folder &apos;%2&apos;.</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -155,10 +155,5 @@ p, li { white-space: pre-wrap; }
<source>Manual Installer</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="installermanual.cpp" line="62"/>
<source>Fallback installer for mods that can be extracted but can&apos;t be handled by another installer</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>
16 changes: 0 additions & 16 deletions src/installermanual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,6 @@ QString InstallerManual::localizedName() const
return tr("Manual Installer");
}

QString InstallerManual::author() const
{
return "Tannin, Holt59";
}

QString InstallerManual::description() const
{
return tr("Fallback installer for mods that can be extracted but can't be handled by "
"another installer");
}

VersionInfo InstallerManual::version() const
{
return VersionInfo(1, 0, 1, VersionInfo::RELEASE_FINAL);
}

QList<PluginSetting> InstallerManual::settings() const
{
return QList<PluginSetting>();
Expand Down
3 changes: 0 additions & 3 deletions src/installermanual.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ class InstallerManual : public MOBase::IPluginInstallerSimple
virtual bool init(MOBase::IOrganizer* moInfo) override;
virtual QString name() const override;
virtual QString localizedName() const override;
virtual QString author() const override;
virtual QString description() const override;
virtual MOBase::VersionInfo version() const override;
virtual QList<MOBase::PluginSetting> settings() const override;

virtual unsigned int priority() const;
Expand Down
17 changes: 12 additions & 5 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
{
"dependencies": ["mo2-cmake"],
"features": {
"standalone": {
"description": "Build Standalone.",
"dependencies": ["mo2-uibase"]
"dependencies": ["mo2-cmake", "mo2-uibase"]
}
},
"vcpkg-configuration": {
"default-registry": {
"kind": "git",
"repository": "https://github.com/ModOrganizer2/vcpkg-registry",
"baseline": "d194ec4e14052784518d5e9f1c5ccac16de49c2c"
}
"repository": "https://github.com/Microsoft/vcpkg",
"baseline": "8ae59b5b1329a51875abc71d528da93d9c3e8972"
},
"registries": [
{
"kind": "git",
"repository": "https://github.com/ModOrganizer2/vcpkg-registry",
"baseline": "84ff92223433d101738a3c6cef96fa6ae6a6f302",
"packages": ["mo2-*"]
}
]
}
}

0 comments on commit 24bcc78

Please sign in to comment.