edvin / fxlauncher

Auto updating launcher for JavaFX Applications
Apache License 2.0
715 stars 107 forks source link

Allow to dynamically set the download url #108

Closed tobrob closed 6 years ago

tobrob commented 6 years ago

Hello,

we really like the fxlauncher framework. It enables us to avoid having to update our javafx clients manually.

Is it possible to set the uri in our custom ui, e.g. using a textfield or reading it from java preferences. If this would be possible, we could only have one single JavaFx-Client.exe that we can install on multiple devices. And every device could use a different local network uri to load its content.

Do you know a way to achieve this?

Thanks very much in advance. :)

edvin commented 6 years ago

You might be able to use the app and uri parameters, take a look in the README for more details. Does that work for you?

rppimenta commented 6 years ago

Hi,

I need the same @tobrob solution. I may not be understanding the correct operation of --app and --uri. I'm not using the app.xml built into the launcher. I was only using the --uri parameter with the remote url, but in cases where the machine is completely off, the app will not open. I would like to configure the --uri remote, and pass the --app a local file? So in cases where --uri fails, it uses the --app local file?

I'm sorry if I did not understand the correct operation.

tobrob commented 6 years ago

Thanks for the answer. The uri parameter might be a workaround we could use. This would be a bit unconvenient however. We would have to manually create a link on the desktop and set the uri-parameter there or create multiple releases with a preconfigured uri.

What we would prefer is to enable the user to configure the uri (or ip) using a costum ui. As I see there's no easy way to achieve this? Is there?

Thanks so much

edvin commented 6 years ago

Why don't you just build multiple versions, one for each app? :)

tobrob commented 6 years ago

Ok. Then that's what we are going to do. We will create a parameterized build to be able to create a client with a pre-configured uri for each deployment.