Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Fix WSL compatibility and improvement to script #3503

Merged
merged 2 commits into from
Mar 13, 2020
Merged

[Android] Fix WSL compatibility and improvement to script #3503

merged 2 commits into from
Mar 13, 2020

Conversation

truboxl
Copy link
Contributor

@truboxl truboxl commented Mar 13, 2020

Fixes #

Description of the Change

Path does not parse correctly for build_all.sh in WSL. Use double quotes.
Eliminate the need to redownload the NDK and source code for OpenSSL and cURL for every new build.

Alternate Designs

Virtualbox VM is slower, heavier, bandwidth intensive and time consuming just to set up one. WSL is much lighter and support is improving with the use of Visual Studio Code. Using Windows version of Android Studio should be possible. WSL needs to install the same dependencies listed in Vagrantfile. WSL also needs python2 to deal with make_standalone_toolchain.py.

ATM requires copying of entire repo to a readable path after binary compilation as Android Studio does not allow reading project files over WSL network share. However some files may not be copied properly because of symlink files. Certain case sensitive files (mainly Android toolchain files) will overwrite each other when copied. The app can still be compiled in Android Studio.

Or just map it to a network drive. microsoft/WSL#3854 (comment)
However that causes IOExecptionError at Gradle.

Release Notes

N/A

For unknown reason, it will exit 1 with "cache_dir must be an absolute path without ./ or ../ in it" in WSL.
Add double quote to fix it.
1. It is extremely inefficient to delete downloaded files and download them again for every new build
2. Allow resuming partial downloads whenever possible
3. Delete the files when passing --clean
@AenBleidd
Copy link
Member

Thanks for the fix

@AenBleidd AenBleidd merged commit 37cb5f9 into BOINC:master Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants