mirror of https://github.com/laurent22/joplin.git
Improved Android and Electron release process
parent
ed87581a8a
commit
13bc185829
|
@ -1,8 +1,5 @@
|
|||
const fs = require('fs-extra');
|
||||
const { execCommand, githubRelease, handleCommitHook, githubOauthToken } = require('./tool-utils.js');
|
||||
const path = require('path');
|
||||
const fetch = require('node-fetch');
|
||||
const uriTemplate = require('uri-template');
|
||||
|
||||
const rootDir = path.dirname(__dirname);
|
||||
const appDir = rootDir + '/ElectronClient/app';
|
||||
|
|
|
@ -82,11 +82,14 @@ toolUtils.fileExists = async function(filePath) {
|
|||
}
|
||||
|
||||
toolUtils.githubOauthToken = async function() {
|
||||
const fs = require('fs-extra');
|
||||
const r = await fs.readFile(__dirname + '/Tools/github_oauth_token.txt');
|
||||
return r.toString();
|
||||
}
|
||||
|
||||
toolUtils.githubRelease = async function(tagName, isDraft) {
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
const oauthToken = await githubOauthToken();
|
||||
|
||||
const response = await fetch('https://api.github.com/repos/laurent22/joplin/releases', {
|
||||
|
|
Loading…
Reference in New Issue