How can you build and run from VSCode?


#1

A while back I saw a video where a guy was using vscode to do the programming of a defold project and he had created a task to perform the build and run of the game. I can’t remember what command was called to perform the build/run and I can’t find the video.

Does anyone have any idea how to do this?


#2

We provide a command-line tool for building and bundling: https://www.defold.com/manuals/bob/


#3

Here is a bob build script I’m currently using in production


#4

Thanks for the help :slight_smile:


#5

The script that is posted here allows you to create a build for various platforms (is this not included in the editor initiated builds?), but is there anyway to run (test) your program from outside the defold editor?


#6

Some global Hotkeys to build and run from editor maybe? or some service to send commands to editor?


#7

I think this is possible but I’ve never tried it. Maybe build with compression off, copy dmengine.exe or whatever into place and then run it with command line options?


#8

+1