fix: fix android path

This commit is contained in:
zzy 2022-08-22 09:49:52 +08:00 committed by Gitea
parent e877dc7414
commit f22a0ef6c3
2 changed files with 10 additions and 10 deletions

View File

@ -58,7 +58,7 @@ end
desc 'install spacevim and related config files' desc 'install spacevim and related config files'
task :install_spacevim do task :install_spacevim do
run 'curl -sLf https://spacevim.org/install.sh | sed "s;github.com/SpaceVim;yuancode.ruilisi.com/ruilisi;" | bash' run 'curl -sLf https://spacevim.org/install.sh | sed "s;github.com/SpaceVim;yuancode.co/ruilisi;" | bash'
install_files(Dir.glob('SpaceVim*')) install_files(Dir.glob('SpaceVim*'))
end end
@ -66,7 +66,7 @@ desc 'Update spacevim'
task :update_spacevim do task :update_spacevim do
run %( run %(
cd ~/.SpaceVim cd ~/.SpaceVim
git remote set-url origin https://yuancode.ruilisi.com/ruilisi/SpaceVim.git git remote set-url origin https://yuancode.co/ruilisi/SpaceVim.git
git pull --rebase git pull --rebase
) )
end end

View File

@ -2,13 +2,13 @@
export EDITOR=vim export EDITOR=vim
#### Android #### Android
export ANDROID_HOME=$HOME/Library/Android/sdk #export ANDROID_HOME=$HOME/Library/Android/sdk
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk #export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export ANDROID_SDK_HOME=$HOME/Library/Android/sdk ##export ANDROID_SDK_HOME=$HOME/Library/Android/sdk
export ANDROID_NDK_HOME=$HOME/Library/Android/sdk/ndk-bundle #export ANDROID_NDK_HOME=$HOME/Library/Android/sdk/ndk-bundle
#export NDK_PROJECT_PATH=$HOME/Projects/rallets-android/src/main ##export NDK_PROJECT_PATH=$HOME/Projects/rallets-android/src/main
export NDK_PROJECT_PATH=src/main #export NDK_PROJECT_PATH=src/main
export PATH=$PATH:$HOME/Android/sdk/platform-tools:$HOME/Android/sdk/tools/ #export PATH=$PATH:$HOME/Android/sdk/platform-tools:$HOME/Android/sdk/tools/
#### Qiniu #### Qiniu
QINIU_ACCESS_KEY=l6Rf0LgQDgpSwjdXr_MgsCynhsofRM7W2dwvIOXO QINIU_ACCESS_KEY=l6Rf0LgQDgpSwjdXr_MgsCynhsofRM7W2dwvIOXO
@ -16,7 +16,7 @@ QINIU_ACCESS_KEY=l6Rf0LgQDgpSwjdXr_MgsCynhsofRM7W2dwvIOXO
#### Java #### Java
export JAVA_HOME=/usr/lib/jvm/java-7-oracle export JAVA_HOME=/usr/lib/jvm/java-7-oracle
if [ "$(uname)" = "Darwin" ]; then if [ "$(uname)" = "Darwin" ]; then
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then elif [ "$(expr substr $(uname -s) 1 5)" = "Linux" ]; then
fi fi