Fix local builds

This commit is contained in:
GamingLiamStudios 2022-02-08 14:09:39 +11:00
parent 17743c577e
commit 1395ebffc7
No known key found for this signature in database
GPG key ID: 3650DE4EAFF62ADD
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,7 @@
"name": "cider",
"applicationId": "Cider",
"productName": "Cider",
"version": "1.1",
"version": "1.1.0",
"description": "A new look into listening and enjoying music in style and performance.",
"license": "AGPL-3.0",
"main": "./build/index.js",

View file

@ -8,9 +8,10 @@ let fs = require('fs')
var data = fs.readFileSync('package.json');
var package = JSON.parse(data);
pvers = package.version.match(/\d+\./g)
// https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
package.version = `${package.version}.${process.env['CIRCLE_BUILD_NUM']}`
package.version = `${pvers[0]}.${pvers[1]}.${process.env['CIRCLE_BUILD_NUM']}`
fs.writeFile('package.json', JSON.stringify(package), err => {