5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-09 18:19:36 +08:00
Commit Graph

392 Commits

Author SHA1 Message Date
Lea Anthony
01e46f0c24
Fix vue-ts template (#1813) 2022-08-31 23:28:55 +10:00
ZanderCodes
70c484f603
Add Some WindowState (#1349)
* Add Check for WindowState IsMaximised, IsMinimized, IsNormal and IsFullscreen

Solve conflicts

# Conflicts:
#	v2/internal/frontend/desktop/darwin/WailsContext.m
#	v2/internal/frontend/desktop/darwin/frontend.go
#	v2/internal/frontend/desktop/linux/window.go
#	v2/internal/frontend/desktop/windows/window.go

* Add Check for WindowState IsMaximised, IsMinimized, IsNormal and IsFullscreen

Solve conflict
# Conflicts:
#	v2/pkg/runtime/window.go

* Forgot some function to use it

# Conflicts:
#	v2/internal/frontend/desktop/darwin/WailsContext.h
#	v2/internal/frontend/desktop/windows/win32/consts.go
#	v2/internal/frontend/desktop/windows/win32/window.go

* Modify the instructions

# Conflicts:
#	v2/internal/frontend/devserver/devserver.go

* Add Functions to DevServer

# Conflicts:
#	v2/internal/frontend/dispatcher/systemcalls.go
#	v2/internal/frontend/runtime/desktop/window.js
#	v2/internal/frontend/runtime/package-lock.json
#	v2/internal/frontend/runtime/runtime_prod_desktop.js
#	v2/internal/frontend/runtime/wrapper/runtime.d.ts
#	v2/internal/frontend/runtime/wrapper/runtime.js

* Add Callback and JavaScript Functions

# Conflicts:
#	v2/cmd/wails/internal/commands/initialise/templates/generate/assets/common/frontend/wailsjs/runtime/runtime.js
#	v2/internal/frontend/runtime/package-lock.json
#	v2/internal/frontend/runtime/runtime_dev_desktop.js

* Remove Merge lines

* Fix IsMaximised

* Add WindowState Docs

* Update docs

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-08-30 06:52:01 +10:00
Debdut Karmakar
6c3418d199
preact-ts template build fix (#1781)
* preact imports

* Copy fix to template template(!). Remove unused Fragment.

* Fix template template!

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-08-27 16:42:33 +10:00
Lea Anthony
3c69289013
Update generate.go 2022-08-20 15:01:33 +10:00
Lea Anthony
2de1421d83
Update preact template 2022-08-20 15:00:05 +10:00
Lea Anthony
317e0a6fef
Preact templates for vite 3 (#1770) 2022-08-20 14:55:07 +10:00
Lea Anthony
a9fcdd705e
Support vite3 for Vue (#1746) 2022-08-20 14:54:48 +10:00
Lea Anthony
4d51d9b742
Upgrade Lit to use Vite v3 (#1745)
* Upgrade Lit to use Vite v3

* Remove unused files
2022-08-20 14:54:27 +10:00
Lea Anthony
d9a535c393
Upgrade React to use Vite v3 (#1744) 2022-08-20 14:54:06 +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
58d3ffd241
v2.0.0-beta.44 2022-08-20 09:58:18 +10:00
Ian M. Jones
48cf03cb0d
Fix column widths for doctor command dependencies. (#1717)
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-08-09 17:54:03 +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
stffabi
c13c4a29f5
[v2, build] Bug fix collecting of output binaries for platforms (#1715) 2022-08-09 07:41:26 +10:00
Lea Anthony
1955570264
v2.0.0-beta.43 2022-08-08 20:08:32 +10:00
stffabi
833b6bdbb8
Merge pull request #1711
* [v2, dev] Improve error message for auto dev server discovery without…
2022-08-08 17:25:36 +10:00
stffabi
501f7a129e
[v2, dev] Build frontend only before starting the dev watcher command (#1694)
* [v2, dev] Improve logging of dev watcher command during stop

* [v2, dev] Build frontend only before starting the dev watcher command

Breaking Change: Ignore flags take precedence over Force flag.
2022-08-05 20:01:47 +10:00
Lea Anthony
e9fc5c9d5c
Add support for retrieving the release notes from Github. (#1679)
* New command `show`. Adds support for retrieving the release notes from Github. Shown automatically after update.

* Improve code

* Don't show release notes by default, but show how to view them

* Add version flag for release notes

* Escape path
2022-08-01 20:05:05 +10:00
Lea Anthony
d5574ba9d7
Improve colour scheme for light mode terminals 2022-07-31 09:15:20 +10:00
Lea Anthony
c58071be92
Improve template README 2022-07-30 12:31:19 +10:00
Lea Anthony
6a474cec53
v2.0.0-beta.42 2022-07-25 22:13:25 +10:00
Lea Anthony
59cfe88628
v2.0.0-beta.41.2 2022-07-25 22:09:07 +10:00
Lea Anthony
e68b419cc8
Update changelog and version 2022-07-25 22:06:21 +10:00
stffabi
11d50c32bd
[dev] Ignore empty install command, we also do ignore it during the build step (#1651)
Otherwise we can't use `wails dev` for projects where `wails build` works, e.g. on the plain template.
2022-07-25 22:03:39 +10:00
Lea Anthony
a0b06c4700
Bugfix/devwatcher error (#1650)
* Fix error logging

* Fix building frontend on initial run of wails dev
2022-07-25 21:47:45 +10:00
Lea Anthony
a43c077423
v2.0.0-beta.40 2022-07-24 20:33:23 +10:00
Lea Anthony
0f7bd65815
Update Svelte to Vite 3 (#1643)
Updates to svelte template.
Refactor url detector to strip ANSI codes at point of source
Ignore frontend if external dev server used.
[AssetServer] WebSockets can always directly be forwarded to the handler

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

Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-07-24 20:20:02 +10:00
Lea Anthony
7b656c49c2
Add -s support for wails dev (#1632)
* Add -s support for wails dev

* Ignore frontend if external dev server used.
2022-07-24 19:19:48 +10:00
Lea Anthony
5a3d45b535
Override platform with GOOS and GOARCH (#1618)
* Override platform with GOOS and GOARCH

* Update v2/cmd/wails/internal/commands/build/build.go

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

* Only use GOOS and GOARCH env vars for default target

* Update docs. Add dryrun flag for testing

* Update v2/cmd/wails/internal/commands/build/build.go

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

* Fix scenario where no arch specified

* Fixed banner

Co-authored-by: stffabi <stffabi@users.noreply.github.com>
2022-07-21 21:25:57 +10:00
Lea Anthony
b21a92ecdb
Install dev dependencies before starting dev mode (#1615) 2022-07-20 20:52:35 +10:00
stffabi
1f62b5773d
[v2] Fix plain template (#1609)
* [template] Add missing main.go file to plain template

* [dev] If wails could not be find in go.mod output a gracefull error message
2022-07-20 08:45:48 +10:00
Lea Anthony
848eee5a7c
v2.0.0-beta.39.2 2022-07-20 07:23:25 +10:00
Lea Anthony
f7976a5c85
v2.0.0-beta.39 2022-07-19 20:58:11 +10:00
skamensky
04d35410de
Expose screen dimensions (#1519)
* get dimensions working for linux

* Cleaning up some GTK code

I was getting the following errors due to some bad casts.

Gdk-CRITICAL **: 18:58:51.943: gdk_monitor_get_geometry: assertion 'GDK_IS_MONITOR (monitor)' failed
Gdk-CRITICAL **: 18:58:51.943: gdk_display_get_monitor_at_window: assertion 'GDK_IS_DISPLAY (display)' failed

This commit fixes these errors

* Adding Screen namespace along with linux implementation

* moving ScreenGetAll into a more appropriate place

* Fixing typescript definition mistake, documentation, ordering of functions, and formatting

* add ScreenGetAll to more templates

* moving screen into its own javascript file

* fixing bug where screen objects are not returned from the runtime function

* rebuilding frontend wrapper package

* adding windows implementation of ScreenGetAll

* adding screen get all implementation for darwin

* reverting a change that is unrelated to the work on expose-dimensions

* removing duplicate comparison

* changing GetNthScreen in screen API on macos

To use frame instead of visibleframe to keep into account the space the the dock takes up
We want to include that space in the calculation in order to keep the sizes of screens consistent across platforms

* Correcting screen jsdoc

It used to say it returned a single screen object. Now it says that it returns an array of screen objects

* Fixing typo in function name

* reverting pointless spacing change

* reverting pointless spacing change

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: shmuel.kamensky <shmuel.kamensky@shutterfly.com>
2022-07-16 12:33:37 +10:00
Lea Anthony
5987f17cca
Check for line length when scanning for local devserver url (#1566) 2022-07-14 22:22:26 +10:00
Ian M. Jones
82cc5498f1
Add nixpkgs support to doctor command. (#1551)
* Dependancy => Dependency typo fix.

* Add Nixpkgs support to doctor command.

* Add mention of nixpkgs to linux distro support doc.
2022-07-13 07:29:41 +10:00
Lea Anthony
1dec40db33
Feature/auto devserver port (#1547)
* Support "auto" devserverurl
2022-07-12 21:41:41 +10:00
Lea Anthony
55ec688331
Add helloworld tutorial 2022-07-10 15:07:42 +10:00
Lea Anthony
7a63464997
Update vscode template (#1398) 2022-07-08 20:33:49 +10:00
Lea Anthony
1cd31573a9
change: improve cli output for wails update
closes #1528
2022-07-08 19:53:13 +10:00
Ian M. Jones
f4b4e4cdb8
Allow -appargs flag to pass flags to binary. (#1534) 2022-07-06 19:25:28 +10:00
Lea Anthony
4726b72708
feature: Add -windowsconsole flag 2022-07-04 22:52:50 +10:00
stffabi
41d1bf3d10
[v2] Improvements to the dev command (#1510)
* [v2, darwin] Fix nullreference exception when dev watcher failed to start and the user stopped wails dev with ctrl-c

* [v2] Improve starting of dev watcher command

Wails dev now also fails if the dev watcher could not be started. Since
the dev watcher is used to start e.g. vite to serve the frontend, it does
not make much sense to let Wails dev be running if the dev
watcher failed to start.

* [v2] Improve killing and cleanup of debug binary

- Make sure to kill the debug process in all cases even if an error occured.
- Make sure to kill the last started binary process
2022-06-30 20:13:06 +10:00
Lea Anthony
3e42d2da05
Rename WindowSetRGBA -> WindowSetBackgroundColour (#1506)
* Rename WindowSetRGBA -> WindowSetBackgroundColour

* Fix Typos
2022-06-29 22:31:49 +10:00
NYSSEN Michaël
b2cec41fbf
Fix lit-ts template (#1494)
* Fix lit-ts template

* Fixing generate Template

* Remove bad null check

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-06-27 20:56:18 +10:00
Lea Anthony
66f79c2e51
v2.0.0-beta.38 + release script 2022-06-27 20:41:09 +10:00
Lea Anthony
f8e6fa4bf3
Regenerate templates 2022-06-27 18:09:25 +10:00
Tom
d9888ce6af
Chore/react 18 create root (#1489)
* chore: use createRoot for react-ts

* chore: use createRoot for react-js

* fix: quotes

* fix: remove semi

* chore: update react templates to use createRoot instead of ReactDOM.render

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-06-27 18:00:04 +10:00
Lea Anthony
16581ceff9
Regenerate templates to use BackgroundColour 2022-06-23 20:30:18 +10:00