fixed version comaprison

This commit is contained in:
Ben
2023-10-06 16:38:47 -05:00
parent cea0572a26
commit 8cf254650d
5 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@
"email": "ben.carter.dev@gmail.com"
},
"main": "./src/main/main.ts",
"version": "1.1.1",
"version": "1.1.0",
"scripts": {
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",

View File

@@ -1,12 +1,12 @@
{
"name": "wow-client-updater",
"version": "1.1.1",
"version": "1.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "wow-client-updater",
"version": "1.1.1",
"version": "1.1.0",
"hasInstallScript": true,
"license": "MIT"
}

View File

@@ -1,6 +1,6 @@
{
"name": "wow-client-updater",
"version": "1.1.1",
"version": "1.1.0",
"description": "Custom Wow Client Patcher for Private WoW Servers",
"license": "MIT",
"author": {

View File

@@ -152,9 +152,8 @@ if (process.platform === 'win32') {
versionFile = fs.readFileSync(path.join(__dirname, '../../package.json'), 'utf8');
}
console.log(versionFile);
const versionjson = JSON.parse(versionFile.toString());
const VERSION = versionjson.version;
const VERSION = versionjson.release;
const appInfo = {
AppVersion: `v${VERSION}`,

View File

@@ -66,6 +66,7 @@ function WoWClientPatcher() {
const getAppInfo = async () => {
const data = await window.api.GetAppInfo();
console.log(data);
setAppInfo(data);
};