From 3c26159b790e098fe32ff9bccb7f61a1cf09dd11 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 9 Sep 2019 18:58:35 +0100 Subject: [PATCH] Doc: Add link to 32-bit Android APK to readme and website --- README.md | 2 +- Tools/release-android.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eb90dd4b5..bdef32832 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Linux | Get it on Google Play | or [Download APK File](https://github.com/laurent22/joplin-android/releases/download/android-v1.0.304/joplin-v1.0.304.apk) +Android | Get it on Google Play | or download the APK file: [64-bit](https://github.com/laurent22/joplin-android/releases/download/android-v1.0.304/joplin-v1.0.304.apk) [32-bit](https://github.com/laurent22/joplin-android/releases/download/android-v1.0.304/joplin-v1.0.304-32bit.apk) iOS | Get it on the App Store | - ## Terminal application diff --git a/Tools/release-android.js b/Tools/release-android.js index 3bf0e708f..f806daf80 100644 --- a/Tools/release-android.js +++ b/Tools/release-android.js @@ -155,7 +155,8 @@ async function main() { console.info('Updating Readme URL...'); let readmeContent = await fs.readFile('README.md', 'utf8'); - readmeContent = readmeContent.replace(/(https:\/\/github.com\/laurent22\/joplin-android\/releases\/download\/.*?\.apk)/, releaseFiles['main'].downloadUrl); + readmeContent = readmeContent.replace(/(https:\/\/github.com\/laurent22\/joplin-android\/releases\/download\/android-v\d+\.\d+\.\d+\/joplin-v\d+\.\d+\.\d+\.apk)/, releaseFiles['main'].downloadUrl); + readmeContent = readmeContent.replace(/(https:\/\/github.com\/laurent22\/joplin-android\/releases\/download\/android-v\d+\.\d+\.\d+\/joplin-v\d+\.\d+\.\d+-32bit\.apk)/, releaseFiles['32bit'].downloadUrl); await fs.writeFile('README.md', readmeContent); console.info(await execCommand('git pull'));