Merge pull request #261 from T-O-R-U-S/patch-1

Stop using elif chains, you twats.
This commit is contained in:
JeanOUINA 2021-06-06 20:59:53 +02:00 committed by GitHub
commit dde7969281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -1,14 +1,16 @@
import { getCommitID } from "./common/git"
const pak = require("../package.json")
export const releaseChannel:"stable"|"canary"|"ptb"|"development" = "stable"
type branch = "stable"|"canary"|"ptb"|"development";
const buildTargets = {
"darwin":"0.0.259",
"linux":"0.0.12",
}
export const releaseChannel:branch = "stable"
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"
buildTargets[process.platform] || "0.0.308"
export const commit = getCommitID()
export default {
releaseChannel,