Skip to content

Commit

Permalink
bump version, updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
giniedp committed Oct 5, 2022
1 parent c34241a commit d761fce
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
7 changes: 0 additions & 7 deletions apps/electron/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions apps/electron/yarn.lock

This file was deleted.

6 changes: 5 additions & 1 deletion apps/web/app/pages/about/about.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export class AboutComponent implements OnInit {
}

public get gameVersion() {
return '1.6.4'
const version = APP_CONFIG.version.split('-')[0]
if (APP_CONFIG.isPTR) {
return `Public Test Realm ${version}`
}
return '1.6.6'
// return APP_CONFIG.version.split('-')[0]
}

Expand Down
5 changes: 1 addition & 4 deletions electron-config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
const env = require('./env')
const config = require('./electron-config.base.json')
const package = require('./package.json')

module.exports = {
...config,
appId: env.NW_PTR ? `${package.name}-ptr` : package.name,
productName: env.NW_PTR ? `${package.name}-ptr` : package.name,
files: [
...config.files,
`!dist/web/nw-data/${env.NW_PTR ? 'live' : 'ptr'}`,
],
]
}
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
"main": "dist/electron/main.js",
"private": true,
"author": "Ginie",
"homepage": "https://giniedp.github.io/nw-buddy",
"repository": {
"type": "git",
"url": "https://github.com/giniedp/nw-buddy.git"
},
"scripts": {
"postinstall": "electron-builder install-app-deps",
"dev": "npm-run-all -p dev:electron dev:web",
"dev:web": "ng serve -c web -o",
"dev:electron": "yarn electron:serve",
Expand All @@ -25,6 +29,9 @@
"nw-extract": "ts-node ./tools/nw-extract.ts"
},
"dependencies": {

},
"devDependencies": {
"@angular/common": "14.1.2",
"@angular/compiler": "14.1.2",
"@angular/core": "14.1.2",
Expand All @@ -42,9 +49,7 @@
"mithril": "2.2.2",
"rxjs": "7.5.6",
"tslib": "^2.4.0",
"zone.js": "~0.11.7"
},
"devDependencies": {
"zone.js": "~0.11.7",
"@angular-builders/custom-webpack": "14.0.0",
"@angular-devkit/build-angular": "14.1.2",
"@angular-eslint/builder": "14.0.2",
Expand Down

0 comments on commit d761fce

Please sign in to comment.