2017-08-15 68 views
0

我在metadata.json中看到過幾種方法,有些只是指定整個版本,比如「3.22」,而一些更具體,比如「3.22.1」。我在「3.24」,「3.24.1」和「3.24.2」的地方打開了一個問題,但是擴展名在我指定它之前未能在「3.24.3」中工作。metadata.json中的「shell-versions」變量是如何工作的?

是否需要列出支持的所有特定「點」版本的gnome-shell,或者僅當指定了至少一個「點」版本時才需要gnome-shell care?

回答

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> 
*/