File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -116,11 +116,13 @@ def export_environment(ndk_only):
116
116
with open (os .path .join (ROOT_DIR , "environment.sh" ), "a" ) as myfile :
117
117
if not ndk_only :
118
118
myfile .write ("export ANDROID_SDK_ROOT=" + ANDROID_SDK_ROOT + "\n " ) # refer to: https://developer.android.google.cn/studio/command-line/variables
119
+ myfile .write ("export ANDROID_HOME=" + ANDROID_SDK_ROOT + "\n " ) # github action has ANDROID_HOME=/usr/local/lib/android/sdk
119
120
myfile .write ("export ANDROID_NDK=" + ANDROID_NDK + "\n " ) # for lua binding generator
120
121
121
122
with open (os .path .join (ROOT_DIR , "environment.ps1" ), "a" ) as myfile :
122
123
if not ndk_only :
123
124
myfile .write ("$env:ANDROID_SDK_ROOT=\" " + ANDROID_SDK_ROOT + "\" \n " )
125
+ myfile .write ("$env:ANDROID_HOME=\" " + ANDROID_SDK_ROOT + "\" \n " )
124
126
myfile .write ("$env:ANDROID_NDK=\" " + ANDROID_NDK + "\" \n " ) # for lua binding generator
125
127
126
128
def main (ndk_only ):
You can’t perform that action at this time.
0 commit comments