Skip to content

Commit

Permalink
Desktop - Separate versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Nov 28, 2024
1 parent 3eb3ecb commit 15313e4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build_app_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const fse = require('fs-extra')
const config = require('config')
import ServerHTML from './server/server-html';

const app_version = require('./package.json').version
const blogs_version = require('./package.json').version

let destDir, cfgFile
const argv = process.argv
if (argv.length !== 4) {
if (argv.length < 4) {
console.log('Usage is: babel-node build_app_entry.js /path/to/build/dest /path/to/config')
process.exit(-1)
}
Expand Down Expand Up @@ -37,7 +37,10 @@ let cfg = {}
const copyKey = (key) => {
cfg[key] = config.get('desktop.' + key)
}
cfg.app_version = app_version
cfg.blogs_version = blogs_version
if (argv[4]) cfg.app_version = argv[4]
if (argv[5]) cfg.wallet_version = argv[5]
if (argv[6]) cfg.msgs_version = argv[6]
copyKey('site_domain')
cfg.url_domains = [...config.get('desktop.another_domains')]
if (!cfg.url_domains.includes(cfg.site_domain)) {
Expand Down

0 comments on commit 15313e4

Please sign in to comment.