mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-18 01:44:36 +08:00
弃用jimp
This commit is contained in:
@@ -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("操作成功!");
|
||||
|
||||
@@ -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}`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user