You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-17 23:27:48 +02:00
Tools: Fix desktop build
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user