我在metadata.json中看到过几种方法,有些只指定整个版本,例如“3.22”,而有些则更具体,如“3.22.1”。我有一个问题,我有“3.24”,“3.24.1”和“3.24.2”,但扩展无法在“3.24.3”中工作,直到我指定它。
是否需要列出所支持的gnome-shell的所有特定“点”版本,或者只有在指定了至少一个“点”版本时才进行gnome-shell关注?
答案 0 :(得分:0)
在查看source code后,我发现了这个:
/**
* versionCheck:
* @required: an array of versions we're compatible with
* @current: the version we have
*
* Check if a component is compatible for an extension.
* @required is an array, and at least one version must match.
* @current must be in the format <major>.<minor>.<point>.<micro>
* <micro> is always ignored
* <point> is ignored if <minor> is even (so you can target the
* whole stable release)
* <minor> and <major> must match
* Each target version must be at least <major> and <minor>
*/