Platform specific build versions

This commit is contained in:
MasicoreLord 2020-10-26 01:01:15 -04:00 committed by GitHub
parent 88044403a5
commit e71c5a0336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -2,7 +2,13 @@ import { getCommitID } from "./common/git"
const pak = require("../package.json")
export const releaseChannel:"stable"|"canary"|"ptb"|"development" = "stable"
export const version = "0.0.308"
export let version
if(process.platform === "darwin")
version = "0.0.259"
else if(process.platform === "linux")
version = "0.0.12"
else
version = "0.0.308"
export const commit = getCommitID()
export default {
releaseChannel,
@ -14,4 +20,4 @@ global["BuildInfo"] = {
releaseChannel,
version: pak.version,
commit
}
}