Build all required artifacts with one command:
./build.sh -bExpected output files:
browser/dist/darkbot_browser_linux.AppImagebuild/client/DarkTanos.sobuild/do_lib/libdo_lib.so
cmakeand a C++ toolchain (gcc/g++,make)strip(usually frombinutils)nvminstalled (~/.nvm/nvm.shmust exist)- Node.js version from
browser/.nvmrc(the script runsnvm use || nvm install) npm
From repo root:
./build.sh -bWhat this does:
- Builds browser AppImage in
browser/dist/ - Configures/builds CMake project in
build/ - Renames
build/client/libDarkTanos.sotobuild/client/DarkTanos.so - Strips symbols from
DarkTanos.soandlibdo_lib.so - Runs
./copy.shautomatically if that file exists and is executable
chmod +x browser/dist/darkbot_browser_linux.AppImageCheck artifacts exist:
ls -lh \
browser/dist/darkbot_browser_linux.AppImage \
build/client/DarkTanos.so \
build/do_lib/libdo_lib.soCheck library dependencies resolve:
ldd build/client/DarkTanos.so
ldd build/do_lib/libdo_lib.soOptional AppImage smoke check:
./browser/dist/darkbot_browser_linux.AppImage --appimage-versionYour DarkBot base must be:
- Latest changes from: https://github.com/darkbot-reloaded/DarkBot
- Including PR: darkbot-reloaded/DarkBot#449
- Including PR: darkbot-reloaded/DarkBot#448
- Including PR: darkbot-reloaded/DarkBot#453
After building, copy these files into your DarkBot lib directory:
browser/dist/darkbot_browser_linux.AppImagebuild/client/DarkTanos.sobuild/do_lib/libdo_lib.so
You can copy them manually, or use copy.sh as described below.
In DarkBot LibSetup, disable/skip logic that overwrites these files in the bot lib directory:
DarkTanos.solibdo_lib.so
This is required so your locally built versions remain in use.
If you want automatic copy to your DarkBot lib folder after each build:
- Copy
copy.sh.exampletocopy.sh - Set destination path (
DEST) incopy.sh - Make it executable:
cp copy.sh.example copy.sh
chmod +x copy.shThen ./build.sh -b will copy artifacts automatically.