00ea452310
* bundle node and windows git runtimes * split desktop runtime into release package * fix desktop runtime packaging ci * embed desktop runtime release tag * show desktop runtime download progress * fix desktop runtime release handling * refactor desktop runtime version config * fix desktop package license --------- Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com> Co-authored-by: ekko <fqsy1416@gmail.com>
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
export const DEFAULT_HERMES_VERSION = '0.15.2'
|
|
|
|
export function hermesVersion(env = process.env) {
|
|
return env.HERMES_VERSION || DEFAULT_HERMES_VERSION
|
|
}
|
|
|
|
export function runtimeReleaseTag(env = process.env) {
|
|
const version = hermesVersion(env)
|
|
return env.HERMES_DESKTOP_RUNTIME_RELEASE_TAG
|
|
|| env.RUNTIME_RELEASE_TAG
|
|
|| `hermes-${version}-runtime`
|
|
}
|