弃用jimp

This commit is contained in:
fofolee
2024-12-30 19:49:28 +08:00
parent 5e2994fe6d
commit 7a79d3a443
10 changed files with 225 additions and 1904 deletions

View File

@@ -51,7 +51,7 @@ export default {
};
try {
let res = await quickcommand.downloadFile(iconUrl, iconPath);
if (res) command.features.icon = window.getBase64Ico(iconPath);
if (res) command.features.icon = window.resolveFileToBase64(iconPath);
} catch (e) {}
this.importCommand(command);
utools.showNotification("操作成功!");

View File

@@ -120,7 +120,7 @@ export default {
features: {
cmds: this.nickName,
explain: this.feature.explain,
icon: window.getBase64Ico(this.plugin.logoPath),
icon: window.resolveFileToBase64(this.plugin.logoPath),
platform: this.plugin.platform || ["darwin", "win32", "linux"],
code: `key_${uid}`,
},