feat: build Android APK on Linux CI (symlink, gradlew, setup-android action)
Some checks failed
Build / increment-version (push) Successful in 6s
Build / build-linux (push) Failing after 30s
Build / build-android (push) Failing after 3m1s
Build / build-windows (push) Has been cancelled
Build / create-release (push) Has been cancelled

This commit is contained in:
2026-04-07 15:40:07 +10:00
parent 0c40638a5c
commit 2e4a39b27e
4 changed files with 44 additions and 26 deletions

View File

@@ -29,14 +29,18 @@ if (existsSync(capConfig)) {
console.log('[restore-cinny] Removed cinny/capacitor.config.json');
}
// 3. Remove the android junction (rmdir only removes the junction, not the real directory)
// 3. Remove the android link (junction on Windows, symlink on Linux)
const androidJunction = join(CINNY, 'android');
if (existsSync(androidJunction)) {
try {
execSync(`cmd /c rmdir "${androidJunction}"`, { stdio: 'pipe' });
console.log('[restore-cinny] Removed cinny/android junction');
if (process.platform === 'win32') {
execSync(`cmd /c rmdir "${androidJunction}"`, { stdio: 'pipe' });
} else {
unlinkSync(androidJunction);
}
console.log('[restore-cinny] Removed cinny/android link');
} catch (err) {
console.warn('[restore-cinny] Could not remove android junction:', err.message);
console.warn('[restore-cinny] Could not remove android link:', err.message);
}
}