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:
parent
0da3e91a29
commit
20a26732a9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user