Skip to content

Commit 84acb5a

Browse files
authored
Update build.yml
1 parent 2469297 commit 84acb5a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ jobs:
244244
sed -i '/packLocale/s/constexpr //;/packScript/s/constexpr //' src/base/libs/androidfw/include/androidfw/LocaleDataLookup.h
245245
sed -i '/utf8.resize_and_overwrite/{N;N;N; s/utf8.resize_and_overwrite(utf8_length,.*{[^}]*});/utf8.resize(utf8_length);\n utf16_to_utf8(utf16.data(), utf16.length(), utf8.data(), utf8_length + 1);/}' src/base/libs/androidfw/Util.cpp
246246
sed -i '/if (!getenv("ADB_USB") || strcmp(getenv("ADB_USB"), "0") != 0) {/,/} else {/c\
247-
if (!getenv("ADB_USB") || strcmp(getenv("ADB_USB"), "0") != 0) {\
248-
usb_init();\
249-
} else {' ${PWD}/src/adb/client/main.cpp
247+
sed -i 's/libusb::usb_init();/usb_init();/g' ${PWD}/src/adb/client/main.cpp
250248
251249
- name: Build Android SDK
252250
shell: bash

0 commit comments

Comments
 (0)