2017-05-07 11:21:07 +03:00
|
|
|
#!/bin/bash
|
2019-12-22 23:45:42 +03:00
|
|
|
set -Eeuo pipefail
|
2017-05-07 11:21:07 +03:00
|
|
|
|
2020-02-14 09:44:48 +03:00
|
|
|
main () {
|
2020-08-21 09:59:40 +03:00
|
|
|
pushd "$(dirname "${BASH_SOURCE[0]}")/.." > /dev/null
|
2020-11-16 00:11:01 +03:00
|
|
|
local x86_64_deployment_target
|
2022-01-11 16:11:17 +03:00
|
|
|
x86_64_deployment_target="$(jq -r .deploymentTargets.x86_64 ./resources/buildInfo.json)"
|
2020-11-16 00:11:01 +03:00
|
|
|
readonly x86_64_deployment_target
|
|
|
|
|
|
|
|
local arm64_deployment_target
|
2022-01-11 16:11:17 +03:00
|
|
|
arm64_deployment_target="$(jq -r .deploymentTargets.arm64 ./resources/buildInfo.json)"
|
2020-11-16 00:11:01 +03:00
|
|
|
readonly arm64_deployment_target
|
2020-08-21 09:59:40 +03:00
|
|
|
|
2021-11-04 23:15:37 +03:00
|
|
|
local -r pcre_version="8.45"
|
|
|
|
local -r xz_version="5.3.2alpha"
|
2020-08-21 09:59:40 +03:00
|
|
|
local -r ag_version="2.2.0"
|
|
|
|
|
2021-12-12 19:02:03 +03:00
|
|
|
pushd ./bin >/dev/null
|
|
|
|
python third_party/build.py \
|
2020-08-21 09:59:40 +03:00
|
|
|
--arm64-deployment-target="${arm64_deployment_target}" \
|
|
|
|
--x86_64-deployment-target="${x86_64_deployment_target}" \
|
|
|
|
--xz-version "${xz_version}" \
|
|
|
|
--pcre-version "${pcre_version}" \
|
|
|
|
--ag-version "${ag_version}"
|
|
|
|
popd >/dev/null
|
|
|
|
popd >/dev/null
|
2020-02-14 09:44:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
main
|