Skip to content

Commit 19d58eb

Browse files
committed
Use older MacOS SDK to build app
1 parent c3463f3 commit 19d58eb

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ all: frontend pob
2525
sign:
2626
echo 'Signing with the first available identity'; \
2727
rm -rf PathOfBuilding.app/Contents/MacOS/spec/TestBuilds/3.13; \
28-
codesign --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app/Contents/MacOS/lcurl.so PathOfBuilding.app/Contents/libs/*; \
29-
codesign --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app/Contents/MacOS/PathOfBuilding; \
30-
codesign --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app; \
28+
codesign -v --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app/Contents/MacOS/lcurl.so PathOfBuilding.app/Contents/libs/*; \
29+
codesign -v --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app/Contents/MacOS/PathOfBuilding; \
30+
codesign -v --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app; \
3131
codesign -d -v PathOfBuilding.app
3232

3333
# We remove the `launch.devMode or` to ensure the user's builds are stored not in

editLuaCurlMakefile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ if ! grep -q "LDFLAGS =" Makefile; then
2626
LDFLAGS = -Wl,-no_fixup_chains
2727
' Makefile
2828
fi
29-
popd
29+
popd

meson.build

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ curl_dep = dependency('libcurl')
1414

1515
# Added flag based on https://stackoverflow.com/a/37729971/319066
1616
# and arguments based on https://mesonbuild.com/Adding-arguments.html
17-
add_project_arguments('-mmacos-version-min=10.12', language : 'c')
18-
add_project_arguments('-mmacos-version-min=10.12', language : 'cpp')
17+
compiler_arguments = ['-mmacosx-version-min=10.12', '-isysroot', '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk']
18+
add_project_arguments(compiler_arguments , language : 'c')
19+
add_project_arguments(compiler_arguments, language : 'cpp')
20+
21+
linker_arguments = ['-mmacosx-version-min=10.12', '-isysroot', '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk']
22+
add_project_link_arguments(linker_arguments, language : 'c')
23+
add_project_link_arguments(linker_arguments, language : 'cpp')
1924

2025
# Import the extension module that knows how
2126
# to invoke Qt tools.

0 commit comments

Comments
 (0)