mirror of
https://github.com/Quad4-Software/MeshChatX.git
synced 2026-08-18 09:49:09 -04:00
chore(android): update build configuration
This commit is contained in:
parent
5a5f4ea6bb
commit
560d59cd76
2 changed files with 11 additions and 0 deletions
|
|
@ -97,6 +97,12 @@ tasks.register("fetchRepositoryBundledWheels", Exec) {
|
|||
commandLine(pyExe, "scripts/build/fetch_repository_wheels.py")
|
||||
ignoreExitValue = false
|
||||
onlyIf {
|
||||
if (System.getenv("MESHCHATX_OFFLINE_BUILD") == "1") {
|
||||
if (!repositoryBundledWheelsDir.isDirectory() || !repositoryBundledWheelsDir.list()?.any { it.endsWith(".whl") }) {
|
||||
throw new org.gradle.api.GradleException("MESHCHATX_OFFLINE_BUILD=1 but repository bundled wheels are missing at ${repositoryBundledWheelsDir}")
|
||||
}
|
||||
return false
|
||||
}
|
||||
if (System.getenv("MESHCHATX_SKIP_REPOSITORY_WHEELS_FETCH") == "1") {
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,11 @@ EOF
|
|||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
if [ "${MESHCHATX_OFFLINE_BUILD:-}" = "1" ]; then
|
||||
echo "MESHCHATX_OFFLINE_BUILD=1: Android wheel build requires network access. Pre-build wheels offline or unset MESHCHATX_OFFLINE_BUILD." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PYTHON_MINOR="3.11"
|
||||
TARGET_VERSION=""
|
||||
CHAQUOPY_REF="${CHAQUOPY_REF:-master}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue