5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-08 20:54:06 +08:00
Commit Graph

614 Commits

Author SHA1 Message Date
Lea Anthony
7ebb000253
WIP 2025-01-22 21:51:35 +11:00
Lea Anthony
276a1a22a5
Mac support 2025-01-22 19:29:23 +11:00
Lea Anthony
547e30f025
Default panic handler should fatal. Update docs and example. 2025-01-21 06:44:28 +11:00
Lea Anthony
8ba623f5fe
Fix build issue 2025-01-17 21:21:32 +11:00
Lea Anthony
be8159d410
# Conflicts:
#	docs/src/content/docs/changelog.mdx
#	v3/pkg/application/menuitem.go
2025-01-17 21:19:23 +11:00
Fabio Massaioli
f01b4b9a21
[v3] Fix binding generator bugs (#4001)
* Add some clarifying comments

* Remove special handling of window parameters

* Improve internal method exclusion

* Add test for internal method exclusion

* Remove useless blank field from app options

This is a leftover from an older version of the static analyser. It should have been removed long ago.

* Remove redundant godebug setting

gotypesalias=1 is the default starting with go1.23

* Use new range for syntax to simplify code

* Remove generator dependency on github.com/samber/lo

* Ensure generator testing tasks do not use the test cache

* Rename cyclic types test

* Test for cyclic imports

* Fix import cycle between model files

* Sort class aliases after their aliased class

* Test class aliases

* Fix length of default value for array types

* Test array initialization

* Add changelog

* Update changelog

* Fix contrived marking technique in model sorting algorithm

* Update binding example

* Update test data

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-01-17 18:56:07 +11:00
Lea Anthony
e668c81806
Improved panic handling. Added guide. 2025-01-16 22:08:18 +11:00
Lea Anthony
0e02b07ba3
Fix typos 2025-01-16 20:25:07 +11:00
Lea Anthony
f6ebd6b3de
Breaking Change: Service method names 2025-01-16 07:47:23 +11:00
Lea Anthony
51e3a6168c
Fix nil menu issue when calling RegisterContextMenu 2025-01-15 19:43:10 +11:00
Lea Anthony
33ac88dc2a
Add window to context when calling a service method. Add window-call example to demonstrate how to know which window is calling a service. Fix Window ID skip issue. 2025-01-15 19:32:15 +11:00
Lea Anthony
3f78a3a8ce
Fix edit menus on windows and linux 2025-01-15 07:56:00 +11:00
Lea Anthony
760b58726a
Fix mac window show/hide event mapping. 2025-01-12 20:30:55 +11:00
Lea Anthony
9569d487a2
Ensure some menuitem methods are run on the main thread.
Some checks failed
Build + Test v3 alpha / Test Templates (1.23, macos-latest, svelte-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, lit) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, lit-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, preact) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vanilla) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vanilla-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla-ts) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue) (push) Has been cancelled
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue-ts) (push) Has been cancelled
2025-01-12 15:05:39 +11:00
Mario
20e050b602
[v3] app quit on message (#3990)
Some checks are pending
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vue-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue-ts) (push) Blocked by required conditions
/ publish (push) Waiting to run
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
* app quit on message

* update changelog
2025-01-11 14:35:32 +11:00
Atterpac
e0c5de6e10
[V3/Linux] Fix Min/Max window options (#3979)
Some checks are pending
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vue-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue-ts) (push) Blocked by required conditions
/ publish (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
Deploy to GitHub Pages / build (push) Waiting to run
fix min/max options for linux

changelog.md

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-01-11 10:32:27 +11:00
5aaee9
a5c32a1504
[v3] allow build with garble (#3192)
Some checks are pending
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, macos-latest, vue-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, lit-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, preact-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, react-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, svelte-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, ubuntu-latest, vue-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, lit-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, preact-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, react-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, svelte-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vanilla-ts) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue) (push) Blocked by required conditions
Build + Test v3 alpha / Test Templates (1.23, windows-latest, vue-ts) (push) Blocked by required conditions
/ publish (push) Waiting to run
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
* feat: allow build with garble

* docs: update

