@@ -155,14 +155,15 @@ build_git_ios()
155155
156156build_git_osx ()
157157{
158- sdk=" ` xcodebuild -showsdks 2> /dev/null | grep macosx | sed ' s/.*macosx\(.*\)/\1/' ` "
159- archs=" x86_64"
158+ xc
159+ sdk=" ` xcodebuild -showsdks 2> /dev/null | grep ' -sdk macosx' | sed ' s/.*macosx\(.*\)/\1/' ` "
160+ archs=" x86_64 arm64"
160161 sdkminversion=" 10.7"
161-
162+
162163 if test " x$name " = x ; then
163164 return
164165 fi
165-
166+
166167 versions_path=" $scriptpath /deps-versions.plist"
167168 version=" ` defaults read " $versions_path " " $name " 2> /dev/null` "
168169 version=" $(( $version + 1 )) "
@@ -224,7 +225,7 @@ build_git_osx()
224225 exit 1
225226 fi
226227 echo finished
227-
228+
228229 if echo $library | grep ' \.framework$' > /dev/null ; then
229230 cd " $tmpdir /bin/Release"
230231 defaults write " $tmpdir /bin/Release/$library /Resources/Info.plist" " git-rev" " $rev "
@@ -289,19 +290,19 @@ build_git_osx()
289290
290291get_prebuilt_dep ()
291292{
292- url=" https://d.etpan.org/mailcore2 -deps"
293+ url=" https://mailcore -deps.ams3.digitaloceanspaces.com "
293294
294295 if test " x$name " = x ; then
295296 return
296297 fi
297-
298+
298299 versions_path=" $scriptpath /deps-versions.plist"
299300 installed_versions_path=" $scriptpath /installed-deps-versions.plist"
300301 if test ! -f " $versions_path " ; then
301302 build_for_external=1 " $scriptpath /build-$name .sh"
302303 return ;
303304 fi
304-
305+
305306 installed_version=" ` defaults read " $installed_versions_path " " $name " 2> /dev/null` "
306307 if test ! -d " $scriptpath /../Externals/$name " ; then
307308 echo " $name is not in Externals. Checking built products dir"
@@ -313,19 +314,19 @@ get_prebuilt_dep()
313314
314315 i=" product_${name/ -/ _} "
315316 product=" ${! i} "
316-
317+
317318 if test -z " $product " ; then
318319 echo " No filename for a product in ${BUILT_PRODUCTS_DIR} defined for dependency ${name} . Triggering download"
319320 installed_version=
320321 elif test -f " ${BUILT_PRODUCTS_DIR} /$product " ; then
321322 echo " Found product $product in built products dir. Using that version. The version number"
322323 echo " is unknown, it is your responsability to ensure that it is up to date and is"
323324 echo " configured properly with any required headers copied to $BUILT_PRODUCTS_DIR "
324-
325+
325326 # Mark the version as up to date, even though the true version number is not known
326327 installed_version=" ` defaults read " $versions_path " " $name " 2> /dev/null` "
327328 else
328- # There is no version in BUILT_PRODUCTS_DIR so clear installed_version in order to
329+ # There is no version in BUILT_PRODUCTS_DIR so clear installed_version in order to
329330 # download a new copy
330331 installed_version=
331332 fi
@@ -342,7 +343,7 @@ get_prebuilt_dep()
342343
343344 BUILD_TIMESTAMP=` date +' %Y%m%d%H%M%S' `
344345 tempbuilddir=" $scriptpath /../Externals/workdir/$BUILD_TIMESTAMP "
345-
346+
346347 mkdir -p " $tempbuilddir "
347348 cd " $tempbuilddir "
348349 echo " Downloading $name -$version "
@@ -357,7 +358,7 @@ get_prebuilt_dep()
357358 cd ..
358359 rm -f " $scriptpath /../Externals/git-rev"
359360 rm -rf " $tempbuilddir "
360-
361+
361362 if test -d " $scriptpath /../Externals/$name " ; then
362363 defaults write " $installed_versions_path " " $name " " $version "
363364 plutil -convert xml1 " $installed_versions_path "
0 commit comments