maybe you can help me or have a idea for this topic.
Situation:
Our Clients are running their own tomcat-server on their customer-server. For the Clients were using NGDesktop.
So for it to work correctly, we´re configuring the
- Code: Select all
servoy.json
- Code: Select all
C:\Program Files\OurSolution\resources\app.asar.unpacked\config\servoy.json
We´re replacing the url properties from
- Code: Select all
"url":"http://localhost:8183/OurSolution/solution/OurSolution/index.html"
- Code: Select all
"url":"http://CUSTOMER-SERVER-IPt:8183/OurSolution/solution/OurSolution/index.html"
Because in our war-export we´re setting URL = localhost, every customer has a different server-ip. A very few are server=client, there we dont need to configure the servoy.json.
Now the problem: we got the electron auto-update working fine, its udpating the libraries, executables, etc. BUT it also replaces the servoy.json with the not-configured one.
So the customer gets a "hey you have a electron" update, restarts the application -> update gets downloade -> starts the application -> white-screen because the URL in the config is wrong.
I tried to look further into it, it seems like the electron-builder has a "ignore"-flag for files/directories. But we dont have the electron-builder.
Maybe im not seeing a critical point in this. The next option is to write a own Updater with C#. But maybe you guys have better ideas. Maybe it can even be a feature-request for servoy?
Greetings
-Vik