-
Notifications
You must be signed in to change notification settings - Fork 22
1. Build the project
- clone the repository
- Init submodules with
git submodule initandgit submodule update - Install Rust (https://www.rust-lang.org/tools/install)
Run cargo build to build the project in debug, and cargo build -r to build in release mode.
Output will be available in target/debug or target/release. You'll find odoo_ls_server or odoo_ls_server.exe and odoo_ls_server.pdb on windows.
If you are not packaging OdooLS in a plugin (with related github repository), and want to use the executable directly, do not forget to provide typeshed alongside your server. typeshed folder is already downloaded in server/typeshed, or you can clone it from https://github.com/python/typeshed. You have to provide this folder either next to the odoo_ls_server executable or in your working directory. Typeshed is mandatory to get OdooLS working as it contains stdlib stubs that OdooLS is using to lint Python stuff itself
You can build for any platform from your current machine using docker.
Warning: When building from windows, executables for linux and iOS will lose their 'executable' bit, making the extension not working. If you plan to build for multiple platform, it is better to do it from linux or iOS.
- Install docker
- run
cd serverand./build.sh init - Depending on your target, you can run
./build.sh allor choose specific platform with./build.sh help - Get your output results in
target/YourPlatform/release