Skip to content

Commit 24bcc78

Browse files
committed
Move to extension packaging.
1 parent 3c5372b commit 24bcc78

7 files changed

+52
-34
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ cmake_minimum_required(VERSION 3.16)
22

33
project(installer_manual)
44

5+
find_package(mo2-cmake CONFIG REQUIRED)
6+
7+
mo2_configure_extension()
8+
59
add_subdirectory(src)

icon.png

948 KB
Loading

metadata.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"id": "mo2-installer-manual",
3+
"name": "Manual Installer",
4+
"version": "1.0.2",
5+
"description": "Fallback installer for mods that can be extracted but can't be handled by another installer.",
6+
"icon": "icon.png",
7+
"author": {
8+
"name": "Mod Organizer 2",
9+
"homepage": "https://www.modorganizer.org/"
10+
},
11+
"contributors": [
12+
"AL",
13+
"Holt59",
14+
"isanae",
15+
"LePresidente",
16+
"LostDragonist",
17+
"Silarn",
18+
"Tannin",
19+
"TheBloke",
20+
"Thomas Tanner"
21+
],
22+
"type": "plugin",
23+
"content": {
24+
"plugins": {
25+
"autodetect": true
26+
},
27+
"translations": {
28+
"autodetect": "translations"
29+
}
30+
}
31+
}

src/installer_manual_en.ts

+5-10
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
<context>
55
<name>ArchiveTreeWidget</name>
66
<message>
7-
<location filename="archivetree.cpp" line="433"/>
8-
<location filename="archivetree.cpp" line="443"/>
7+
<location filename="archivetree.cpp" line="435"/>
8+
<location filename="archivetree.cpp" line="445"/>
99
<source>Cannot drop</source>
1010
<translation type="unfinished"></translation>
1111
</message>
1212
<message>
13-
<location filename="archivetree.cpp" line="434"/>
13+
<location filename="archivetree.cpp" line="436"/>
1414
<source>Cannot drop &apos;%1&apos; into one of its subfolder.</source>
1515
<translation type="unfinished"></translation>
1616
</message>
1717
<message>
18-
<location filename="archivetree.cpp" line="445"/>
18+
<location filename="archivetree.cpp" line="447"/>
1919
<source>A file &apos;%1&apos; already exists in folder &apos;%2&apos;.</source>
2020
<translation type="unfinished"></translation>
2121
</message>
2222
<message>
23-
<location filename="archivetree.cpp" line="448"/>
23+
<location filename="archivetree.cpp" line="450"/>
2424
<source>A folder &apos;%1&apos; already exists in folder &apos;%2&apos;.</source>
2525
<translation type="unfinished"></translation>
2626
</message>
@@ -155,10 +155,5 @@ p, li { white-space: pre-wrap; }
155155
<source>Manual Installer</source>
156156
<translation type="unfinished"></translation>
157157
</message>
158-
<message>
159-
<location filename="installermanual.cpp" line="62"/>
160-
<source>Fallback installer for mods that can be extracted but can&apos;t be handled by another installer</source>
161-
<translation type="unfinished"></translation>
162-
</message>
163158
</context>
164159
</TS>

src/installermanual.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,6 @@ QString InstallerManual::localizedName() const
5252
return tr("Manual Installer");
5353
}
5454

55-
QString InstallerManual::author() const
56-
{
57-
return "Tannin, Holt59";
58-
}
59-
60-
QString InstallerManual::description() const
61-
{
62-
return tr("Fallback installer for mods that can be extracted but can't be handled by "
63-
"another installer");
64-
}
65-
66-
VersionInfo InstallerManual::version() const
67-
{
68-
return VersionInfo(1, 0, 1, VersionInfo::RELEASE_FINAL);
69-
}
70-
7155
QList<PluginSetting> InstallerManual::settings() const
7256
{
7357
return QList<PluginSetting>();

src/installermanual.h

-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ class InstallerManual : public MOBase::IPluginInstallerSimple
3737
virtual bool init(MOBase::IOrganizer* moInfo) override;
3838
virtual QString name() const override;
3939
virtual QString localizedName() const override;
40-
virtual QString author() const override;
41-
virtual QString description() const override;
42-
virtual MOBase::VersionInfo version() const override;
4340
virtual QList<MOBase::PluginSetting> settings() const override;
4441

4542
virtual unsigned int priority() const;

vcpkg.json

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
{
2-
"dependencies": ["mo2-cmake"],
32
"features": {
43
"standalone": {
54
"description": "Build Standalone.",
6-
"dependencies": ["mo2-uibase"]
5+
"dependencies": ["mo2-cmake", "mo2-uibase"]
76
}
87
},
98
"vcpkg-configuration": {
109
"default-registry": {
1110
"kind": "git",
12-
"repository": "https://github.com/ModOrganizer2/vcpkg-registry",
13-
"baseline": "d194ec4e14052784518d5e9f1c5ccac16de49c2c"
14-
}
11+
"repository": "https://github.com/Microsoft/vcpkg",
12+
"baseline": "8ae59b5b1329a51875abc71d528da93d9c3e8972"
13+
},
14+
"registries": [
15+
{
16+
"kind": "git",
17+
"repository": "https://github.com/ModOrganizer2/vcpkg-registry",
18+
"baseline": "84ff92223433d101738a3c6cef96fa6ae6a6f302",
19+
"packages": ["mo2-*"]
20+
}
21+
]
1522
}
1623
}

0 commit comments

Comments
 (0)