1
0
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:
Laurent Cozic
2018-02-07 17:54:06 +00:00
parent e2f3f81eb6
commit 41fa9d093e
2 changed files with 6 additions and 5 deletions

View File

@@ -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"
} }

View File

@@ -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 });