1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Tools: Restore content after patching Android app

This commit is contained in:
Laurent Cozic 2023-05-11 15:06:34 +01:00
parent 0da3e91a29
commit 20a26732a9

View File

@ -95,7 +95,6 @@ function gradleVersionName(content: string) {
}
async function createRelease(projectName: string, name: string, tagName: string, version: string): Promise<Release> {
const originalContents: Record<string, string> = {};
const suffix = version + (name === 'main' ? '' : `-${name}`);
const patcher = new Patcher(`${rnDir}/patcher-work`);
@ -179,10 +178,7 @@ async function createRelease(projectName: string, name: string, tagName: string,
await copy(builtApk, `${releaseDir}/joplin-latest.apk`);
}
for (const filename in originalContents) {
const content = originalContents[filename];
await writeFile(filename, content);
}
await patcher.restore();
return {
downloadUrl: downloadUrl,