Closed ColinZeb closed 1 year ago
Yes.
Modified from README.md:
string UPDATEPATH = "https://the.place/you-host/updates";
private static async Task UpdateMyApp()
{
if(offline = true)
{
UPDATEPATH = "\\server\my\offline\path\"
}
using var mgr = new UpdateManager(UPDATEPATH);
var newVersion = await mgr.UpdateApp();
// optionally restart the app automatically, or ask the user if/when they want to restart
if (newVersion != null) {
UpdateManager.RestartApp();
}
}
Use UpdateManager to specify different paths.
@KennyTK My issue is whether it is possible to customize the runtime path during execution. For example, if I deploy an update website locally or on an intranet server, can the client detect the absence of a runtime and download it from the intranet instead of from the Microsoft website?
@ColinZeb I think there may be a conflation between runtime, framework, and the purpose of Clowd. When you are referring to runtime, do you mean dot net framework?
possibly related to #152
@KennyTK Yes, I need to be able to install the .net framework automatically when installing in a brand new environment, not from the Internet, but from an update site.
No this is not supported. If you think this can be implemented in a generic way which would be useful to others, feel free to submit a PR though!
This method gets the url for downloading runtime.
For example, placing the runtime in the 'runtime' folder on the update website