Skip to content

Conversation

@JayFate
Copy link
Collaborator

@JayFate JayFate commented Jun 16, 2023

与 IDE 对接的新的 rpk 命名策略:

名字的拼接顺序为 packageName.release.production.customName.version.rpk

通过以下方式设置 customName 的值:

module.exports = {
  // hap命令构建时的配置参数
  cli: {
    buildNameFormat: 'CUSTOM=production111'
  },
}

先从 IDE 传过来的 defineOptions 中获取 PACKAGE_NAME、PACKAGE_TYPE 等参数,缺失的参数由 toolkit 默认填充

然后将各参数拼接成 rpk 名称。

Signed-off-by: JayFate <37610029@qq.com>
@JayFate JayFate merged commit de860f4 into hapjs-platform:main Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants