Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
linusyang committed Jun 5, 2019
1 parent db8ea39 commit 2c12a7e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cleaner-fix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ update_international_build_flag() {
found=()
if [[ "$OSTYPE" == "cygwin"* ]]; then
pushd "$path"
cmdret="$(findstr /sm /c:${pattern} '*.*' | tr -d '\015')"
cmdret="$(/cygdrive/c/Windows/System32/findstr.exe /sm /c:${pattern} '*.*' | tr -d '\015')"
popd
result="${cmdret//\\//}"
while read i; do
Expand Down
8 changes: 4 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
declare -a urls=(

# Rom URLs
'http://bigota.d.miui.com/9.3.21/miui_MIMIX2_9.3.21_60ed4e8ded_8.0.zip'
'http://bigota.d.miui.com/V10.3.1.0.ODECNXM/miui_MIMIX2_V10.3.1.0.ODECNXM_2fecb5a6ab_8.0.zip'

)

EU_VER=9.3.21
EU_VER=V10.3.1.0.ODECNXM

declare -a eu_urls=(

# EU Rom URLs
'https://jaist.dl.sourceforge.net/project/xiaomi-eu-multilang-miui-roms/xiaomi.eu/MIUI-WEEKLY-RELEASES/9.3.21/xiaomi.eu_multi_MIMix2_9.3.21_v10-8.0.zip'
'https://jaist.dl.sourceforge.net/project/xiaomi-eu-multilang-miui-roms/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv10/xiaomi.eu_multi_MIMix2_V10.3.1.0.ODECNXM_v10-8.0.zip'

)

Expand Down Expand Up @@ -41,6 +41,6 @@ done
[[ "$1" == "keep" ]] || rm -rf miui-*/ miui_*.zip
for i in "${eu_urls[@]}"
do
bash cleaner-fix.sh --trafficfix --nofbe "$i" || exit 1
bash cleaner-fix.sh --nofbe "$i" || exit 1
done
exit 0
1 change: 1 addition & 0 deletions tools/win32-addons/add.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ copy brotli.exe ..\win32\bin\
copy vdexExtractor.exe ..\win32\bin\
copy sort.exe ..\win32\bin\
copy tr.exe ..\win32\bin\
copy python2.7.exe ..\win32\bin\
popd
Binary file added tools/win32-addons/python2.7.exe
Binary file not shown.

0 comments on commit 2c12a7e

Please sign in to comment.