Codex/pr 1217 (#1226)
* 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>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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`
|
||||
}
|
||||
Reference in New Issue
Block a user