Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update devmode to use types and yaml #3454

Merged
merged 1 commit into from
May 5, 2024

Conversation

atterpac
Copy link
Contributor

@atterpac atterpac commented May 5, 2024

Changes to dev mode library refresh reflected in this PR

  1. Swap from toml config to yaml config because yaml was getting a little to verbose for what I preferred with how the config file has transformed since initial start
  2. Instead of having bool checks for blocking, primary, killing, and a seperate execute struct for background refresh has now shifted to a single execute struct with a type field with the following types
  • once: Will run only once at the initial start as a blocking process
  • background: Will start once at the start of dev mode launch and persist in the background (non-blocking)
  • primary: the process that triggers the killing of the stale processes (usually the bin/app)
  • blocking: a blocking function uses for prepping the primary function (go mod tidy for example)

Updates all templates and commands related to dev mode
is a breaking change for those using the old config file

  • [ X ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • [ X ] Linux
# System
| Name         | Ubuntu                             |
| Version      | 22.04                              |
| ID           | ubuntu                             |
| Branding     | 22.04.4 LTS (Jammy Jellyfish)      |
| Platform     | linux                              |
| Architecture | amd64                              |
| CPU          | AMD Ryzen 7 3700X 8-Core Processor |
| GPU 1        | Unknown                            |
| Memory       | 12GB                               |


# Build Environment

| Wails CLI      | v3.0.0-alpha.4                                                                 |
| Go Version     | go1.22.2                                                                       |
| Revision       | aecd679a7de3ea3fb5ebabadb415beacc334964b                                       |
| Modified       | true                                                                           |
| -buildmode     | exe                                                                            |
| -compiler      | gc                                                                             |
| CGO_CFLAGS     |                                                                                |
| CGO_CPPFLAGS   |                                                                                |
| CGO_CXXFLAGS   |                                                                                |
| CGO_ENABLED    | 1                                                                              |
| CGO_LDFLAGS    |                                                                                |
| DefaultGODEBUG | httplaxcontentlength=1,httpmuxgo121=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1 |
| GOAMD64        | v1                                                                             |
| GOARCH         | amd64                                                                          |
| GOOS           | linux                                                                          |
| vcs            | git                                                                            |
| vcs.modified   | true                                                                           |
| vcs.revision   | aecd679a7de3ea3fb5ebabadb415beacc334964b                                       |
| vcs.time       | 2024-05-05T02:09:33Z                                                           |


# Dependencies

| gcc        | 12.9ubuntu3             |
| libgtk-3   | 3.24.33-1ubuntu2        |
| libwebkit  | 2.44.0-0ubuntu0.22.04.1 |
| npm        | 10.7.0                  |
| pkg-config | 0.29.2-1ubuntu3         |

@leaanthony leaanthony merged commit 2c29e1c into wailsapp:v3-alpha May 5, 2024
8 checks passed
leaanthony pushed a commit that referenced this pull request May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants