mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
71efff6827
* Update eslint config * Applied linter to lib * Applied eslint config to CliClient/app * Removed prettier due to https://github.com/prettier/prettier/pull/4765 * First pass on test units * Applied linter config to test units * Applied eslint config to clipper * Applied to plugin dir * Applied to root of ElectronClient * Applied on RN root * Applied on CLI root * Applied on Clipper root * Applied config to tools * test hook * test hook * test hook * Added pre-commit hook * Applied rule no-trailing-spaces * Make sure root packages are installed when installing sub-dir * Added doc
26 lines
786 B
JavaScript
26 lines
786 B
JavaScript
'use strict';
|
|
|
|
// https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md
|
|
|
|
const rootDir = __dirname + '/..';
|
|
const { execCommand, downloadFile, fileSha256, unlinkForce } = require('./tool-utils.js');
|
|
|
|
async function main() {
|
|
const url = await execCommand('npm view joplin dist.tarball');
|
|
const targetPath = rootDir + '/latest-cli.tar.gz';
|
|
await unlinkForce(targetPath);
|
|
await downloadFile(url, targetPath);
|
|
const sha256 = await fileSha256(targetPath);
|
|
await unlinkForce(targetPath);
|
|
|
|
console.info('URL = ' + url);
|
|
console.info('SHA256 = ' + sha256);
|
|
console.info('');
|
|
console.info('brew update && brew bump-formula-pr --strict joplin --url=' + url + ' --sha256=' + sha256);
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error('Fatal error');
|
|
console.error(error);
|
|
});
|