mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 01:43:15 +08:00
Allow to specify macos-min-version externally (#3756)
* Allow to specify macos-min-version externally * update changelog * add note in documentation for macos version * spelling fixes
This commit is contained in:
parent
f33e627360
commit
a964be1ada
@ -307,8 +307,10 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
|
|||||||
if v != "" {
|
if v != "" {
|
||||||
v += " "
|
v += " "
|
||||||
}
|
}
|
||||||
|
if !strings.Contains(v, "-mmacosx-version-min") {
|
||||||
v += "-mmacosx-version-min=10.13"
|
v += "-mmacosx-version-min=10.13"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return v
|
return v
|
||||||
})
|
})
|
||||||
// Use shell.UpsertEnv so we don't overwrite user's CGO_CXXFLAGS
|
// Use shell.UpsertEnv so we don't overwrite user's CGO_CXXFLAGS
|
||||||
@ -344,7 +346,9 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
|
|||||||
if addUTIFramework {
|
if addUTIFramework {
|
||||||
v += "-framework UniformTypeIdentifiers "
|
v += "-framework UniformTypeIdentifiers "
|
||||||
}
|
}
|
||||||
|
if !strings.Contains(v, "-mmacosx-version-min") {
|
||||||
v += "-mmacosx-version-min=10.13"
|
v += "-mmacosx-version-min=10.13"
|
||||||
|
}
|
||||||
|
|
||||||
return v
|
return v
|
||||||
})
|
})
|
||||||
|
@ -103,6 +103,13 @@ There are [issues](https://github.com/upx/upx/issues/446) with using UPX with Ap
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
:::info Set minimal version for MacOS
|
||||||
|
|
||||||
|
You can override default [minimal version](../gettingstarted/installation#supported-platforms) of macOS for your app by providing version via `CGO_CFLAGS` and `CGO_LDFLAGS` environment variables.
|
||||||
|
e.g. `CGO_CFLAGS=-mmacosx-version-min=10.15.0 CGO_LDFLAGS=-mmacosx-version-min=10.15.0 wails build`
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
:::info UPX on Windows
|
:::info UPX on Windows
|
||||||
|
|
||||||
Some Antivirus vendors false positively mark `upx` compressed binaries as virus, see [issue](https://github.com/upx/upx/issues/437).
|
Some Antivirus vendors false positively mark `upx` compressed binaries as virus, see [issue](https://github.com/upx/upx/issues/437).
|
||||||
|
@ -19,6 +19,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Fixed
|
### Fixed
|
||||||
- Fixed cross compilation failed with CGO [PR](https://github.com/wailsapp/wails/pull/3795) by [@fcying](https://github.com/fcying)
|
- Fixed cross compilation failed with CGO [PR](https://github.com/wailsapp/wails/pull/3795) by [@fcying](https://github.com/fcying)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Allow to specify macos-min-version externally. Implemented by @APshenkin in [PR](https://github.com/wailsapp/wails/pull/3756)
|
||||||
|
|
||||||
## v2.9.2 - 2024-09-18
|
## v2.9.2 - 2024-09-18
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
Loading…
Reference in New Issue
Block a user