Yeuoly 9 months ago
parent
commit
bd2b04fa3b
1 changed files with 2 additions and 3 deletions
  1. 2 3
      cmd/license/verify/main.go

+ 2 - 3
cmd/license/verify/main.go

@@ -5,7 +5,6 @@ import (
 	"os"
 
 	"github.com/langgenius/dify-plugin-daemon/internal/core/plugin_packager/decoder"
-	"github.com/langgenius/dify-plugin-daemon/internal/core/plugin_packager/verifier"
 	"github.com/langgenius/dify-plugin-daemon/internal/utils/log"
 )
 
@@ -31,13 +30,13 @@ func main() {
 	}
 
 	// decode
-	decoder, err := decoder.NewZipPluginDecoder(plugin)
+	decoder_instance, err := decoder.NewZipPluginDecoder(plugin)
 	if err != nil {
 		log.Panic("failed to create plugin decoder , plugin path: %s, error: %v", in_path, err)
 	}
 
 	// sign plugin
-	err = verifier.VerifyPlugin(decoder)
+	err = decoder.VerifyPlugin(decoder_instance)
 	if err != nil {
 		log.Panic("failed to verify plugin %v", err)
 	}