mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
lock in macOS version for Fleet Desktop workers (#16009)
Implementing a safety measure to prevent issues like #15910 in production. Setting the macOS version explicitly avoids unexpected changes in the builder runtime, ensuring the Fleet Desktop executable remains compatible. As of this commit, 'macos-latest' refers to 'macos-12'. We're aligning the worker to this version, although building on macOS 13.x (presently in GitHub workers' beta) should also be viable.
This commit is contained in:
parent
672513c5ce
commit
edaa7acac3
8
.github/workflows/fleet-and-orbit.yml
vendored
8
.github/workflows/fleet-and-orbit.yml
vendored
@ -203,7 +203,13 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: ['${{ vars.GO_VERSION }}']
|
||||
runs-on: macos-latest
|
||||
# Set macOS version to '12' (current equivalent to macos-latest) for
|
||||
# building the binary. This ensures compatibility with macOS version 13 and
|
||||
# later, avoiding runtime errors on systems using macOS 13 or newer.
|
||||
#
|
||||
# Note: Update this version to '13' once GitHub marks macOS 13 as stable
|
||||
# or if we revise our minimum supported macOS version.
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
|
||||
- name: Install Go
|
||||
|
@ -31,7 +31,13 @@ permissions:
|
||||
|
||||
jobs:
|
||||
desktop-macos:
|
||||
runs-on: macos-latest
|
||||
# Set macOS version to '12' (current equivalent to macos-latest) for
|
||||
# building the binary. This ensures compatibility with macOS version 13 and
|
||||
# later, avoiding runtime errors on systems using macOS 13 or newer.
|
||||
#
|
||||
# Note: Update this version to '13' once GitHub marks macOS 13 as stable
|
||||
# or if we revise our minimum supported macOS version.
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
|
||||
- name: Install Go
|
||||
|
@ -82,4 +82,20 @@ make desktop-app-tar-gz
|
||||
|
||||
# Push the desktop target as a new version
|
||||
./tools/tuf/test/push_target.sh macos desktop desktop.app.tar.gz 43
|
||||
```
|
||||
```
|
||||
|
||||
### Troubleshooting
|
||||
|
||||
#### Fleet Desktop Startup Issue on macOS
|
||||
|
||||
When running Fleet Desktop on an older macOS version than it was compiled on, Orbit may not launch it due to an error:
|
||||
|
||||
```
|
||||
_LSOpenURLsWithCompletionHandler() failed with error -10825
|
||||
```
|
||||
|
||||
Solution: `Set the MACOSX_DEPLOYMENT_TARGET` environment variable to the lowest macOS version you intend to support:
|
||||
|
||||
```
|
||||
export MACOSX_DEPLOYMENT_TARGET=13 # replace '13' with your target macOS version
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user