mirror of
https://github.com/Lightcord/Lightcord.git
synced 2025-04-12 00:55:40 +02:00
Stop using elif chains, you twats.
This commit is contained in:
parent
17044e4a6d
commit
11aad62169
@ -1,14 +1,16 @@
|
|||||||
import { getCommitID } from "./common/git"
|
import { getCommitID } from "./common/git"
|
||||||
const pak = require("../package.json")
|
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
|
export let version
|
||||||
if(process.platform === "darwin")
|
buildTargets[process.platform] || "0.0.308"
|
||||||
version = "0.0.259"
|
|
||||||
else if(process.platform === "linux")
|
|
||||||
version = "0.0.12"
|
|
||||||
else
|
|
||||||
version = "0.0.308"
|
|
||||||
export const commit = getCommitID()
|
export const commit = getCommitID()
|
||||||
export default {
|
export default {
|
||||||
releaseChannel,
|
releaseChannel,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user