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:
parent
c53cd52b4d
commit
bc57d229fa
@ -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": {
|
||||
|
@ -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() {
|
||||
|
@ -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}`;
|
||||
|
Loading…
Reference in New Issue
Block a user