代码之家  ›  专栏  ›  技术社区  ›  andy.holmes

元数据中的“shell versions”变量是如何定义的。json真的管用吗?

  •  2
  • andy.holmes  · 技术社区  · 9 年前

    我在元数据方面见过几种方法。json,有些只指定完整版本,如“3.22”,而有些则更具体,如“3.22.1”。我打开了一个问题,其中我有“3.24”、“3.24.1”和“3.24.2”,但扩展在“3.24.3”中无法工作,直到我指定它。

    1 回复  |  直到 9 年前
        1
  •  2
  •   andy.holmes    4 年前

    从GNOME 40开始,每个稳定版本都是 1 奇数不再不稳定(例如。 40 , 41 , 42 )忽略次要点释放。

    3.38

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