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
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
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
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
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
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
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
34b303a86f
v2.0.0-beta.30
2022-02-05 10:06:22 +11:00
Lea Anthony
0971857e7e
Fix position runtime ( #1123 )
...
* [linux] Move SetTitle and startDrag to main thread
* [linux] Move SetPosition, Center, Fullscreen and UnFullscreen to main thread
* Fix runtime Window Get/Set Position signatures
* Fix vanilla template keyboard handling
2022-02-03 21:42:14 +11:00
Lea Anthony
e08cdc22d1
v2.0.0-beta.29
2022-01-17 20:51:58 +11:00
Lea Anthony
72a0936f49
v2.0.0-beta.28
2022-01-12 20:38:17 +11:00
Lea\Anthony
3c6ed12637
New build flag: -debug
2021-12-29 06:54:52 +11:00
Lea\Anthony
84b67a8f53
Add -u flag to sync project go.mod with CLI version
2021-12-28 06:40:44 +11:00
Lea\Anthony
9cb480f0f0
v2.0.0-beta.27
2021-12-27 19:40:56 +11:00
Lea\Anthony
39f91a030f
v2.0.0-beta.26
2021-12-27 18:12:48 +11:00
Lea\Anthony
fcb5499d3a
v2.0.0-beta.25
2021-12-27 05:21:17 +11:00
Lea\Anthony
a03d1e5ac5
v2.0.0-beta.24
2021-12-26 20:13:42 +11:00
Lea\Anthony
d5d4d88481
[v2] Fix webview2 runtime detection. Fixes #1038
2021-12-26 19:24:59 +11:00
Lea\Anthony
e5732bcee1
[v2] Update to webview2runtime v1.3.0
2021-12-25 08:51:43 +11:00
Lea\Anthony
56285f8637
[v2] Update docs
2021-12-21 08:53:48 +11:00
Lea\Anthony
ddeac08991
v2.0.0-beta.23
2021-12-15 19:36:45 +11:00
Dario Emerson
44035637f7
Add flag to skip mod tidy
2021-12-12 15:01:16 +01:00
Lea\Anthony
7229446ce7
v2.0.0-beta.22
2021-12-08 19:17:45 +11:00
stffabi
a98d55db58
[v2] Update wails.json with updated reloaddirs from wails dev
2021-12-07 03:34:51 +01:00
stffabi
f034163da5
[v2] Update wails.json with updated assetdir from wails dev
...
Makes the code consistent with the docs
2021-12-07 03:34:51 +01:00
stffabi
778cbe04d9
[v2] Add reloaddirs flag to add additional reload directories
...
This is interesting if someone uses an asset FS which is not an embed.FS,
but still has some special handling to include loading data from disk in
dev mode. E.g. one might conditionally use an embed.FS or os.DirFS
depending on the build mode.
2021-12-06 13:47:16 +01:00
stffabi
131a8f421d
[v2] Infer assetDir from embed.FS
...
AssetDir is now inferred from the assets, if the assets is an
embed.FS, by taking the relativ path to the index.html joined with
the project root.
The assetDir flag still exists and can be used if the inferring doesn't
work, because the provided embed.FS wasn't defined in the main
package.
2021-12-06 13:47:16 +01:00
stffabi
d43b7b1882
[windows] Add arm64 support
2021-11-30 10:07:27 +01:00
Lea Anthony
b9283009df
Merge pull request #974 from letheanVPN/npm-json-update
...
Adding name and author, + json handling improvement
2021-11-29 23:48:47 -08:00
Eng Zer Jun
ef8d7d2fd7
refactor: move from io/ioutil to io and os packages
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-25 12:15:43 +08: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
Snider
dcef8679d2
Adding name and author, also found out while trying to find options for value escaping the string conversion isnt needed :)
...
Signed-off-by: Snider <snider@lt.hn>
2021-11-24 18:50:26 +00:00
Snider
38fd09bd9a
Adding workspace to npm which better integrates wails and frontend npm.
...
Running `npm install` will now run on the top level of a generated project and additionally the "frontend" workspace (we can add plugins for wails like this, auto update, package, sign, etc, etc)
Other commands that use workspaces (including pre/post hooks mostly) and might be helpful to Wails are `docs`, `install`, `rebuild`, `publish`, `pkg`, `pack`, `ci`
For example, during wails build, you could ask for data from the frontend/package.json to get version, title, etc with.
`npm pkg get name version --workspace=frontend`
Signed-off-by: Snider <snider@lt.hn>
2021-11-24 10:34:29 +00:00
Lea Anthony
cd8bad58cd
[v] v2.0.0-beta.21
2021-11-24 06:42:34 +11:00
Lea Anthony
f5f89c31eb
Merge pull request #955 from letheanVPN/generated-project-helper
...
Helper NPM scripts for developers working on a Wails GUI project
2021-11-23 03:50:29 -08:00
Snider
46cb34f2ec
Adds a package.json with basic start / setup npm scripts to assist non golang developers working on an end project.
2021-11-23 11:22:25 +00:00
Lea Anthony
d569e37b81
[mac] Fix open panel in dev
2021-11-23 21:04:01 +11:00
Lea Anthony
ab1469638f
[linux] get compiling working
2021-11-13 17:06:48 -08:00
Lea Anthony
36570645ff
[v2] v2.0.0-beta.20
2021-11-09 20:37:44 +11:00
Lea Anthony
cbdcd9f63e
[v2] Add default wailsjsdir to templates
2021-11-09 20:31:31 +11:00
Lea Anthony
663925f9e8
[v2] v2.0.0-beta.19
2021-11-08 21:03:42 +11:00
Lea Anthony
bcad236fb6
[v2] Revert svelte template changes
2021-11-08 20:53:13 +11:00
Lea Anthony
0af8d506c1
[v2] v2.0.0-beta.18
2021-11-08 20:28:04 +11:00
Lea Anthony
0b65a0f508
[v2] Fix svelte template
2021-11-08 20:27:28 +11:00
Lea Anthony
b03a758747
[v2] v2.0.0-beta.17
2021-11-08 20:13:29 +11:00
Lea Anthony
44597f2fbc
[v2] Fix svelte template
2021-11-08 20:12:29 +11:00
Lea Anthony
0844113f3a
[v2] Fix vanilla template
2021-11-08 20:08:41 +11:00
Lea Anthony
79e99b68d6
[v2] Fix css in templates
2021-11-08 19:23:28 +11:00
Lea Anthony
c64b7bb79c
[v2] v2.0.0-beta.16
2021-11-08 19:15:07 +11:00
Lea Anthony
0eb7a8a771
[v2] Update svelte template
2021-11-08 07:00:01 +11:00
Lea Anthony
cc5fd30256
[v2] Update vanilla template
2021-11-08 06:31:13 +11:00
Lea Anthony
0949eab72e
[linux] add flag
2021-11-03 19:22:59 +11:00
Lea Anthony
83a575e43f
[v2] warn if wails version out of sync during build
2021-11-02 22:33:34 +11:00
Lea Anthony
333949ee53
[mac] better output text on build
2021-11-02 22:20:44 +11:00
Lea Anthony
48efdea11a
[website] updates
2021-11-02 20:54:13 +11:00
Lukas Crepaz
b5f68e24d6
added appargs for application arguments in dev mode
2021-11-01 08:57:10 +01:00
Lukas Crepaz
3948c8ca61
use environment variables to supply the development binary with flags to support CLI arguments in the app
2021-10-31 09:12:22 +01:00
Lea Anthony
569569f1fc
[mac] support amd/arm/universal
2021-10-30 10:19:49 +11:00
Lea Anthony
98a95e99a5
[mac] Fixes #879
2021-10-26 19:28:15 +11:00
Lea Anthony
d19c982eed
v2.0.0-beta.15
2021-10-26 19:21:41 +11:00
Lea Anthony
a963836e75
[v2] fix: check process exists before killing
2021-10-26 19:20:39 +11:00
Lea Anthony
126cc78d1a
[v2] add overscroll-behavior
2021-10-24 09:03:05 +11:00
Lea Anthony
5703d465fc
[v2] v2.0.0-beta.14
2021-10-23 08:52:02 +11:00
Lea Anthony
35ebbdfa12
[v2] Fix typo in templates
2021-10-22 08:42:35 +11:00
Lea Anthony
15cd325034
[mac] experimental
2021-10-14 20:35:45 +11:00
Lea Anthony
a1323ce5e9
[mac] experimental
2021-10-13 22:01:35 +11:00
Lea Anthony
231848cb9e
[mac] Don't create .app in dev
2021-10-13 21:16:06 +11:00
Lea Anthony
d47b3734af
[v2] v2.0.0-beta.13
2021-10-12 20:47:03 +11:00
Lea Anthony
81a9619fd7
[v2] v2.0.0-beta.12
2021-10-12 06:53:35 +11:00
Lea Anthony
8b5bcdfeff
[v2] v2.0.0-beta.11
2021-10-11 19:24:04 +11:00
Lea Anthony
f6655d019f
[v2] Better errors
2021-10-11 19:23:31 +11:00
Marcus Crane
7945853294
Correct help text for enabling Debug log level
...
All in forms of documentation, the correct name for the second most verbose log level is "Debug" but under `wails dev --help`, it's called Dev
Trying to use it throws an error as well so correcting the name to be Debug
2021-10-11 13:31:28 +13:00
Lea Anthony
b0df3f5c39
[v2] v2.0.0-beta.10
2021-10-10 15:46:04 +11:00
Lea Anthony
dd7c6a3d58
[v2] v2.0.0-beta.9
2021-10-10 11:20:20 +11:00
Lea Anthony
2729081f2c
[v2] v2.0.0-beta.8
2021-10-09 07:57:23 +11:00
Lea Anthony
cad1317fc8
[v2] Tags passthrough for wails generate module
2021-10-09 07:56:19 +11:00
Lea Anthony
1368c20029
[website] v2.0.0-beta.7
2021-10-09 00:06:39 +11:00
Lea Anthony
0acfdd1516
[website] v2.0.0-beta.6
2021-10-09 00:03:35 +11:00
Lea Anthony
078145c030
[v2] v2.0.0-beta.5
2021-10-08 19:54:48 +11:00
Lea Anthony
3765c8fb57
[v2] Auto update wails version in projects in dev mode
2021-10-08 19:53:46 +11:00
Lea Anthony
6943b657c9
[v2] Fix error messages in dev mode
2021-10-07 18:56:53 +11:00
Lea Anthony
d28a7e8987
[v2] Run go mod tidy
first to ensure deps are up to date
2021-10-06 20:36:15 +11:00
Lea Anthony
75f703465a
[v2] Generate module command. Updated wails dev
2021-10-05 22:27:12 +11:00
Cody Bentley
bdda454f69
Refactored wails dev
command:
...
- added `devFlags` data structure for managing flags
- created `defaultDevFlags()` for generating default `devFlags` struct
- created `loadAndMergeProjectConfig()` to consolidate wails.json interaction
- re-arranged some variable creation and logic to put related pieces together
- consolidated `frontend:dev` handling to `runFrontendDevCommand()`
- added `generateBuildOptions()` for readability
- removed unused `passthruArgs` slice
- consolidated `restartApp()` call signature, removed unused `firstRun` argument
- fixed browser open option still using hard-coded default value, switched to recently added const `defaultDevServerURL`
- removed unnecessary `projectDir` variable (it's identical to `cwd` variable)
- consolidated watcher init to `initialiseWatcher()` which returns a deferable closer
- moved the main watch loop to `doWatcherLoop()`
- moved new deBounce flag handling to `loadAndMergeProjectConfig()`
2021-10-03 23:01:42 -06:00
Lea Anthony
a59d01ddb9
[v2] Fix killing dev command on Windows
2021-10-03 22:19:40 +11:00
Lea Anthony
27f8df2b31
[v2] Support "frontend:dev" command
2021-10-03 21:29:59 +11:00
Lea Anthony
7572b64bec
[v2] Add -devserverurl flag
2021-10-03 15:07:10 +11:00
Lea Anthony
f6b83b0933
[v2] New -debounce flag to configure debounce time of dev server
2021-10-03 14:04:05 +11:00
Cody Bentley
4bf3eb303b
Fixed base NEXTSTEPS and README in v2 template generator
2021-10-02 17:29:43 -06:00
Lea Anthony
e2e752dd06
[v2] Fix timing bug
2021-10-02 19:55:49 +10:00
Lea Anthony
b0da974a7d
[v2] v2.0.0-beta.4
2021-10-02 14:16:40 +10:00
Lea Anthony
b4dc8c252a
[v2] update now uses go install
2021-10-02 14:14:07 +10:00
Lea Anthony
6bc26aa669
[v2] Add .gitignore to templates
2021-09-30 08:20:32 +10:00
Lea Anthony
e013ce14a1
[v2] fix tags in dev mode
2021-09-30 07:11:49 +10:00
Lea Anthony
c8359b0743
[v2] sync go.sum
2021-09-30 07:01:12 +10:00
Lea Anthony
12b7cf09e6
[v2] Support Goland IDE
2021-09-30 07:00:46 +10:00
Lea Anthony
49b1acc147
[v2] v2.0.0-beta.3
2021-09-29 20:24:56 +10:00
Lea Anthony
4aa1464b48
[v2] fix module version in templates. Refactor ide flag
2021-09-29 20:15:26 +10:00
Lea Anthony
9a54f289c4
[v2] v2.0.0-beta.2
2021-09-29 07:25:02 +10:00
Lea Anthony
481eaa5ade
[v2] beta.1
2021-09-27 21:13:54 +10:00
Lea Anthony
33c4865ca7
[v2] beta.0 test
2021-09-27 20:53:05 +10:00
Lea Anthony
3417455ba6
[v2] Template mod updates
2021-09-27 20:30:31 +10:00
Lea Anthony
020b098328
[v2] Template mod updates
2021-09-27 20:29:44 +10:00
Lea Anthony
3781cbe731
[v2] Template updates
2021-09-27 20:11:44 +10:00
Lea Anthony
b7c28ab1f2
[v2] Misc Fixes
2021-09-27 19:59:00 +10:00
Lea Anthony
828f07ea13
[v2] Misc template updates
2021-09-27 19:09:49 +10:00
Lea Anthony
8565749b0c
[v2] Fixed file change detection
2021-09-26 17:52:45 +10:00
Lea Anthony
33112029b8
[v2] Check for dev binary before deleting
2021-09-25 20:15:03 +10:00
Lea Anthony
37df1e0e0f
[v2] more vscode fixes
2021-09-25 14:52:11 +10:00
Lea Anthony
f7bb8771f1
[v2] Fix svelte template
2021-09-25 14:44:48 +10:00
Lea Anthony
2f2a7a567a
[v2] Fix vscode output + default template
2021-09-25 14:44:23 +10:00
misitebao
23d53253f9
[v2]feat: optimize the template content of the template command
2021-09-23 04:12:16 +08:00
misitebao
54a401106b
[v2]feat: optimize the content of the default template
2021-09-23 04:09:48 +08:00
Lea Anthony
36647b9370
[v2] Fix default templates README
2021-09-21 20:18:52 +10:00
Lea Anthony
bb50941770
[v2] Add version command
2021-09-21 20:16:35 +10:00
Lea Anthony
981ce4f8ad
[v2] Always generate into subdir
2021-09-21 20:11:25 +10:00
Lea Anthony
92a80c7b69
[v2] Small template fix
2021-09-20 21:43:25 +10:00
Lea Anthony
09a73540ea
Merge pull request #808 from misitebao/optimization-template
...
feat(template): optimization template
2021-09-20 21:34:13 +10:00
Lea Anthony
731d73d2e1
[v2] Remove platform for now
2021-09-20 21:24:30 +10:00
Lea Anthony
d21fe2a526
[v2] CLI sponsor footer
2021-09-20 06:26:43 +10:00
Lea Anthony
cac15cf95c
[v2] Print template support link. Update base templates
2021-09-20 06:05:39 +10:00
Lea Anthony
6aee66c35a
[v2] Template fixes - update to Go 1.17
2021-09-19 20:00:20 +10:00
Lea Anthony
ae29a3b1cd
[v2] Misc template updates
2021-09-19 17:14:06 +10:00
misitebao
275412358a
feat(temlate): optimize the default template vanilla
2021-09-16 01:21:52 +08:00
Lea Anthony
be87d73da8
[v2] go fmt + windowIsTranslucent
2021-09-15 20:30:14 +10:00
Lea Anthony
414b0149f2
[v2] Add forcebuild flag. Tags flag to dev. Refactor dev.
2021-09-09 19:44:06 +10:00
Lea Anthony
33e4ec3e80
[v2] "Pack" by default in dev
2021-09-08 23:52:20 +10:00
Lea Anthony
5d2242f7a4
[v2] Delete .git for remote templates
2021-09-08 21:38:46 +10:00
Lea Anthony
6204e63c56
[v2] Svelte template fixes
2021-09-08 21:29:53 +10:00
Lea Anthony
36cd6af6df
[v2] Update base templates
2021-09-07 07:05:34 +10:00
Lea Anthony
505bb51a27
[v2] Tidy up.
2021-09-05 16:21:24 +10:00
Lea Anthony
1ee9cf41e2
[v2] Enable package by default in wails build
2021-09-03 18:55:24 +10:00
Lea Anthony
1cd38d12f9
Add webview2 to wails doctor, refactored IsAppleSilicon
2021-09-03 05:55:51 +10:00
Lea Anthony
0b71d64931
[v2] window.backend -> window.go
2021-09-01 20:52:34 +10:00
Lea Anthony
627aa06786
[windows] Use forward slash paths for assetdir and wailsjsdir
2021-08-31 19:38:29 +10:00
Lea Anthony
a7c5064a33
[windows-x] Generate runtime wrapper in project, initial model binding, better error handling in calls, assetdir fix,
2021-08-27 21:11:03 +10:00
Lea Anthony
f20ce7411d
[windows-x] Add wailsjs directory flag
2021-08-26 23:25:29 +10:00
Lea Anthony
58dc917fb7
[windows-x] Startup/Shutdown -> OnStartup/OnShutdown
2021-08-26 20:38:03 +10:00