5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-09 03:40:44 +08:00
Commit Graph

1184 Commits

Author SHA1 Message Date
stffabi
c5c0617c89
[v2, nsis] Seems like / as path separator works only for some directives in a cross platform way (#1227)
Especially the File directive seems not to work with a `/` on
Windows. Whereas `\` works for all directives and on all platforms.
So the `\` in NSIS can be used also on Linux and MacOS.
2022-03-08 20:35:16 +11:00
Lea Anthony
122806161b Output errors in dev mode #1031 2022-03-07 21:12:26 +11:00
Lea Anthony
659cc3ed61 Tidy project init banner 2022-03-07 19:35:31 +11:00
Lea Anthony
95d34c510e
Run watcher after initial build (#1216) 2022-03-06 22:20:50 +11:00
Misitebao
d36e130315
refactor(cli): optimize default templates (#1214)
* refactor(cli): optimize the template that generates the base template

* refactor: optimize the default vanilla template

* feat(cli): add script to default vanilla template

* refactor(cli): refactor default svelte template and add script

* fix: remove manually added assetdir fields

Manually specified values are removed as the application will automatically infer from embed.FS.

* fix: remove drag attribute within page

* Update v2/cmd/wails/internal/commands/initialise/templates/templates/svelte/frontend/README.md

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-03-06 22:00:08 +11:00
Lea Anthony
27ab3cf4e7 v2.0.0-beta.33 2022-03-05 13:35:34 +11:00
Lea Anthony
31b609dff0 Print friendlier file path when file does not exist 2022-03-05 13:33:24 +11:00
stffabi
fbf75b1d14
[v2, windows] Move assets from file://wails to https://wails.localhost (#1211)
This should allow web workers to be used
2022-03-05 13:32:28 +11:00
Ian M. Jones
e9aa0d5c5a
Fix fullscreen on linux arm64 (#1209)
* Fix fatal error on otherwise clean exit.

* Fix race condition while setting title during window creation.

* Fix unexpected signal error when clicking webview should initiate a drag window operation.

* Ensure ExecuteOnMainThread callbacks are removed from the event source list on completion.

* Ensure all ExecuteOnMainThread callbacks use the expected return value on completion.

* Fix potential memory leak when exiting early from startDrag.

* Fix using runtime.WindowFullscreen on Linux ARM64.
2022-03-04 23:07:40 +11:00
Ian M. Jones
c378d935f3
Fix linux unexpected signal errors (#1200)
* Fix fatal error on otherwise clean exit.

* Fix race condition while setting title during window creation.

* Fix unexpected signal error when clicking webview should initiate a drag window operation.

* Ensure ExecuteOnMainThread callbacks are removed from the event source list on completion.

* Ensure all ExecuteOnMainThread callbacks use the expected return value on completion.

* Fix potential memory leak when exiting early from startDrag.
2022-03-04 17:50:43 +11:00
Lea Anthony
8eae31d865 Fixes #1206. ERROR level used in Production 2022-03-04 17:46:04 +11:00
Lea Anthony
c7c068ade0 Add Javascriptcore include. #1198 2022-03-02 20:17:30 +11:00
stffabi
b02dbfaddf
[v2] NSIS installer support for Windows (#1184)
* [v2] Add support for post build hooks

Currently only supports build-level hooks

* [v2] Improve build assets handling and use single source for manifest generation

The manifest asset files are now a go template and data will be
resolved before they are included into the build output.

Breaking Change: Windows manifest file must be named
“wails.exe.manifest” and doesn’t depend on the project name
anymore.

* [v2, windows] NSIS installer generation
2022-03-02 19:44:31 +11:00
stffabi
c63b1f1981
[v2] Consolidate processRequest, improve logging and error handling (#1158) 2022-02-28 19:14:03 +11:00
Misitebao
a971751dab
feat(cli): optimized template generation (#1166)
* feat(cli): update base template configuration

* feat: optimize template project script

(https://github.com/wailsapp/wails/issues/1165)
2022-02-27 20:40:55 +11:00
Misitebao
82cb3b99e5
feat(cli): add version support for remote templates (#1181)
(https://github.com/wailsapp/wails/issues/925)
2022-02-26 10:52:56 +11:00
Lea Anthony
dfb3ab0681 Run webview2 bootstrapper as normal user, not administrator 2022-02-26 10:40:18 +11:00
Lea Anthony
613a9e3143 Bugfix: Fix potential nil dereference 2022-02-23 20:57:05 +11:00
stffabi
ff8e701793
[v2] Introduce frontend:dev:watcher command (#1170) 2022-02-23 20:12:59 +11:00
Lea Anthony
8ce9ee8e41 v2.0.0-beta.32 2022-02-23 07:12:51 +11:00
Lea Anthony
9593ea95f7
[linux] Fix discovery of npm, docker and upx (#1174) 2022-02-23 07:11:27 +11:00
Lea Anthony
c872802ced v2.0.0-beta.31 2022-02-22 21:36:14 +11:00
Lea Anthony
a445db1b7b
Feature/linux v2 beta (#1171)
* Update docusaurus version

* Add install instructions

* Add Linus Distro Support Page

* Update Linus Distro Support Page

* v2.0.0-beta.30

* image

* update blog

* Update blog

* Remove exp tag

* Update banner

* Update banner

* [linux] Fix warning
2022-02-22 21:35:03 +11:00
Lea Anthony
fff838d7c6 Clarify frontend:dev option. Closes #1169 2022-02-22 19:16:19 +11:00
Lea Anthony
93491eb2eb
Feature/align api (#1161)
* Fix WindowSetRGBA API

* Change WindowUnFullscreen -> WindowUnfullscreen for consistency
RGBA bugfix
2022-02-19 20:29:55 +11:00
Lea Anthony
f059c35d9e
Feature: WindowToggleMaximise (#1159)
* [windows] Add WindowToggleMaximise

* Add mac support

* Update docs

* [linux] Toggle Maximise
2022-02-18 20:28:16 +11:00
Lea Anthony
6e8d65e3aa
[linux] Add stdint.h include 2022-02-17 21:23:24 +11:00
stffabi
a750d2d507
[v2, windows] Invert the frameless border flag and rename it (#1157)
This is a breaking change for all users of the flag.
2022-02-16 20:28:46 +11:00
stffabi
331e0268a3
[v2, windows] Do not show caption buttons if frameless and translucent+transparency (#1152) 2022-02-16 18:53:17 +11:00
Valentin Trinqué
e6424dc8ab
Update icon.ico file mode (#1154)
* Add os.O_WRONLY to icon.ico to avoid bad file descriptor error

* Wrap errors coming from winres.LoadICO()

If the file exists but is empty, a blunt "Unexpected EOF" is returned, and propagated as is.

This is not super helpful when trying to pin point what's going on.

Wrapping the error helps to locate the problem.
2022-02-16 06:02:45 +11:00
Lea Anthony
f923a431f7 Try to provide help when old xcode tools installed. #1142 2022-02-12 21:12:17 +11:00
Lea Anthony
eb0f22b4ee
Fix appicon bug on Mac. Fixes #1143 2022-02-12 20:48:43 +11:00
Lea Anthony
e068e0f2f5
Better platform support 2022-02-10 21:43:04 +11:00
Lea Anthony
771594519f
[mac] Better support for multi-builds 2022-02-10 21:41:40 +11:00
Lea Anthony
ec44ca58f1 Better output for build 2022-02-10 21:25:43 +11:00
Lea Anthony
cb574148eb Better output for build 2022-02-10 21:24:27 +11:00
Lea Anthony
771efa527f Don't clean directory on subsequent builds 2022-02-10 21:14:02 +11:00
Lea Anthony
28e31c46c6 Fix output filename for windows builds 2022-02-10 21:11:32 +11:00
Lea Anthony
c2fa4b6103 Support multiple targets for windows 2022-02-10 19:55:04 +11:00
Lea Anthony
99ca6d5e77 [Linux] Restore min/max after fullscreen 2022-02-10 19:55:04 +11:00
Lea Anthony
876b845762 [Windows] Restore min/max after fullscreen 2022-02-10 19:55:04 +11:00
stffabi
e4122ce4d2
[v2, windows] Bump winc (#1134)
Fix detection if GetDpiForWindow is available
2022-02-08 19:01:38 +11:00
stffabi
7bc51725c0
[v2, windows] Apply suggested window size during DPI changed event (#1131)
* [v2, windows] Apply suggested window size during DPI changed event

This adjusts the window size if the window is moved from one
monitor to another with a different DPI scaling

* [v2, windows] Do not block processing of messages during frameless drag/resize

* [v2, windows] Bump winc

Improves the HiDPI handling by using newer APIs if available

* [v2, windows] Constrain frameless maximize to MaxWidth/MaxHeight
2022-02-08 07:56:01 +11:00
Lea Anthony
3d02a314b9
[linux] Fix min/max size after fullscreen 2022-02-08 07:04:45 +11:00
Lea Anthony
30a4f47cba
[linux] Fix min/max size 2022-02-08 06:51:52 +11:00
Lea Anthony
668da3a827
[linux] Fix disabling context menu 2022-02-08 06:20:41 +11:00
Lea Anthony
322aad166b
[linux] Fix fullscreen 2022-02-08 05:29:26 +11:00
Lea Anthony
3decd70319
Move more runtime methods to main thread 2022-02-07 20:17:25 +11:00
Lea Anthony
24857ec04b
Only attach logger in debug mode. Fixes #1128 2022-02-07 20:00:26 +11:00
Lea Anthony
a016f39e97
[linux] Move SetPosition, Center, Fullscreen and UnFullscreen to main thread 2022-02-07 08:48:21 +11:00