* Updated docs

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-01-10 16:36:24 +11:00
Lea Anthony
91a99299b1
Fix version string in debug build 2025-01-02 20:47:37 +11:00
Lea Anthony
773dca77d4
Single Instance feature.
Fix missing events on darwin.
2024-12-30 21:02:43 +11:00
Lea Anthony
8b53aa39ff
Update changelog.mdx 2024-12-28 13:23:58 +11:00
Lea Anthony
86f5049d29
Improve move & resize debouncer.
Fix double event.
Fix shutdown issue with webview2.
2024-12-27 12:05:11 +11:00
Lea Anthony
11cdbd8b83
Add in resize debounce as an option 2024-12-27 11:20:32 +11:00
Lea Anthony
1276ef178b
Improved "HiddenOnTaskbar" implementation. 2024-12-27 09:14:43 +11:00
Lea Anthony
27480bc6cb
Reduce flicker. 2024-12-27 09:09:00 +11:00
Lea Anthony
a90764891f
Update systray-custom to show keep-alive after window kill 2024-12-23 20:55:29 +11:00
Lea Anthony
65f95b0380
Removed OnShouldClose: Create single way of handling conditional and unconditional close. 2024-12-23 08:23:07 +11:00
Lea Anthony
8e98d6dd19
Handle events at a lower level 2024-12-22 10:02:16 +11:00
Lea Anthony
2ff4e6a080
Small improvements around mainthread switching 2024-12-21 12:13:48 +11:00
Lea Anthony
454d170dfb
[mac] setPosition - adjust based on scale factor 2024-12-20 18:12:54 +11:00
Lea Anthony
95a5b926fd
[windows] Improve minimise and restore window drawing 2024-12-18 07:45:33 +11:00
Lea Anthony
7aa6abfefe
Documentation updates.
New `-git` flag for `wails3 init`.
New `wails3 generate webview2bootstrapper` command.
2024-12-16 20:00:56 +11:00
Lea Anthony
e75f9c9c7f
Fix window shutdown issue.
Handle error serving capabilities.
2024-12-15 09:02:43 +11:00
Lea Anthony
957f759197
Improve window destroying on Mac 2024-12-14 17:56:16 +11:00
Lea Anthony
6e84337898
Fix dialog directory chooser example.
Remove debug output.
2024-12-14 15:11:40 +11:00
Lea Anthony
a0b2ab7c0a
Fix default index.html serving.
Support multi-language default.
Remove default page from production builds.
Improve defaultindex.html.
2024-12-14 11:10:07 +11:00
Lea Anthony
beacf06c7d
Fix macOS systray DPI scaling and offset.
Added new systray examples.
2024-12-13 23:46:27 +11:00
Rick Calixte
d03f4ce54a
OpenFileManager for opening with the native file manager and optional file selection support (#3937)
OpenFileManager for opening with the native file manager and optional
file selection support

Closes #3197

Co-authored-by: Krzysztofz01 <krzysztof.zon2001@gmail.com>
2024-12-13 21:37:18 +11:00
Lea Anthony
2e4fce7c67
OpenDirectory for opening native file manager at the given dir 2024-12-07 21:31:13 +11:00
Lea Anthony
296b9debd3
Support fullscreen for frameless windows. 2024-12-07 21:14:38 +11:00
Lea Anthony
2a6e3da30a
Ensure key callbacks in window run() are called on the main thread 2024-12-07 20:54:22 +11:00
Lea Anthony
5445aebe94
Ensure windowDidBecomeKey callback is running on main thread 2024-12-07 20:45:08 +11:00
Lea Anthony
7cbde83f38
[windows] Fix radio group menu items 2024-12-06 22:00:43 +11:00
Lea Anthony
459b5e1036
Added EnabledFeatures and DisabledFeatures options 2024-12-06 17:17:54 +11:00
Michael
0466bc6936 [v3 alpha] Fix deadlock of linux dialog for multiple selections 2024-12-03 05:54:17 -08:00
Lea Anthony
f2040797d7
[windows] Use application icon as default systray icon if available. 2024-12-03 21:12:01 +11:00
Lea Anthony
1c34c252cc
Remove resize debounce setting for windows.
Optimise resizing performance on windows automatically.
2024-12-01 09:52:06 +11:00
Atterpac
0ebb21f0fb
[V3] Rework service.OnStartup to close application on error (#3920)
* rework service.OnStartup to close applicatoin on error

CHANGELOG.md

fix index out of bounds potential

* os.Exit -> runtime.Goexit

* Revert to os.Exit

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2024-11-30 13:36:29 +11:00
Lea Anthony
43659cc5b3
Improved warning support. 2024-11-30 12:02:27 +11:00
Atterpac
d27e75c57f
[V3-Linux] Systray OnClick on initial icon click (#3907)
Support linux systrays first click to open

- Convert event handling to switch statement for better readability
- Fix menu event handlers to properly trigger open/close callbacks
- Update click behavior to use doubleClickHandler for Activate

CHANGELOG.md
2024-11-24 07:46:14 +11:00
Lea Anthony
d6866f6317
V3 alpha - calling window id and name (#3888)
* Add the calling window name and ID to the context if available. Update the documentation.

* Update changelog.md
2024-11-20 05:42:16 +11:00