Skip to content

Commit

Permalink
replace placeholder paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Nov 14, 2024
1 parent ff0ad3e commit 2358de1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/maestro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ jobs:
curl --compressed --location --output tools.zip https://github.com/lzhiyong/android-sdk-tools/releases/download/34.0.3/android-sdk-tools-static-aarch64.zip
unzip -d tools -n -q tools.zip
rm -f tools.zip
cp tools/platform-tools/adb /path/to/android-sdk/platform-tools/adb
cp tools/platform-tools/adb $ANDROID_HOME/platform-tools/adb
rm -fr tools
shell: bash

# https://ci.android.com/builds/branches/aosp-emu-master-dev/grid
- name: Install Emulator
run: |
curl --compressed --location --output emulator.zip $(curl --location --silent https://ci.android.com/builds/submitted/11162281/emulator-linux_aarch64/latest/sdk-repo-linux_aarch64-emulator-11162281.zip | grep -o 'https://storage[^"]*' | sed 's/\\u0026/\&/g')
unzip -d /path/to/android-sdk -n -q emulator.zip
unzip -d $ANDROID_HOME -n -q emulator.zip
rm -f emulator.zip
cp /path/to/android-sdk/platform-tools/package.xml /path/to/android-sdk/emulator/package.xml
cp $ANDROID_HOME/platform-tools/package.xml $ANDROID_HOME/emulator/package.xml
sed -i \
-e 's|path="[a-zA-Z-]*"|path="emulator"|g' \
-e 's|<display-name>Android .*<\/display-name>|<display-name>Android Emulator<\/display-name>|g' \
/path/to/android-sdk/emulator/package.xml
$ANDROID_HOME/emulator/package.xml
echo 'Vulkan = off\nGLDirectMem = on' >> ~/.android/advancedFeatures.ini
shell: bash

Expand Down

0 comments on commit 2358de1

Please sign in to comment.