Skip to content

Commit

Permalink
Use older MacOS SDK to build app
Browse files Browse the repository at this point in the history
  • Loading branch information
hsource committed Dec 19, 2023
1 parent c3463f3 commit 19d58eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ all: frontend pob
sign:
echo 'Signing with the first available identity'; \
rm -rf PathOfBuilding.app/Contents/MacOS/spec/TestBuilds/3.13; \
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/*; \
codesign --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app/Contents/MacOS/PathOfBuilding; \
codesign --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app; \
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/*; \
codesign -v --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app/Contents/MacOS/PathOfBuilding; \
codesign -v --force --deep --sign $$(security find-identity -v -p codesigning | grep Distribution | awk 'FNR == 1 {print $$2}') PathOfBuilding.app; \
codesign -d -v PathOfBuilding.app

# We remove the `launch.devMode or` to ensure the user's builds are stored not in
Expand Down
2 changes: 1 addition & 1 deletion editLuaCurlMakefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ if ! grep -q "LDFLAGS =" Makefile; then
LDFLAGS = -Wl,-no_fixup_chains
' Makefile
fi
popd
popd
9 changes: 7 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ curl_dep = dependency('libcurl')

# Added flag based on https://stackoverflow.com/a/37729971/319066
# and arguments based on https://mesonbuild.com/Adding-arguments.html
add_project_arguments('-mmacos-version-min=10.12', language : 'c')
add_project_arguments('-mmacos-version-min=10.12', language : 'cpp')
compiler_arguments = ['-mmacosx-version-min=10.12', '-isysroot', '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk']
add_project_arguments(compiler_arguments , language : 'c')
add_project_arguments(compiler_arguments, language : 'cpp')

linker_arguments = ['-mmacosx-version-min=10.12', '-isysroot', '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk']
add_project_link_arguments(linker_arguments, language : 'c')
add_project_link_arguments(linker_arguments, language : 'cpp')

# Import the extension module that knows how
# to invoke Qt tools.
Expand Down

0 comments on commit 19d58eb

Please sign in to comment.