Skip to content

Commit 00ce259

Browse files
committed
Fix Android SDK related build scripts.
AppVeyor now locates Android SDK under %ProgramFiles(x86)%Android, and the directory cannot be accessed from powershell. So, this commit change android.bat path and its execution source.
1 parent cf0b154 commit 00ce259

File tree

3 files changed

+9
-31
lines changed

3 files changed

+9
-31
lines changed

appveyor-debug.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,20 @@ version: '{branch}-{build}'
22
image: Visual Studio 2017
33
skip_tags: true
44
configuration: Debug
5-
init:
6-
- cmd: >-
7-
cd \
8-
9-
appveyor DownloadFile http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
10-
11-
7z x android-sdk_r24.4.1-windows.zip > nul
12-
13-
cd %APPVEYOR_BUILD_FOLDER%
145
assembly_info:
156
patch: true
167
file: '**\*AssemblyInfo.cs'
178
assembly_version: $(AssemblyBaseVersion).0
189
assembly_file_version: $(AssemblyBaseVersion).{build}
1910
assembly_informational_version: $(PackageVersion)
20-
environment:
21-
ANDROID_HOME: C:\android-sdk-windows
2211
install:
23-
- ps: >-
24-
cd ./build
12+
- cmd: >-
13+
cd .\build
2514
15+
UpdateAndroidSdk.cmd
16+
- ps: >-
2617
./SetBuildEnv.ps1
2718
28-
./UpdateAndroidSdk.cmd
29-
3019
cd ..
3120
build_script:
3221
- ps: >-

appveyor-release.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,20 @@ branches:
55
- master
66
- 0.7
77
configuration: Release
8-
init:
9-
- cmd: >-
10-
cd \
11-
12-
appveyor DownloadFile http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
13-
14-
7z x android-sdk_r24.4.1-windows.zip > nul
15-
16-
cd %APPVEYOR_BUILD_FOLDER%
178
assembly_info:
189
patch: true
1910
file: '**\*AssemblyInfo.cs'
2011
assembly_version: $(AssemblyBaseVersion).0
2112
assembly_file_version: $(AssemblyBaseVersion).{build}
2213
assembly_informational_version: $(PackageVersion)
23-
environment:
24-
ANDROID_HOME: C:\android-sdk-windows
2514
install:
26-
- ps: >-
27-
cd ./build
15+
- cmd: >-
16+
cd .\build
2817
18+
UpdateAndroidSdk.cmd
19+
- ps: >-
2920
./SetBuildEnv.ps1
3021
31-
./UpdateAndroidSdk.cmd
32-
3322
cd ..
3423
build_script:
3524
- ps: >-

build/UpdateAndroidSdk.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
echo y | "%ANDROID_HOME%/tools/android.bat" --silent update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3
1+
echo y | "%ProgramFiles(x86)%\Android\android-sdk\tools\android.bat" --silent update sdk --no-ui --all --filter android-10,platform-tools,tools,build-tools-23.0.3

0 commit comments

Comments
 (0)