Merge pull request #87 from MasicoreLord/patch-1
Makes host version reflect what it is on linux or macOs as well
This commit is contained in:
commit
b71f67b06f
|
@ -40,7 +40,12 @@ electron.ipcMain.on(APP_GET_RELEASE_CHANNEL_SYNC, event => {
|
||||||
|
|
||||||
electron.ipcMain.on(APP_GET_HOST_VERSION_SYNC, event => {
|
electron.ipcMain.on(APP_GET_HOST_VERSION_SYNC, event => {
|
||||||
// hardcode because Discord could identify Lightcord or could simply bug.
|
// hardcode because Discord could identify Lightcord or could simply bug.
|
||||||
event.returnValue = "0.0.308" //electron.app.getVersion();
|
if(process.platform === "darwin")
|
||||||
|
event.returnValue = "0.0.259";
|
||||||
|
else if(process.platform === "linux")
|
||||||
|
event.returnValue = "0.0.12";
|
||||||
|
else
|
||||||
|
event.returnValue = "0.0.308"; //electron.app.getVersion();
|
||||||
});
|
});
|
||||||
|
|
||||||
electron.ipcMain.handle(APP_GET_MODULE_VERSIONS, (() => {
|
electron.ipcMain.handle(APP_GET_MODULE_VERSIONS, (() => {
|
||||||
|
@ -135,4 +140,4 @@ electron.ipcMain.handle(APP_GET_DEFAULT_DOUBLE_CLICK_ACTION, (() => {
|
||||||
return function (_x13) {
|
return function (_x13) {
|
||||||
return _ref8.apply(this, arguments);
|
return _ref8.apply(this, arguments);
|
||||||
};
|
};
|
||||||
})());
|
})());
|
||||||
|
|
|
@ -2,7 +2,13 @@ import { getCommitID } from "./common/git"
|
||||||
const pak = require("../package.json")
|
const pak = require("../package.json")
|
||||||
|
|
||||||
export const releaseChannel:"stable"|"canary"|"ptb"|"development" = "stable"
|
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 const commit = getCommitID()
|
||||||
export default {
|
export default {
|
||||||
releaseChannel,
|
releaseChannel,
|
||||||
|
@ -14,4 +20,4 @@ global["BuildInfo"] = {
|
||||||
releaseChannel,
|
releaseChannel,
|
||||||
version: pak.version,
|
version: pak.version,
|
||||||
commit
|
commit
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue