fix: link current SDK for native window decorations
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
APP := .build/Conjure.app
|
||||
INSTALL_DIR ?= /Applications
|
||||
CODE_SIGN_IDENTITY ?= -
|
||||
# Keep AppKit on the current SDK appearance, not deployment-target compatibility styling.
|
||||
PLATFORM_FLAGS := -Xlinker -platform_version -Xlinker macos -Xlinker 14.0 -Xlinker $(shell xcrun --show-sdk-version)
|
||||
|
||||
build:
|
||||
swift build -c release
|
||||
swift build -c release $(PLATFORM_FLAGS)
|
||||
mkdir -p $(APP)/Contents/MacOS $(APP)/Contents/Resources
|
||||
cp .build/release/Conjure $(APP)/Contents/MacOS/Conjure
|
||||
cp Resources/Info.plist $(APP)/Contents/Info.plist
|
||||
@@ -21,4 +23,4 @@ install: build
|
||||
swift Scripts/install.swift "$(APP)" "$(INSTALL_DIR)"
|
||||
|
||||
test:
|
||||
swift test
|
||||
swift test $(PLATFORM_FLAGS)
|
||||
|
||||
@@ -6,6 +6,8 @@ A native macOS launcher for applications, calculations, unit and currency conver
|
||||
|
||||
Requires macOS 14 or later and a Swift 6 toolchain (Xcode 16 or later).
|
||||
|
||||
The Makefile links with the active Xcode SDK version while retaining the macOS 14 deployment target. This keeps AppKit’s native window controls on the current system appearance instead of older-SDK compatibility styling. Use `make build` / `make run` for this build configuration; plain `swift build` does not include the explicit linker platform flags.
|
||||
|
||||
```sh
|
||||
make run # Build and launch .build/Conjure.app.
|
||||
make build # Build without launching.
|
||||
|
||||
@@ -4,5 +4,7 @@
|
||||
- [ ] bug: looks like dragging around the conjure windows can cause other conjure windows of difference window sizes to spawn offset the corner instead of from the center of the windows
|
||||
- when moving a conjure window, the saved position should always be the center of the window, and windows should always be spawned at some position taking to mean their center.
|
||||
- this should keep window placement invariant of corner window sizes
|
||||
- [ ] conjure notes:
|
||||
- add action to delete a note (currently selected note)
|
||||
- [ ] the guidelines for centering the application when dragged are blurry on some external monitors.
|
||||
- track down the cause and fix it.
|
||||
Reference in New Issue
Block a user