mirror of
https://gitee.com/energye/energy.git
synced 2024-12-05 21:28:17 +08:00
.. | ||
form | ||
resources | ||
main.go | ||
README.md | ||
README.zh_CN.md |
Energy liblcl auto update example
Demonstrating the liblcl dynamic link library module
- liblcl
Using the autoupdate
tool function in the cmd
package, check update.
This example demonstrates the use of UI window design
Reference Example Customization Update
Check update steps
- We copy a dynamic library and customize the import of dynamic link library functions to avoid conflicts with the currently updated ones
- Injecting dynamic library proc by oneself
imports.SetEnergyImportDefs(version)
- initialize
inits.Init(nil, &resources)
- i18n config
- open autoupdate
autoupdate.IsCheckUpdate(true)
- Set the callback function, and if there is an update, the function will be executed
autoupdate.CanUpdateLiblcl
6.1
CanUpdateLiblcl
Obtain information on the updated module and the updated version level6.2. Update processing here, coding...
- call
autoupdate.CheckUpdate()
Check for updates