Skip to content

Commit

Permalink
[v3] allow build with garble (#3192)
Browse files Browse the repository at this point in the history
* feat: allow build with garble

* docs: update

* Updated docs

---------

Co-authored-by: Lea Anthony <[email protected]>
  • Loading branch information
5aaee9 and leaanthony authored Jan 10, 2025
1 parent 1f9f8da commit a5c32a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/content/docs/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix event handling by [@leaanthony](https://github.com/leaanthony)
- Fixed window shutdown logic by [@leaanthony](https://github.com/leaanthony)
- Common taskfile now defaults to generating Typescript bindings for Typescript templates by [@leaanthony](https://github.com/leaanthony)
- Fixed garble build by @5aaee9 in [#3192](https://github.com/wailsapp/wails/pull/3192)

### Changed

Expand Down
Empty file.
4 changes: 4 additions & 0 deletions v3/internal/go-common-file-dialog/cfd/DialogConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package cfd

import (
"reflect"
"fmt"
"os"
)
Expand All @@ -14,6 +15,9 @@ type FileFilter struct {
Pattern string
}

// Never obfuscate the FileFilter type.
var _ = reflect.TypeOf(FileFilter{})

type DialogConfig struct {
// The title of the dialog
Title string
Expand Down
5 changes: 5 additions & 0 deletions v3/pkg/application/application_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func newApplication(options Options) *App {
func (a *App) logStartup() {
var args []any

// BuildInfo is nil when build with garble
if BuildInfo == nil {
return
}

wailsPackage, _ := lo.Find(BuildInfo.Deps, func(dep *debug.Module) bool {
return dep.Path == "github.com/wailsapp/wails/v3"
})
Expand Down

0 comments on commit a5c32a1

Please sign in to comment.