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'));