diff --git a/Examples/Electron/Electron.md b/Examples/Electron/Electron.md index 1ec4a58..3ff64c9 100644 --- a/Examples/Electron/Electron.md +++ b/Examples/Electron/Electron.md @@ -24,9 +24,9 @@ Note: \ Only the functionality needed for this example is currently implemented in the Electron base classes.\ They are by no means complete yet. If you want to contribute, feel free :). -## Linux +## Linux - Ubuntu -Ubuntu 24.04 restricts the use of sandboxes, preventing Electron startup. +Ubuntu restricts the use of sandboxes, preventing Electron startup. To lift this restrictions that execute: `sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0` diff --git a/Examples/Electron/build.sh b/Examples/Electron/build.sh index 1cdc8e6..2b36743 100755 --- a/Examples/Electron/build.sh +++ b/Examples/Electron/build.sh @@ -23,6 +23,8 @@ echo "Pre-launch script" ./preLaunch.sh # Run tests +# If this fails on Ubuntu, you maybe need to run this: +# sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 cd out ../node_modules/.bin/electron main.js -test diff --git a/Examples/NodeGui/NodeGui.md b/Examples/NodeGui/NodeGui.md index 88f8291..fab7ca3 100644 --- a/Examples/NodeGui/NodeGui.md +++ b/Examples/NodeGui/NodeGui.md @@ -11,7 +11,7 @@ though most styling of them can be done through farmiliar CSS. Just open the file `NodeGui.code-workspace` with VSCode and press `[F5]`. -### Runing on Ubuntu 24.04 +### Runing on Ubuntu To be able to start NodeGui on the QT 6.6.x platform on Ubuntu 24.04,\ the folowing library needs to be installed manually: diff --git a/Examples/NodeGui/build.sh b/Examples/NodeGui/build.sh index 233f2bf..071ea3d 100755 --- a/Examples/NodeGui/build.sh +++ b/Examples/NodeGui/build.sh @@ -18,5 +18,7 @@ tsc node ../../Compiler/out/App.js ../../Smalltalk/Core ../../Smalltalk/Node ../../Smalltalk/NodeGui src out # Run tests +# If this fails on Ubuntu, you maybe need to run this: +# sudo apt-get install libxcb-cursor0 node_modules/.bin/qode out/App.js -test diff --git a/Examples/Pharo/Server/.env.example b/Examples/Pharo/Server/.env.example index b899eae..c852e47 100644 --- a/Examples/Pharo/Server/.env.example +++ b/Examples/Pharo/Server/.env.example @@ -15,3 +15,4 @@ # pharoVm=$HOME"/Documents/Pharo/vms/120-x64/Pharo.app" # pharoImage=$HOME"/Documents/Pharo/images/Pharo12/Pharo12.image" # pharoWeb=`pwd`"/../Client/web" + diff --git a/Node/build.sh b/Node/build.sh index ba4d7ef..dd0e5d4 100755 --- a/Node/build.sh +++ b/Node/build.sh @@ -8,23 +8,24 @@ cd "$(dirname "$0")" echo "==== Node" +# Compile TypeScript +echo "tsc Node" +tsc + +# Compile Smalltalk +node ../Compiler/out/App.js ../Smalltalk/Core ../Smalltalk/Node src out + # Check and run .env file if ! test -f .env then echo "Warning: '.env' file missing. See '.env.example'." -else - set -o allexport - source .env - set +o allexport + echo "Skipping browser tests." + exit 0 fi -# Compile TypeScript -echo "tsc Node" -tsc - -# Compile Smalltalk -node ../Compiler/out/App.js ../Smalltalk/Core ../Smalltalk/Node src out +set -o allexport +source .env +set +o allexport -# Run unit tests -./start.sh +node out/App.js