koishi-plugin-minecraft-notifier 1.2.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +10 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -366,6 +366,15 @@ async function exportXaml(ctx, cfg, summary, version) {
|
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
368
|
});
|
|
369
|
+
await upsertFileToGitee(
|
|
370
|
+
cfg.giteeOwner,
|
|
371
|
+
cfg.giteeRepo,
|
|
372
|
+
"Custom.xaml.ini",
|
|
373
|
+
version,
|
|
374
|
+
`feat: update PCL HomePage XAML INI for version ${version}`,
|
|
375
|
+
cfg.giteeApiToken,
|
|
376
|
+
"master"
|
|
377
|
+
);
|
|
369
378
|
}
|
|
370
379
|
return fullXamlPath;
|
|
371
380
|
}
|
|
@@ -765,7 +774,7 @@ function apply(ctx, cfg) {
|
|
|
765
774
|
if (!import_fs.default.existsSync(xamlPath)) {
|
|
766
775
|
import_fs.default.mkdirSync(xamlPath, { recursive: true });
|
|
767
776
|
}
|
|
768
|
-
ctx.server.get("/
|
|
777
|
+
ctx.server.get("/Custom.xaml", async (koaCtx) => {
|
|
769
778
|
koaCtx.set("Content-Type", "application/xml; charset=utf-8");
|
|
770
779
|
koaCtx.set(
|
|
771
780
|
"Content-Disposition",
|
package/package.json
CHANGED