fix: try fix VSCode can't be found

This commit is contained in:
tiddlygit-test 2021-10-19 00:41:04 +08:00
parent 9552e8b70e
commit 8b78930f34
3 changed files with 5 additions and 4 deletions

View file

@ -37,6 +37,7 @@ exports.default = async (buildPath, electronVersion, platform, arch, callback) =
console.log('Copying tiddlywiki dependency to dist');
await fs.copy(path.join(projectRoot, 'node_modules', '@tiddlygit', 'tiddlywiki'), path.join(cwd, 'node_modules', '@tiddlygit', 'tiddlywiki'));
await fs.copy(path.join(projectRoot, 'node_modules', 'dugite'), path.join(cwd, 'node_modules', 'dugite'));
await fs.copy(path.join(projectRoot, 'node_modules', 'app-path'), path.join(cwd, 'node_modules', 'app-path'));
await fs.copy(path.join(projectRoot, 'node_modules', 'zx'), path.join(cwd, 'node_modules', 'zx'));
await exec(`npm i --legacy-building`, { cwd: path.join(cwd, 'node_modules', 'zx') });
await exec(`npm i --legacy-building`, { cwd: path.join(cwd, 'node_modules', 'zx', 'node_modules', 'globby') });

View file

@ -149,9 +149,9 @@ async function findApplication(editor: IDarwinExternalEditor): Promise<string |
return installPath;
}
logger.debug(`App installation for ${editor.name} not found at '${installPath}'`);
logger.info(`App installation for ${editor.name} not found at '${installPath}'`);
} catch (error) {
logger.debug(`Unable to locate ${editor.name} installation`, error);
logger.info(`Unable to locate ${editor.name} installation ${(error as Error).message}`);
}
}

View file

@ -354,7 +354,7 @@ async function findApplication(editor: WindowsExternalEditor) {
const { displayName, publisher, installLocation } = getAppInfo(editor, keys);
if (!displayName.startsWith(editor.displayNamePrefix) || publisher !== editor.publisher) {
logger.debug(`Unexpected registry entries for ${editor.name}`);
logger.info(`Unexpected registry entries for ${editor.name}`);
continue;
}
@ -367,7 +367,7 @@ async function findApplication(editor: WindowsExternalEditor) {
return path;
}
logger.debug(`Executable for ${editor.name} not found at '${path}'`);
logger.info(`Executable for ${editor.name} not found at '${path}'`);
}
}