Fix local builds (#375)
This commit is contained in:
parent
6b331cb22f
commit
207c4435bb
3 changed files with 6 additions and 5 deletions
|
@ -43,8 +43,8 @@ jobs:
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test-results
|
path: test-results
|
||||||
- run:
|
- run:
|
||||||
name: Append Commit SHA to Version
|
name: Append Commit BuildID to Version
|
||||||
command: yarn circle:append-sha
|
command: yarn circle:append-bid
|
||||||
- run:
|
- run:
|
||||||
name: Generate Builds (Linux)
|
name: Generate Builds (Linux)
|
||||||
command: yarn dist -l -p never
|
command: yarn dist -l -p never
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "cider",
|
"name": "cider",
|
||||||
"applicationId": "Cider",
|
"applicationId": "Cider",
|
||||||
"productName": "Cider",
|
"productName": "Cider",
|
||||||
"version": "1.1",
|
"version": "1.1.0",
|
||||||
"description": "A new look into listening and enjoying music in style and performance.",
|
"description": "A new look into listening and enjoying music in style and performance.",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "./build/index.js",
|
"main": "./build/index.js",
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
"dist:all": "yarn build && electron-builder -mwl",
|
"dist:all": "yarn build && electron-builder -mwl",
|
||||||
"msft": "yarn build && electron-builder -c msft-package.json",
|
"msft": "yarn build && electron-builder -c msft-package.json",
|
||||||
"postinstall": "electron-builder install-app-deps",
|
"postinstall": "electron-builder install-app-deps",
|
||||||
"circle:append-sha": "node resources/appendCommitToVersion"
|
"circle:append-bid": "node resources/appendBIDToVersion"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sentry/electron": "^2.5.4",
|
"@sentry/electron": "^2.5.4",
|
||||||
|
|
|
@ -8,9 +8,10 @@ let fs = require('fs')
|
||||||
var data = fs.readFileSync('package.json');
|
var data = fs.readFileSync('package.json');
|
||||||
var package = JSON.parse(data);
|
var package = JSON.parse(data);
|
||||||
|
|
||||||
|
pvers = package.version.match(/\d+\./g)
|
||||||
|
|
||||||
// https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
|
// 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 => {
|
fs.writeFile('package.json', JSON.stringify(package), err => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue