1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Tools: Fix desktop build

This commit is contained in:
Laurent Cozic 2020-11-05 17:44:19 +00:00
parent c53cd52b4d
commit bc57d229fa
3 changed files with 5 additions and 3 deletions

View File

@ -22,6 +22,7 @@
"setupNewRelease": "node ./packages/tools/setupNewRelease",
"clean": "lerna clean -y && lerna run clean",
"linkChecker": "linkchecker https://joplinapp.org",
"releaseDesktop": "node packages/tools/release-electron.js",
"publishAll": "git pull && lerna version --no-git-tag-version && gulp completePublishAll"
},
"husky": {

View File

@ -1,7 +1,5 @@
const { execCommand, githubRelease } = require('./tool-utils.js');
const path = require('path');
const { execCommand, githubRelease, rootDir } = require('./tool-utils.js');
const rootDir = path.dirname(__dirname);
const appDir = `${rootDir}/packages/app-desktop`;
async function main() {

View File

@ -58,6 +58,9 @@ toolUtils.credentialDir = async function() {
throw new Error(`Could not find credential directory in any of these paths: ${JSON.stringify(toTry)}`);
};
// Returns the project root dir
toolUtils.rootDir = require('path').dirname(require('path').dirname(__dirname));
toolUtils.credentialFile = async function(filename) {
const rootDir = await toolUtils.credentialDir();
const output = `${rootDir}/${filename}`;