diff --git a/modules/discord_desktop_core/core/app/discord_native/browser/app.js b/modules/discord_desktop_core/core/app/discord_native/browser/app.js index 3c2b49c..adb2bc7 100644 --- a/modules/discord_desktop_core/core/app/discord_native/browser/app.js +++ b/modules/discord_desktop_core/core/app/discord_native/browser/app.js @@ -40,7 +40,12 @@ electron.ipcMain.on(APP_GET_RELEASE_CHANNEL_SYNC, event => { electron.ipcMain.on(APP_GET_HOST_VERSION_SYNC, event => { // 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, (() => { @@ -135,4 +140,4 @@ electron.ipcMain.handle(APP_GET_DEFAULT_DOUBLE_CLICK_ACTION, (() => { return function (_x13) { return _ref8.apply(this, arguments); }; -})()); \ No newline at end of file +})()); diff --git a/src/buildInfo.ts b/src/buildInfo.ts index f987c8e..72fc5bc 100644 --- a/src/buildInfo.ts +++ b/src/buildInfo.ts @@ -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 -} \ No newline at end of file +}