Skip to content

Commit

Permalink
fix: sign
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Jan 24, 2025
1 parent d9e94e8 commit 4a91600
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/js/core/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,12 @@ class PluginLoader {
const tremInfo = this.readTremInfoFile(targetPath);
const verified = tremInfo?.verification?.valid || false;

if (!verified) {
if (!verified && tremInfo?.verification?.error == 'Missing signature.json') {
logger.error(`[Plugin: ${pluginName}] 【!!!嚴重警告!!!】遺失簽名, Skipping plugin`);
logger.error(`[Plugin: ${pluginName}] 【!!!WARNING!!!】Missing signature, Skipping plugin`);
continue;
}
else if (!verified) {
logger.warn(`[Plugin: ${pluginName}] 【!!!嚴重警告!!!】未發現有效簽名,除非信任擴充來源否則應立即停用`);
logger.warn(`[Plugin: ${pluginName}] 【!!!WARNING!!!】No valid signature found, disable immediately unless plugin source is trusted`);
}
Expand Down

0 comments on commit 4a91600

Please sign in to comment.