File tree Expand file tree Collapse file tree
electron/mapi/manager/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -283,8 +283,8 @@ export const ManagerPlugin = {
283283 if ( ! config . versionRequire ) {
284284 config . versionRequire = '*'
285285 }
286- if ( ! VersionUtil . match ( config . versionRequire , AppConfig . version ) ) {
287- throw `PluginVersionNotMatch : ${ config . name } `
286+ if ( ! VersionUtil . match ( AppConfig . version , config . versionRequire ) ) {
287+ throw `PluginVersionNotMatch:-2: ${ config . name } `
288288 }
289289 } ,
290290 async parsePackage ( file : string , option ?: { } ) {
@@ -362,8 +362,8 @@ export const ManagerPlugin = {
362362 if ( ! plugin . platform . includes ( platformName ( ) ) ) {
363363 throw `PluginNotSupportPlatform : ${ plugin . name } `
364364 }
365- if ( ! VersionUtil . match ( plugin . versionRequire , AppConfig . version ) ) {
366- throw `PluginVersionNotMatch : ${ plugin . name } `
365+ if ( ! VersionUtil . match ( AppConfig . version , plugin . versionRequire ) ) {
366+ throw `PluginVersionNotMatch:-1: ${ plugin . name } `
367367 }
368368 const runtime = plugin . runtime
369369 delete plugin . runtime
You can’t perform that action at this time.
0 commit comments