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:
|
||||
path: test-results
|
||||
- run:
|
||||
name: Append Commit SHA to Version
|
||||
command: yarn circle:append-sha
|
||||
name: Append Commit BuildID to Version
|
||||
command: yarn circle:append-bid
|
||||
- run:
|
||||
name: Generate Builds (Linux)
|
||||
command: yarn dist -l -p never
|
||||
|
|
|
@ -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",
|
||||
|
@ -26,7 +26,7 @@
|
|||
"dist:all": "yarn build && electron-builder -mwl",
|
||||
"msft": "yarn build && electron-builder -c msft-package.json",
|
||||
"postinstall": "electron-builder install-app-deps",
|
||||
"circle:append-sha": "node resources/appendCommitToVersion"
|
||||
"circle:append-bid": "node resources/appendBIDToVersion"
|
||||
},
|
||||
"dependencies": {
|
||||
"@sentry/electron": "^2.5.4",
|
||||
|
|
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue