chore: fix build scripts

pull/16/head
sualko 2020-04-28 01:17:21 +02:00
parent 61defac590
commit 666169f54a
2 changed files with 7 additions and 7 deletions

View File

@ -66,7 +66,7 @@ async function createRelease(appId) {
await execa('yarn', ['build']);
console.log(`✔ scripts built`.green);
let filePath = await createArchive(appId, appId + '-' + version);
let filePath = await createArchive(appId, appId + '-v' + version);
await createNextcloudSignature(appId, filePath);
await createGPGSignature(filePath);
await createGPGArmorSignature(filePath);

View File

@ -16,10 +16,10 @@ require('dotenv').config();
const commitMessage = `build: ${package.version}`;
const tagName = `v${package.version}`;
const files = [
path.join(__dirname, 'archives', `bbb-v${package.version}.tar.gz`),
path.join(__dirname, 'archives', `bbb-v${package.version}.tar.gz.asc`),
path.join(__dirname, 'archives', `bbb-v${package.version}.tar.gz.ncsig`),
path.join(__dirname, 'archives', `bbb-v${package.version}.tar.gz.sig`),
path.join(__dirname, '..', 'archives', `bbb-v${package.version}.tar.gz`),
path.join(__dirname, '..', 'archives', `bbb-v${package.version}.tar.gz.asc`),
path.join(__dirname, '..', 'archives', `bbb-v${package.version}.tar.gz.ncsig`),
path.join(__dirname, '..', 'archives', `bbb-v${package.version}.tar.gz.sig`),
];
async function notAlreadyTagged() {
@ -36,7 +36,7 @@ async function isMasterBranch() {
function hasChangeLogEntry() {
return new Promise(resolve => {
fs.readFile(path.join(__dirname, 'CHANGELOG.md'), function (err, data) {
fs.readFile(path.join(__dirname, '..', 'CHANGELOG.md'), function (err, data) {
if (err) throw err;
resolve(data.includes(`[${package.version}]`));
@ -74,7 +74,7 @@ async function keypress() {
}
function commit() {
return git.commit(commitMessage, ['-S']);
return git.commit(commitMessage, ['-S', '-n']);
}
function push() {