microsoft/TypeAgent
Publicmirrored fromhttps://github.com/microsoft/TypeAgentAvailable
.devcontainer/scripts/install-electron-deps.sh
38lines · modecode
| 1 | #!/bin/bash |
| 2 | # Copyright (c) Microsoft Corporation. |
| 3 | # Licensed under the MIT License. |
| 4 | |
| 5 | # |
| 6 | # Install Electron/GUI dependencies for VNC or WSLg environments |
| 7 | # |
| 8 | |
| 9 | set -e |
| 10 | |
| 11 | echo "Installing Electron dependencies..." |
| 12 | |
| 13 | sudo apt-get update |
| 14 | sudo apt-get install -y --no-install-recommends \ |
| 15 | libgtk-3-0 \ |
| 16 | libnotify4 \ |
| 17 | libnss3 \ |
| 18 | libxss1 \ |
| 19 | libxtst6 \ |
| 20 | xdg-utils \ |
| 21 | libatspi2.0-0 \ |
| 22 | libdrm2 \ |
| 23 | libgbm1 \ |
| 24 | libasound2 \ |
| 25 | libsecret-1-0 \ |
| 26 | fonts-liberation |
| 27 | |
| 28 | # Clean up |
| 29 | sudo apt-get clean |
| 30 | sudo rm -rf /var/lib/apt/lists/* |
| 31 | |
| 32 | echo "Electron dependencies installed." |
| 33 | echo "" |
| 34 | echo "For VNC access:" |
| 35 | echo " - Open http://localhost:6080 in your browser" |
| 36 | echo " - Password: typeagent" |
| 37 | echo "" |
| 38 | echo "Then run 'pnpm run shell' in the container terminal" |
| 39 | |