5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 17:39:58 +08:00

fix missing bin dir on build hook (#2273)

* fix missing bin dir on build hook

* add fix to changelog
This commit is contained in:
Zámbó, Levente 2023-01-06 20:51:01 +01:00 committed by GitHub
parent 284e20a290
commit add10df5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -405,6 +405,12 @@ func executeBuildHook(outputLogger *clilogger.CLILogger, options *Options, hookI
} }
if !fs.DirExists(options.BinDirectory) {
if err := fs.MkDirs(options.BinDirectory); err != nil {
return fmt.Errorf("could not create target directory: %s", err.Error())
}
}
stdout, stderr, err := shell.RunCommand(options.BinDirectory, args[0], args[1:]...) stdout, stderr, err := shell.RunCommand(options.BinDirectory, args[0], args[1:]...)
if options.Verbosity == VERBOSE { if options.Verbosity == VERBOSE {
pterm.Info.Println(stdout) pterm.Info.Println(stdout)

View File

@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266) - Added Webview GPU acceleration options for [Windows](/docs/reference/options#webviewgpuisdisabled) and [Linux](/docs/reference/options#webviewgpupolicy). Added by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2266)
- Added `EnableFraudulentWebsiteDetection` option to opt-in to scan services for fraudulent content, such as malware or phishing attempts. Older releases had the scan services per default activated. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2269) - Added `EnableFraudulentWebsiteDetection` option to opt-in to scan services for fraudulent content, such as malware or phishing attempts. Older releases had the scan services per default activated. Added by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2269)
### Fixed
- Fixed failing build hooks when `build/bin` was missing. Fixed by @Lyimmi in [PR](https://github.com/wailsapp/wails/pull/2273)
## v2.3.0 - 2022-12-29 ## v2.3.0 - 2022-12-29
### Added ### Added