Browse Source

Prevent running of dockerized.sh script with root user.
Website - add memory requirement for Android build.

Yao Wei Tjong 姚伟忠 4 years ago
parent
commit
1132abfa84

+ 1 - 0
script/dockerized.sh

@@ -22,6 +22,7 @@
 #
 
 if [[ $# -eq 0 ]]; then echo "Usage: dockerized.sh linux|mingw|android|rpi|arm|web [command]"; exit 1; fi
+if [[ $(id -u) -eq 0 ]]; then echo "Should not run using sudo or root user"; exit 1; fi
 
 PROJECT_DIR=$(cd "${0%/*}/.." || exit 1; pwd)
 

+ 3 - 1
website/docs/getting-started/installation.mdx

@@ -52,7 +52,9 @@ This may change in the future when the project uses better package manager and M
       <br/>
       Tested tool version: <strong>29.0.2</strong><br/>
       Tested NDK version: <strong>21.3.6528147</strong><br/>
-      Tested Android gradle plugin version: <strong>4.0.2</strong>
+      Tested Android gradle plugin version: <strong>4.0.2</strong><br/>
+      <br/>
+      Required RAM size: <strong>16GB</strong>
     </div>
   </TabItem>
   <TabItem value={'apple'}>

+ 6 - 0
website/docs/getting-started/quick-start.mdx

@@ -31,6 +31,12 @@ Windows host system requires WSL2.
 
 :::
 
+:::caution
+
+Android platform requires 16GB of RAM on the host system.
+
+:::
+
 ## Install Urho3D Library with DBE
 
 Clone the Urho3D project from the main branch, change directory to its project root, and execute the following commands to install the library for your desired target platform. Except for Android platform, which uses `~/.m2/repository/`, the default install location is: <code>~/.urho3d/install/<em>&lt;platform&gt;</em>/</code>. The "~" here refers to home directory mounted from a docker volume and as such it is persistent in between docker runs.