|
|
@@ -23,8 +23,6 @@ class PluginLoader {
|
|
23
|
23
|
if(force || !status.remote || !status.remote.includes("fb-dist/admin") || !status.exists || status.empty || !status.currentTag){
|
|
24
|
24
|
//logger.warn("Cloning fb-dist/admin into ./dist ..."+(force?" USING FORCE!":""))
|
|
25
|
25
|
status = await updater.cloneRepo(force)
|
|
26
|
|
-
|
|
27
|
|
- this.destroy()
|
|
28
|
26
|
const installer = eval("require")("./Installer").installAdmin
|
|
29
|
27
|
installer(this.getPlugins())
|
|
30
|
28
|
}
|
|
|
@@ -125,11 +123,6 @@ class PluginLoader {
|
|
125
|
123
|
getPlugins():Plugin[]{
|
|
126
|
124
|
return [...this.runningPlugins]
|
|
127
|
125
|
}
|
|
128
|
|
-
|
|
129
|
|
- async destroy(){
|
|
130
|
|
- return
|
|
131
|
|
- }
|
|
132
|
|
-
|
|
133
|
126
|
}
|
|
134
|
127
|
|
|
135
|
128
|
|
|
|
@@ -141,7 +134,6 @@ export type PluginLoaderIfc = {
|
|
141
|
134
|
setPluginVersion: (name:string, tag:string) => Promise<FolderStatus>
|
|
142
|
135
|
getLoadedPluginNames: () => Promise<String[]>
|
|
143
|
136
|
selfUpdate: (force:boolean) => Promise<FolderStatus>
|
|
144
|
|
- destroy: () => Promise<void>
|
|
145
|
137
|
}
|
|
146
|
138
|
}
|
|
147
|
139
|
|
|
|
@@ -170,9 +162,6 @@ implements RPCExporter<PluginLoaderIfc, "PluginLoader">{
|
|
170
|
162
|
},{
|
|
171
|
163
|
name: "selfUpdate" as "selfUpdate",
|
|
172
|
164
|
call: async (force: boolean) => {return await this.selfUpdate(force)},
|
|
173
|
|
- },{
|
|
174
|
|
- name: "destroy" as "destroy",
|
|
175
|
|
- call: async () => {return this.destroy()}
|
|
176
|
165
|
}]
|
|
177
|
166
|
}
|
|
178
|
167
|
}
|