From b2839ed7197fa2499767d0d42d892387272d1245 Mon Sep 17 00:00:00 2001 From: Andrey Pshenkin Date: Sun, 26 Nov 2023 12:14:50 +0000 Subject: [PATCH] Pass obfuscation settings from wails.json (#3080) * pass obfuscation settings from wails.json * add to changelog --- v2/cmd/wails/build.go | 10 ++++++++++ website/src/pages/changelog.mdx | 1 + 2 files changed, 11 insertions(+) diff --git a/v2/cmd/wails/build.go b/v2/cmd/wails/build.go index 858ecb4c9..7364df8ba 100644 --- a/v2/cmd/wails/build.go +++ b/v2/cmd/wails/build.go @@ -49,6 +49,16 @@ func buildApplication(f *flags.Build) error { return err } + // Set obfuscation from project file + if projectOptions.Obfuscated { + f.Obfuscated = projectOptions.Obfuscated + } + + // Set garble args from project file + if projectOptions.GarbleArgs != "" { + f.GarbleArgs = projectOptions.GarbleArgs + } + // Create BuildOptions buildOptions := &build.Options{ Logger: logger, diff --git a/website/src/pages/changelog.mdx b/website/src/pages/changelog.mdx index b539d5ef1..3cbadd5b6 100644 --- a/website/src/pages/changelog.mdx +++ b/website/src/pages/changelog.mdx @@ -44,6 +44,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed issue with npm being called npm20 on openSUSE-Tumbleweed. Fixed by @TuffenDuffen in [PR](https://github.com/wailsapp/wails/pull/2941) - Fixed memory corruption on Windows when using accelerator keys. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/3002) - Fixed binding mapping for obfuscated build, when binding are in different structs. Fixed by @APshenkin in [PR](https://github.com/wailsapp/wails/pull/3071) +- Fixed issue with obfuscation settings in wails.json. Fixed by @APshenkin in [PR](https://github.com/wailsapp/wails/pull/3080) ## v2.6.0 - 2023-09-06