Wails v0.18.5

This version brings better handling of shutdown behaviour.

A huge thank you to everyone that was involved in this release!

Wails Shutdown

It is now possible to create methods on structs that will get called during application shutdown. Any struct methods with the signature WailsShutdown() will be called during shutdown.

Example:

  1. type MyStruct struct {
  2. runtime *wails.Runtime
  3. }
  4. // This method will be called during application startup
  5. func (s *MyStruct) WailsInit(runtime *wails.Runtime) error {
  6. // Save runtime
  7. s.runtime = runtime
  8. // Allocate some resources...
  9. return nil
  10. }
  11. // This method will be called during application startup
  12. func (s *MyStruct) WailsShutdown() {
  13. // De-Allocate some resources...
  14. return nil
  15. }

We will be spending the next month improving documentation and bug fixing. Please let us know what bugs you find and we will look at them with the highest priority!

See you at v1.0.0!