Skip to content

Commit 7dcfe2e

Browse files
committed
chore(android): restore proguard-rules.pro in CI
1 parent fc8b8a2 commit 7dcfe2e

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

scripts/android-release-build.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,13 @@ run('npx', ['tauri', 'android', 'init', '--ci'], { noCi: true })
254254
console.log(
255255
'android-release-build: restoring committed gen/android assets from git'
256256
)
257-
run('git', ['checkout', 'HEAD', '--', 'src-tauri/gen/android/app/src/main/'])
257+
run('git', [
258+
'checkout',
259+
'HEAD',
260+
'--',
261+
'src-tauri/gen/android/app/src/main/',
262+
'src-tauri/gen/android/app/proguard-rules.pro',
263+
])
258264

259265
const manifestPath = path.join(genAndroid, 'app/src/main/AndroidManifest.xml')
260266
if (!fs.existsSync(manifestPath)) {
@@ -265,6 +271,15 @@ if (!fs.existsSync(manifestPath)) {
265271
process.exit(1)
266272
}
267273

274+
const proguardRulesPath = path.join(genAndroid, 'app/proguard-rules.pro')
275+
if (!fs.existsSync(proguardRulesPath)) {
276+
console.error(
277+
'android-release-build: proguard-rules.pro missing after init + git restore:',
278+
proguardRulesPath
279+
)
280+
process.exit(1)
281+
}
282+
268283
const buildGradle = path.join(genAndroid, 'app/build.gradle.kts')
269284
if (!fs.existsSync(buildGradle)) {
270285
console.error(

0 commit comments

Comments
 (0)