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

81 Commits

Author SHA1 Message Date
Ethan Reesor
22cfcbd5a1
Override error formatting (#2717) 2023-07-13 20:40:22 +10:00
Mohamed Gharib
fa851f29c5
[v2] Add -devtools production build flag (#2725)
* [v2] Add devtools production build flag

* Update changelog

* Fix changelog spacing

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-06-19 06:45:01 +10:00
stffabi
496461920f
[v2] DevServer improvements and fixes (#2664)
* [assetserver, darwin] Fix copying request headers by using strdup

* [assetserver, linux] Fake some basic http headers for legacy webkit2 versions to support proxying requests to other servers

This fixes the devserver on v2 for newer vite versions that use the custom
scheme.

* [v2, windows] 304 responses are going to hang the WebView2 so prevent them by removing cache related headers in the request.

* [v2, dev] Now uses the custom schemes `wails://` on macOS and Linux for all Vite versions.

Prevent missing reload after fast multiple savings on Linux and Windows.
2023-05-16 09:35:48 +02:00
stffabi
529ec569f7
[v2, dev] Use custom schemes for in-app dev mode (#2610)
This fixes some long-standing inconsistencies between
dev mode builds and production builds but is a breaking
change. Dev mode uses custom scheme for Vite versions >= 3.0.0
and for older it still behaves in the old way.
2023-04-20 12:37:40 +02:00
Lea Anthony
54ca6c7059
Refactor assetserver into pkg (#2260) 2023-01-08 11:25:21 +01:00
stffabi
3fb9169196
Fix compile error (#2147) 2022-11-29 20:01:42 +11:00
stffabi
993f87af97
[assetserver] Add support for serving the index.html file when requesting a directory (#2110)
* [assets] Improve error message if no `index.html` could be found in the assets

* [assetoptions] Valide options that at least one property has been set

* [assetserver] Move defaultHTML handling for 404 from assethandler to assetserver

* [assetserver] Add support for serving the index.html file when requesting a directory

* [docs] Update changelog
2022-11-29 09:29:08 +01:00
Oleg Gulevskyy
ca8a1fab36
Ability to define prefix / suffix for TS module (#2101)
* add tspostfix and tsprefix flags + organise under struct

* postifx -> suffix

* tsPrefix options on bindings struct

* pass prefix and suffix to the executable

* add support for CLI flags for generating module

* method to set TSpref/suff to bindings

* use passed ts prefix for typescriptify

* add brief Readme udpate to include new flags

* create reusable common flags

* use common flags instead of hardcoded text

* support tsprefix & suffix for dev

* add tsPrefix & tsSuffix for build cmd

* take pref & suff in account when gen d.ts

* export colorsful log functions into utils for reuse

* detect and warn the user about usage of reserved keyword

* fmt

* add TrimSpace on fn input

* refactor utils -> logutils

* add bindings -> ts_generation options to wailsjson parse

* use wailsjson for ts generation

* update warning message + extract to func

* remove suff/pref info from readme

* update json schema

* add tests for prefix and suffix case

* rename suffix method

* Update v2/internal/typescriptify/typescriptify.go

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* Update website/static/schemas/config.v2.json

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* Update website/static/schemas/config.v2.json

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>

* update changelog

* Minor tweaks

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-11-24 21:33:58 +11:00
Lea Anthony
18b2d315dd
Modularize wails (#2009)
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-11-03 21:21:40 +11:00
stffabi
638caf72f0
[assetserver] Introduce middleware and extract options (#2016)
* [assetserver] Add support for HTTP Middlewares

* [dev] Disable frontend DevServer if no Assets has been defined and inform user

* [dev] Consistent WebSocket behaviour in dev and prod mode for assets handler and middleware

In prod mode we can't support WebSockets so make sure the
assets handler and middleware never see WebSockets in dev mode.

* [templates] Migrate to new AssetServer option

* [docs] Add assetserver.Options to the reference
2022-10-29 23:15:15 +02:00
stffabi
7f733d787f
[dev] Do not try to infer assetdir from fs.FS when a frontend dev server is in use (#1972) 2022-10-14 07:52:52 +11:00
Lea Anthony
eee6797907
Add WindowExecJS method (#1927)
* Add WindowExecJS

* [devserver] Embed the base frontend into the DevServer struct

* Update docs

Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-10-05 08:44:23 +11:00
Lea Anthony
b2069c871d
Refactor app (#1909)
* Application refactor

* [windows] refactor out main loop. Create new application struct. Refactor assethandler/assetserver signatures.

* Refactor darwin app

* Refactor app for linux

* Update v2/internal/frontend/assetserver/assethandler.go

Co-authored-by: stffabi <stffabi@users.noreply.github.com>

* Update v2/internal/frontend/assetserver/assethandler.go

Co-authored-by: stffabi <stffabi@users.noreply.github.com>

* Update v2/internal/frontend/assetserver/assetserver.go

Co-authored-by: stffabi <stffabi@users.noreply.github.com>

* Update v2/internal/frontend/assetserver/assetserver.go

Co-authored-by: stffabi <stffabi@users.noreply.github.com>

Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-09-29 18:43:35 +10:00
stffabi
f5549db85d
[dev] Do not generate bindings in the dev app itself (#1899)
* [dev] Pass skip bindings to the building process

* [dev] Do not generate bindings in the dev app itself

This is done outside during `wails dev` bootstrapping and
fast regeneration seems to sometime cause locking problems
on Windows.
2022-09-25 21:21:41 +10:00
Lea Anthony
052b9222c1
Add garble support (#1793)
Co-authored-by: AlbinoDrought <sean@albinodrought.com>
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-09-13 10:05:37 +10:00
Lea Anthony
3474d4e1e1
v2.0.0-beta.44.2 2022-08-20 13:51:26 +10:00
Lea Anthony
2466bb1fac
v2.0.0-beta.44.1 2022-08-20 13:47:50 +10:00
Lea Anthony
2651d5d01a
Fix: Do not generate bindings for OnBeforeClose 2022-08-20 08:59:43 +10:00
Lea Anthony
5e2fd56bc9
Fix: Set file permissions for generated files (#1763) 2022-08-18 20:07:18 +10:00
Lea Anthony
57c9158551
Chore/tidy up (#1713)
* Tidy up dev mode output

* Rename `appng` package to `app`

* Remove `crypto`,`parse`,`messagedispatcher`,`servicebus`,`runtime`,`subsystem`,`ffenestri` packages and `.vscode` dir

* Remove misc `fs` functions

* Remove `str` package

* Fix redundant alias
2022-08-09 07:42:11 +10:00
Lea Anthony
1da68cfc7c Remove unused directories + tidy up 2022-03-29 21:47:26 +11:00
Eng Zer Jun
ae341be638
chore: run go fmt ./... and go mod tidy
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-25 12:14:27 +08:00
Lea Anthony
badacdd45b
[mac] Get wails CLI to compile 2021-09-19 17:25:23 +10:00
Lea Anthony
58dc917fb7 [windows-x] Startup/Shutdown -> OnStartup/OnShutdown 2021-08-26 20:38:03 +10:00
Lea Anthony
c3c88f5e27 [windows-x] Huge updates to devmode, runtime, build command. 2021-08-22 23:05:22 +10:00
Lea Anthony
31468aa177 [windows-x] Initial support for dev 2021-08-18 22:13:45 +10:00
Lea Anthony
f02c140709 [v2] [broken - WIP] Major refactor of runtime in progress 2021-07-19 20:21:41 +10:00
Lea Anthony
b80a64b0ee [v2] [broken - WIP] Major refactor of runtime in progress 2021-07-18 20:00:01 +10:00
Lea Anthony
d574d53fca [windows] Add debug log for Webview2 version and minimum required version 2021-07-16 21:13:34 +10:00
Lea Anthony
4c2804eac9 [v2] Create default windows app menu 2021-07-04 13:59:21 +10:00
Lea Anthony
1f3351ffa5
[v2] Get wails dev to compile again 2021-06-30 21:36:30 +10:00
Lea Anthony
d521f80dcd [windows] Improve Dialog API. Major refactor. 2021-06-20 13:48:30 +10:00
Lea Anthony
e90f5361be [windows] Support webview2 runtime installation strategies 2021-06-15 21:25:08 +10:00
Lea Anthony
e9deb248f9 Move assets -> build dir. Bundle assets in CLI binary. 2021-05-13 20:12:19 +10:00
Lea Anthony
b4c669ff86
Support custom protocols 2021-02-28 22:08:23 +11:00
Lea Anthony
5ae621ceaa
Start signal handler a little later 2021-02-22 19:33:18 +11:00
Lea Anthony
1231b59443
better signal handling for shutdown 2021-02-22 17:39:33 +11:00
Lea Anthony
9ec5605e63
fix: loglevel duplication 2021-02-22 09:00:09 +11:00
Lea Anthony
74f3ce990f
Support loglevel flag in dev mode 2021-02-21 19:26:20 +11:00
Lea Anthony
eac8880f6d
Initial support for tray menus 2021-02-13 20:26:21 +11:00
Lea Anthony
21a0245985
Generate bindings in package. Support dialogs in dev mode. 2021-02-09 21:10:06 +11:00
Lea Anthony
7c22cbcf38
Bridge working for calls. Notify TBD 2021-02-08 06:36:13 +11:00
Lea Anthony
e4b03f510b
First step to bridge support 2021-02-06 21:50:21 +11:00
Lea Anthony
e1b7332c47
Graceful shutdown 2021-02-03 07:14:44 +11:00
Lea Anthony
c9c3c9ab90
Don't bind startup/shutdown methods 2021-01-27 21:12:17 +11:00
Lea Anthony
fe87463b78
Move Bind() into app config 2021-01-26 07:04:12 +11:00
Lea Anthony
83d6dac7cf
Add appType to builds. Update server code to compile 2021-01-26 06:40:41 +11:00
Lea Anthony
e9d16e77a3
Add support for loglevel flag in debug builds 2021-01-25 21:42:31 +11:00
Lea Anthony
29ffeaa9f3
Misc tidy up 2021-01-14 13:55:20 +11:00
Lea Anthony
742e4ba2cb
Remove WailsInit and WailsShutdown methodsr 2021-01-14 11:07:06 +11:00