mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
34 lines
748 B
Bash
Executable file
34 lines
748 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
: "${SERENITY_RAM_SIZE:='256M'}"
|
|
export SERENITY_RAM_SIZE
|
|
|
|
# set SERENITY_ROOT to the path to the serenity directory
|
|
: "${SERENITY_ROOT:='/mnt/c/Users/Ragnarok/serenity-project/serenity'}"
|
|
: "${SERENITY_BUILD:="$SERENITY_ROOT/Build"}"
|
|
export SERENITY_ROOT SERENITY_BUILD
|
|
|
|
cd -P -- "$SERENITY_BUILD" || exit
|
|
make install
|
|
make image
|
|
|
|
# set this to point to qemu installation on windows
|
|
export SERENITY_QEMU_BIN='/mnt/c/Program Files/qemu/qemu-system-i386.exe'
|
|
|
|
export SERENITY_COMMON_QEMU_ARGS="
|
|
$SERENITY_EXTRA_QEMU_ARGS
|
|
-s -m $SERENITY_RAM_SIZE
|
|
-cpu max
|
|
-d cpu_reset,guest_errors
|
|
-smp 2
|
|
-device VGA,vgamem_mb=64
|
|
-hda _disk_image
|
|
-device ich9-ahci
|
|
-debugcon stdio
|
|
-soundhw pcspk
|
|
-soundhw sb16
|
|
"
|
|
|
|
"$SERENITY_ROOT/Meta/run.sh" "$@"
|