mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-23 19:39:30 +00:00
fix: create Android keystore directory before SDK license step
Move the directory creation before the SDK license acceptance step to avoid permission issues. The directory will be created with normal user permissions, preventing the "Operation not permitted" errors when the SDK manager (running with sudo) tries to use it.
This commit is contained in:
parent
f750e8a3eb
commit
5afce16532
1 changed files with 5 additions and 5 deletions
10
.github/workflows/feature-branch-build.yaml
vendored
10
.github/workflows/feature-branch-build.yaml
vendored
|
|
@ -24,14 +24,14 @@ jobs:
|
|||
flutter-channel: stable
|
||||
java-version: 17
|
||||
|
||||
- name: Accept Android SDK Licenses
|
||||
run: |
|
||||
yes | sudo $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
|
||||
|
||||
- name: Prepare Android debug keystore directory
|
||||
run: |
|
||||
mkdir -p $HOME/.config/.android
|
||||
sudo chmod -R 755 $HOME/.config/.android
|
||||
chmod -R 755 $HOME/.config/.android
|
||||
|
||||
- name: Accept Android SDK Licenses
|
||||
run: |
|
||||
yes | sudo $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses
|
||||
|
||||
- name: Run build_runner to generate code
|
||||
run: flutter pub run build_runner build --delete-conflicting-outputs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue