fix: patch capacitor.settings.gradle to use ../cinny/node_modules for Linux CI
Some checks failed
Build / increment-version (push) Successful in 6s
Build / build-android (push) Failing after 3m1s
Build / create-release (push) Has been skipped

This commit is contained in:
2026-04-07 15:56:51 +10:00
parent f2e17c1763
commit ffe99d8431
2 changed files with 30 additions and 0 deletions

View File

@@ -22,6 +22,15 @@ const STASH_FLAG = join(ROOT, '.cinny-stash-pending');
console.log('[restore-cinny] Reverting tracked changes...');
execSync('git checkout -- .', { cwd: CINNY, stdio: 'inherit' });
// Restore android/capacitor.settings.gradle patched by apply-overlay
console.log('[restore-cinny] Restoring android/capacitor.settings.gradle...');
try {
execSync('git checkout -- android/capacitor.settings.gradle', { cwd: ROOT, stdio: 'inherit' });
console.log('[restore-cinny] Restored android/capacitor.settings.gradle');
} catch {
console.warn('[restore-cinny] Could not restore capacitor.settings.gradle (may not be modified)');
}
// 2. Remove untracked capacitor.config.json written by the overlay
const capConfig = join(CINNY, 'capacitor.config.json');
if (existsSync(capConfig)) {