Skip to content

Commit

Permalink
chore: comment out signingConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Feb 22, 2024
1 parent 4170351 commit dd17097
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-f-droid-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Build by eject eas and remove debug signing key
run: |
npx expo prebuild -p android --clean
sed -i '/signingConfigs {/,/^[[:space:]]*}/{d;}' android/app/build.gradle
zx scripts/removeDebugSigningConfigs.mjs
# TODO: https://github.com/tiddly-gittly/TidGi-Mobile/issues/6
# - name: Remove prorietary bits (for fix f-droid)
Expand Down
9 changes: 9 additions & 0 deletions scripts/removeDebugSigningConfigs.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { promises as fs } from 'fs';

const gradleFilePath = './android/app/build.gradle';
let gradleFileContent = await fs.readFile(gradleFilePath, 'utf8');

// Correctly comment out the 'signingConfig' line in the 'release' build type
gradleFileContent = gradleFileContent.replaceAll(/signingConfig signingConfigs.debug/g, '// signingConfig signingConfigs.debug');

await fs.writeFile(gradleFilePath, gradleFileContent);

0 comments on commit dd17097

Please sign in to comment.