-
Make sure you have rustup, nodejs, python and virtualenv installed
-
Run init.sh (I didn't make a batch file for windows yet)
-
If you want to use lldb in VSCode install that otherwise you should be up to go now.
-
open
workspace.code-workspace
and install the recomended extentions for the workspace -
rebuild the core with
./rebuild-core.sh
or running the task from the command palleteCtrl+shift+P
(on linux) >Tasks: Run Task
>rebuild-all-dc-node
-
start electron with
cd deltachat-desktop
npx electron .
- when electron is running press
F5
and attach the debugger to the first electron process (should be the one with the lowest process id)
Info: the rust extention has some minor problems with this setup, because the support for multi folder workspaces isn't merged there yet rust-lang/vscode-rust#638
rebuild core and bindings:
run ./rebuild-core.sh
or
cd deltachat-node
npm run rebuild-all
cd ..
start electron:
cd deltachat-desktop
npx electron .
rebuild desktop after changing renderer javascript or scss:
run ./build-js.sh
or
cd deltachat-node
npm run build
cd ..
To setup also run ./init_python_test_env.sh
.
(this script removes the virtual python enviroment then recreates it and installs all dependencies)
To run the tests run ./run-pytest.sh
.
To debug the tests run ./scripts/install-py-bindings.sh
and then start debugging with the Debug Tests (pytest)
profile selected.
When you want to test the online tests you need to set the DCC_NEW_TMP_EMAIL
enviroment variable, read more about it in deltachat-core-rust/python/README.rst.