You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Android release v0.10.89
This commit is contained in:
@@ -90,8 +90,8 @@ android {
|
|||||||
applicationId "net.cozic.joplin"
|
applicationId "net.cozic.joplin"
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
versionCode 2097266
|
versionCode 2097267
|
||||||
versionName "0.10.88"
|
versionName "0.10.89"
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters "armeabi-v7a", "x86"
|
abiFilters "armeabi-v7a", "x86"
|
||||||
}
|
}
|
||||||
|
@@ -47,12 +47,13 @@ function gradleVersionName(content) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
const projectName = 'joplin-android';
|
||||||
const newContent = updateGradleConfig();
|
const newContent = updateGradleConfig();
|
||||||
const version = gradleVersionName(newContent);
|
const version = gradleVersionName(newContent);
|
||||||
const tagName = 'android-v' + version;
|
const tagName = 'android-v' + version;
|
||||||
const apkFilename = 'joplin-v' + version + '.apk';
|
const apkFilename = 'joplin-v' + version + '.apk';
|
||||||
const apkFilePath = releaseDir + '/' + apkFilename;
|
const apkFilePath = releaseDir + '/' + apkFilename;
|
||||||
const downloadUrl = 'https://github.com/laurent22/joplin/releases/download/' + tagName + '/' + apkFilename;
|
const downloadUrl = 'https://github.com/laurent22/' + projectName + '/releases/download/' + tagName + '/' + apkFilename;
|
||||||
|
|
||||||
process.chdir(rootDir);
|
process.chdir(rootDir);
|
||||||
|
|
||||||
@@ -70,7 +71,7 @@ async function main() {
|
|||||||
console.info('Updating Readme URL...');
|
console.info('Updating Readme URL...');
|
||||||
|
|
||||||
let readmeContent = await fs.readFile('README.md', 'utf8');
|
let readmeContent = await fs.readFile('README.md', 'utf8');
|
||||||
readmeContent = readmeContent.replace(/(https:\/\/github.com\/laurent22\/joplin\/releases\/download\/.*?\.apk)/, downloadUrl);
|
readmeContent = readmeContent.replace(/(https:\/\/github.com\/laurent22\/joplin-android\/releases\/download\/.*?\.apk)/, downloadUrl);
|
||||||
await fs.writeFile('README.md', readmeContent);
|
await fs.writeFile('README.md', readmeContent);
|
||||||
|
|
||||||
console.info(await execCommand('git add -A'));
|
console.info(await execCommand('git add -A'));
|
||||||
@@ -81,7 +82,7 @@ async function main() {
|
|||||||
|
|
||||||
console.info('Creating GitHub release ' + tagName + '...');
|
console.info('Creating GitHub release ' + tagName + '...');
|
||||||
|
|
||||||
const release = await githubRelease('joplin-android', tagName, false);
|
const release = await githubRelease(projectName, tagName, false);
|
||||||
const uploadUrlTemplate = uriTemplate.parse(release.upload_url);
|
const uploadUrlTemplate = uriTemplate.parse(release.upload_url);
|
||||||
const uploadUrl = uploadUrlTemplate.expand({ name: apkFilename });
|
const uploadUrl = uploadUrlTemplate.expand({ name: apkFilename });
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user