Commit graph

1,127 commits

Author SHA1 Message Date
github-actions[bot]
033650d792
chore: update sponsors.svg (#5015)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-02-26 21:01:45 +11:00
github-actions[bot]
4c49f27edf
chore: update sponsors.svg (#5000)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-02-22 15:27:44 +11:00
github-actions[bot]
c84578721c
chore: update sponsors.svg (#4999)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-02-18 21:18:16 +11:00
github-actions[bot]
354fee648e
chore: update sponsors.svg (#4997)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-02-17 22:39:19 +11:00
github-actions[bot]
da3ce17161
chore: update sponsors.svg (#4993)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-02-14 18:43:34 +11:00
github-actions[bot]
ae40ca4ac1
chore: update sponsors.svg (#4980)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-02-11 21:50:29 +11:00
github-actions[bot]
093aa2d663
chore: update sponsors.svg (#4978)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-02-09 20:56:49 +11:00
Lea Anthony
718fd92f85
fix(v2): prevent wails init in non-empty directory with -d flag (#4955)
* fix(v2): prevent wails init in non-empty directory with -d flag

When using -d to specify a target directory, wails init now checks if
the directory is non-empty and errors if so. This prevents accidental
data loss (e.g., overwriting .git directories).

Fixes #4940

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(v2): add tests for init non-empty directory check

Add tests to verify:
- Install fails when target directory is non-empty
- Install succeeds when target directory is empty

Also update changelog with the fix.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Apply suggestions from code review

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-02-04 21:23:07 +11:00
Lea Anthony
01b661f6a5
feat(v2): add runtime.ResetSignalHandlers() for Linux panic recovery (#4921)
* feat(v2): add runtime.ResetSignalHandlers() for Linux panic recovery

Add a new runtime function that allows users to reset signal handlers
before code that might panic from nil pointer dereferences.

On Linux, WebKit installs signal handlers without the SA_ONSTACK flag,
which prevents Go from properly recovering from panics caused by
SIGSEGV and other signals. This function adds SA_ONSTACK to the
relevant signal handlers (SIGSEGV, SIGBUS, SIGFPE, SIGABRT).

Usage:
```go
go func() {
    defer func() {
        if err := recover(); err != nil {
            log.Printf("Recovered: %v", err)
        }
    }()
    runtime.ResetSignalHandlers()
    // Code that might panic...
}()
```

The function is a no-op on macOS and Windows.

Fixes #3965

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(v2): add panic-recovery-test example

Add an example that demonstrates the Linux signal handler issue (#3965)
and verifies the fix using runtime.ResetSignalHandlers().

The example includes:
- A Greet function that triggers a nil pointer dereference after a delay
- Auto-call from frontend after 5 seconds
- README with reproduction steps

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 18:55:57 +11:00
github-actions[bot]
896344eb66
chore: update sponsors.svg (#4942)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-02-02 18:40:10 +11:00
github-actions[bot]
8fd0340404
chore: update sponsors.svg (#4911)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-01-31 22:32:06 +11:00
github-actions[bot]
a27995940a
chore: update sponsors.svg (#4907)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-01-26 22:16:26 +11:00
NarciLee
4e8b705cda
fix: add missing EventsOffAll export to runtime templates (#4883)
* fix: add missing EventsOffAll export to runtime templates

The EventsOffAll function was implemented in the internal runtime
(desktop/events.js) and exported in the wrapper runtime files, but was
missing from the public runtime templates that are generated in user
projects. This caused a type mismatch where EventsOffAll was declared
in the TypeScript definition but the implementation was missing.

This commit adds the EventsOffAll export and type declaration to all
frontend framework templates:
- Common templates (generate/assets/common)
- React / React-TS
- Vue / Vue-TS
- Svelte / Svelte-TS
- Preact / Preact-TS
- Lit / Lit-TS
- Vanilla / Vanilla-TS

Fixes #4703

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* docs: add EventsOffAll to runtime events documentation

Added EventsOffAll function documentation to both English and Chinese
versions of the runtime events reference.

The function was already implemented in Go (pkg/runtime/events.go) and
JavaScript (internal/frontend/runtime/desktop/events.js), but was missing
from the public documentation.

Related to #4703

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* chore: add EventsOffAll fix to changelog

Added entry for the EventsOffAll fix to the Unreleased section
of the changelog.

Related to #4703

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* docs: translate EventsOffAll description to Chinese

Improved consistency in Chinese documentation by translating the
EventsOffAll description from English to Chinese, matching the
style of other event method descriptions.

Related to #4703

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

---------

Co-authored-by: cc <Zhuanz@MacBook-Pro.local>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2026-01-25 13:10:24 +11:00
Lea Anthony
7ee2b2d856
fix(v2/linux): fix crash on panic in JS-bound Go methods (#4855)
* fix(v2/linux): fix crash on panic in JS-bound Go methods

WebKit2GTK installs signal handlers after gtk_main() starts, overriding
our SA_ONSTACK fix. This causes Go panics (e.g., nil pointer dereference)
in JS-bound methods to crash with 'non-Go code set up signal handler
without SA_ONSTACK flag'.

Fix by deferring signal handler installation via g_idle_add() to run
after GTK main loop starts, ensuring we fix handlers AFTER WebKit
has installed its own.

Fixes #3965

* docs: add changelog entry for Linux signal handler fix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:38:58 +11:00
Salman
696c55c6ee
Update code block range in howdoesitwork.mdx (#4884)
* Update code block range in howdoesitwork.mdx

* docs: add changelog entry for PR #4884

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:13:28 +11:00
Xelus22
0357730294
Fix up templates to correct go version (1.23.0) (#4618)
* Fix up templates to correct 1.23.0

* add changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2026-01-25 11:16:42 +11:00
xiejiahe
158fd41a8b
fix(v2): Replace ioutl.Discard with io.Discard (#4877)
* fix(v2): Replace ioutl.Discard with io.Discard

* docs: Update website changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2026-01-20 11:20:02 +11:00
github-actions[bot]
fc2b7309c1
chore: update sponsors.svg (#4881)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-01-18 13:29:39 +11:00
github-actions[bot]
18b3d0587f
chore: update sponsors.svg (#4878)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-01-16 06:58:38 +11:00
Lea Anthony
423f7e4498
fix(v2): prevent WebView crash on macOS 26 during rapid UI updates (#4806)
Disable suppressesIncrementalRendering on macOS 26+ (Tahoe) to prevent
WebView crashes when the frontend performs frequent UI updates.

Fixes #4592

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-13 22:05:05 +11:00
github-actions[bot]
4dbde817f4
chore: update sponsors.svg (#4874)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-01-13 21:48:58 +11:00
github-actions[bot]
95689bdeb7
chore: update sponsors.svg (#4867)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-01-10 20:01:44 +11:00
github-actions[bot]
7d4fe64352
chore: update sponsors.svg (#4860)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-01-07 16:39:33 +11:00
github-actions[bot]
6630fa5647
chore: update sponsors.svg (#4846)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2026-01-02 21:19:34 +11:00
github-actions[bot]
7957d23c25
chore: update sponsors.svg (#4833)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-28 20:53:38 +11:00
github-actions[bot]
b25fe7496f
chore: update sponsors.svg (#4824)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-22 19:23:37 +11:00
github-actions[bot]
00b0ce936d
chore: update sponsors.svg (#4822)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-21 13:15:25 +11:00
github-actions[bot]
bc62140ac0
chore: update sponsors.svg (#4809)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-17 21:17:03 +11:00
github-actions[bot]
ebe8de8d2b
chore: update sponsors.svg (#4804)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-16 21:53:35 +11:00
github-actions[bot]
6a2619880c
chore: update sponsors.svg (#4795)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-15 22:20:33 +11:00
github-actions[bot]
db11f350cd
chore: update sponsors.svg (#4787)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-14 11:56:20 +11:00
Tilak Sasmal
216c9961a5
Add installation command for Wails CLI (#4692)
* Add installation command for Wails CLI

Added code block for Wails CLI installation command. This will allow coying the command with one click.

* Improve wails installation documentation

Updated wails installation documentation for easier command copying.

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-12-13 10:00:19 +11:00
github-actions[bot]
764f9bb175
chore: update sponsors.svg (#4763)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-12 06:33:46 +11:00
Viktor Poletansky
23bd70e057
Fix generated enums ordering (#4664)
* enumsort: enumsort

* enumsort: update changelog

* Add tests for enum ordering fix

Tests added:
- EnumOrderingTest: Verifies multiple enums are output in alphabetical order
- EnumElementOrderingTest: Verifies enum elements are sorted by TSName
- TSNameEnumElementOrderingTest: Verifies TSName() interface enums are also sorted

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 18:20:22 +11:00
Andrey Pshenkin
a0cb86ebff
V2 - Add universal link support for macOS (#4693)
* add universal link support

* add changelog

* add docs about universal links

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-12-10 16:14:23 +11:00
github-actions[bot]
7aaa203c5f
chore: update sponsors.svg (#4754)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-07 17:05:54 +11:00
Paul Brickwell
44a9d617e8
Add templates for Nuxt (#4750)
Add Wails templates for Nuxt
2025-12-04 20:40:19 +11:00
github-actions[bot]
8e77d9358e
chore: update sponsors.svg (#4744)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-12-03 21:59:51 +11:00
Anton Gilgur
7b8355a385
[v2] docs(menu): add imports and complete the example (post merge conflict) (#4742)
* [v2] docs(menu): add imports and complete the example (post merge conflict)

This partially redoes commit cb3305a2fc, as a merge conflict resolution seemed to have accidentally removed a large portion of the changes

- the example was missing imports, which [confused a user](https://stackoverflow.com/q/79827619/3431180), particularly due to the `rt` import alias
  - plus there are a good number of imports too, which this makes explicit
  - also give this file the title `menu.go` for clarity / explicitness, particularly to differentiate from the `NewApp` / `app.go` scaffold
- also handle the error at the end similar to [existing examples](4c464b3092/website/docs/guides/application-development.mdx (L54))

* add changelog entry per PR template
2025-12-01 19:16:00 +11:00
Anton Gilgur
cb3305a2fc
[v2] docs(menu): add imports and complete the example (#4727)
* [v2] docs(menu): add imports and complete the example

- the example was missing imports, which [confused a user](https://stackoverflow.com/q/79827619/3431180), particularly due to the `rt` import alias
  - plus there are a good number of imports too, which this makes explicit
- it also didn't mention that it built on top of the `NewApp` / `app.go` scaffold, so mention and link to that as well
  - it wasn't clear where `NewApp` came from without that
  - give this file the title `menu.go` for clarity / explicitness
- also handle the error at the end similar to [existing examples](4c464b3092/website/docs/guides/application-development.mdx (L54))

* add changelog entry per PR template

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-12-01 06:22:52 +11:00
Anton Gilgur
c73b2dd753
[v2] docs(menu): fix some syntax issues (#4726)
* [v2] docs(menu): fix some syntax issues

- one line wasn't properly indented
- one line was missing a closing brace and wouldn't compile as such

noticed this while [answering a question on SO](https://stackoverflow.com/a/79827672/3431180) which linked to this page

* add changelog entry per PR template

* consistent 4 space indentation

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-11-30 17:42:02 +11:00
Anton Gilgur
e37a7b9d4b
[v2] docs(app-dev): fix inconsistent indentation (#4730)
* [v2] docs(app-dev): fix inconsistent indentation

- several places had mixed indentation (tabs _and_ spaces)
- some lines had incorrect indentation, partially due to the above

* add changelog entry per PR template

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-11-30 17:40:51 +11:00
Anton Gilgur
ef7d3301c9
[v2] docs(app-dev): add imports to app.go examples (#4731)
* [v2] docs(app-dev): add imports to `app.go` examples

- add `context` and `fmt` imports to the `app.go` examples
- link to the docs for `context` when it is referenced for explicitness/beginner-friendliness

* add changelog entry per PR template

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-11-30 17:21:27 +11:00
Anton Gilgur
d16fd500df
docs(community): use absolute link to CoC instead of relative (#4732)
* docs(community): use absolute link to CoC instead of relative

- the relative link made it so that if you happen to land on https://wails.io/community-guide/ (with a trailing slash), it would take you to https://wails.io/community-guide/coc, which 404s
  - if you were at https://wails.io/community-guide (no trailing slash), it was fine.
  - use an absolute link so that it works the same regardless of the trailing slash or not

* add changelog entry per PR template

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-11-30 17:19:38 +11:00
github-actions[bot]
27afad59f6
chore: update sponsors.svg (#4740)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-11-30 12:39:10 +11:00
秋澪Akimio
4f71b22665
docs: fix typo of the window hiding method to "WindowHide" in the zh-Hans documentation (#4655) 2025-11-29 13:49:43 +11:00
github-actions[bot]
467f70ada7
chore: update sponsors.svg (#4735)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-11-28 23:24:03 +11:00
Anton Gilgur
9578b627fd
[v2] docs(how): fix inconsistent indentation (#4733)
* [v2] docs(how): fix inconsistent indentation

- several places had mixed indentation (tabs _and_ spaces)
- some lines had incorrect indentation, partially due to the above

* add changelog entry per PR template
2025-11-25 10:16:01 +00:00
Henrique Nunes
4c464b3092
add GameStacker to community showcase (#4724) 2025-11-22 14:44:00 +11:00
github-actions[bot]
ba2c9989e6
chore: update sponsors.svg (#4720)
Co-authored-by: leaanthony <1943904+leaanthony@users.noreply.github.com>
2025-11-21 07:53:23 +11:00