Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix: propagate INSTALL_WINARENA_APPS to Windows guest via install_config.json

f-trycua9ccd0af31282
diff --git a/libs/qemu-docker/windows/src/entry.sh b/libs/qemu-docker/windows/src/entry.sh
index 19407f6d65..aba4aaf18e 100644
--- a/libs/qemu-docker/windows/src/entry.sh
+++ b/libs/qemu-docker/windows/src/entry.sh
@@ -18,6 +18,16 @@ if [ -d "/storage" -a ! -f "/storage/windows.boot" ]; then
touch /storage/windows.boot
fi
+# Generate install_config.json from Docker environment variable
+# This allows the INSTALL_WINARENA_APPS env var to be passed to the Windows guest
+if [ "$INSTALL_WINARENA_APPS" = "true" ]; then
+ echo "Creating install_config.json with INSTALL_WINARENA_APPS=true..."
+ echo '{"INSTALL_WINARENA_APPS": true}' > /oem/install_config.json
+else
+ echo "Creating install_config.json with INSTALL_WINARENA_APPS=false..."
+ echo '{"INSTALL_WINARENA_APPS": false}' > /oem/install_config.json
+fi
+
# Start the VM in the background
echo "Starting Windows VM..."
/usr/bin/tini -s /run/entry.sh &