mirror of https://github.com/laurent22/joplin.git
parent
e2f3f81eb6
commit
41fa9d093e
|
@ -90,8 +90,8 @@ android {
|
|||
applicationId "net.cozic.joplin"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 22
|
||||
versionCode 2097266
|
||||
versionName "0.10.88"
|
||||
versionCode 2097267
|
||||
versionName "0.10.89"
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a", "x86"
|
||||
}
|
||||
|
|
|
@ -47,12 +47,13 @@ function gradleVersionName(content) {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
const projectName = 'joplin-android';
|
||||
const newContent = updateGradleConfig();
|
||||
const version = gradleVersionName(newContent);
|
||||
const tagName = 'android-v' + version;
|
||||
const apkFilename = 'joplin-v' + version + '.apk';
|
||||
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);
|
||||
|
||||
|
@ -70,7 +71,7 @@ async function main() {
|
|||
console.info('Updating Readme URL...');
|
||||
|
||||
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);
|
||||
|
||||
console.info(await execCommand('git add -A'));
|
||||
|
@ -81,7 +82,7 @@ async function main() {
|
|||
|
||||
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 uploadUrl = uploadUrlTemplate.expand({ name: apkFilename });
|
||||
|
||||
|
|
Loading…
Reference in New Issue