You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Improved Android and Electron release process
This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
const fs = require('fs-extra');
|
|
||||||
const { execCommand, githubRelease, handleCommitHook, githubOauthToken } = require('./tool-utils.js');
|
const { execCommand, githubRelease, handleCommitHook, githubOauthToken } = require('./tool-utils.js');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fetch = require('node-fetch');
|
|
||||||
const uriTemplate = require('uri-template');
|
|
||||||
|
|
||||||
const rootDir = path.dirname(__dirname);
|
const rootDir = path.dirname(__dirname);
|
||||||
const appDir = rootDir + '/ElectronClient/app';
|
const appDir = rootDir + '/ElectronClient/app';
|
||||||
|
@@ -82,11 +82,14 @@ toolUtils.fileExists = async function(filePath) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toolUtils.githubOauthToken = async function() {
|
toolUtils.githubOauthToken = async function() {
|
||||||
|
const fs = require('fs-extra');
|
||||||
const r = await fs.readFile(__dirname + '/Tools/github_oauth_token.txt');
|
const r = await fs.readFile(__dirname + '/Tools/github_oauth_token.txt');
|
||||||
return r.toString();
|
return r.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
toolUtils.githubRelease = async function(tagName, isDraft) {
|
toolUtils.githubRelease = async function(tagName, isDraft) {
|
||||||
|
const fetch = require('node-fetch');
|
||||||
|
|
||||||
const oauthToken = await githubOauthToken();
|
const oauthToken = await githubOauthToken();
|
||||||
|
|
||||||
const response = await fetch('https://api.github.com/repos/laurent22/joplin/releases', {
|
const response = await fetch('https://api.github.com/repos/laurent22/joplin/releases', {
|
||||||
|
Reference in New Issue
Block a user