1 Star 0 Fork 0

leopald/joplin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
release-electron.js 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
const { execCommand, githubRelease, handleCommitHook, githubOauthToken } = require('./tool-utils.js');
const path = require('path');
const rootDir = path.dirname(__dirname);
const appDir = rootDir + '/ElectronClient/app';
async function main() {
const argv = require('yargs').argv;
const oauthToken = await githubOauthToken();
process.chdir(appDir);
console.info('Running from: ' + process.cwd());
const version = (await execCommand('npm version patch')).trim();
const tagName = version;
console.info('New version number: ' + version);
console.info(await execCommand('git add -A'));
console.info(await execCommand('git commit -m "Electron release ' + version + '"'));
console.info(await execCommand('git tag ' + tagName));
console.info(await execCommand('git push && git push --tags'));
const releaseOptions = { isDraft: true, isPreRelease: !!argv.beta };
console.info('Release options: ', releaseOptions);
const release = await githubRelease('joplin', tagName, releaseOptions);
console.info('Created GitHub release: ' + release.html_url);
}
main().catch((error) => {
console.error('Fatal error');
console.error(error);
process.exit(1);
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/letmethinking/joplin.git
git@gitee.com:letmethinking/joplin.git
letmethinking
joplin
joplin
master

搜索帮助