Is there any way to make tileserver-gl working inside a desktop program so when the program start the tile server start with it
Yes, you can set up NW.js to run a local webserver, and point to that for your app. Here is an example:
More examples for NW.js are at