1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: Trying to fix Android build

This commit is contained in:
Laurent Cozic
2025-07-24 11:52:40 +01:00
parent f541618ed4
commit f8d09ce847

View File

@@ -124,7 +124,13 @@ async function createRelease(projectName: string, releaseConfig: ReleaseConfig,
console.info(`Building APK file v${suffix}...`);
const buildDirName = `build-${name}`;
// Normally we should build in the `build-main` folder but it seems Expo has a hard-coded path
// to `build` and fail with this error:
//
// A problem occurred evaluating project ':app'
// > /Users/laurent/src/joplin-new/packages/app-mobile/android/build-main/generated/autolinking/autolinking.json
// > (No such file or directory)
const buildDirName = name === 'main' ? 'build' : `build-${name}`;
const buildDirBasePath = `${rnDir}/android/app/${buildDirName}`;
await remove(buildDirBasePath);