2020-09-05 22:50:45 +02:00
|
|
|
import { getCommitID } from "./common/git"
|
|
|
|
const pak = require("../package.json")
|
|
|
|
|
2021-05-15 06:19:47 +02:00
|
|
|
type branch = "stable"|"canary"|"ptb"|"development";
|
|
|
|
|
|
|
|
const buildTargets = {
|
|
|
|
"darwin":"0.0.259",
|
|
|
|
"linux":"0.0.12",
|
|
|
|
}
|
|
|
|
|
|
|
|
export const releaseChannel:branch = "stable"
|
2021-06-10 12:26:58 +02:00
|
|
|
export let version = buildTargets[process.platform] || "0.0.308"
|
2020-09-05 22:50:45 +02:00
|
|
|
export const commit = getCommitID()
|
|
|
|
export default {
|
|
|
|
releaseChannel,
|
|
|
|
version,
|
|
|
|
commit
|
|
|
|
}
|
|
|
|
|
|
|
|
global["BuildInfo"] = {
|
|
|
|
releaseChannel,
|
|
|
|
version: pak.version,
|
|
|
|
commit
|
2020-10-26 06:01:15 +01:00
|
|
|
}
|