Skip to content

Commit fdbb6fa

Browse files
Merge pull request #41 from themuffinator/codex/ensure-error-free-runs-on-all-platforms
build: sync platform icons in bash Meson wrapper for non-Windows CI
2 parents 093d29e + 1c6a2eb commit fdbb6fa

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tools/build/meson_setup.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -euo pipefail
44
script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
55
repo_root="$(cd -- "${script_dir}/../.." && pwd)"
66
default_builddir="${repo_root}/builddir"
7+
sync_icons_script="${script_dir}/sync_icons.py"
78
declare -a MESON_CMD=()
89
PYTHON_CMD=""
910
declare -a READ_ARRAY_RESULT=()
@@ -248,6 +249,15 @@ if [[ -z "${command_name}" ]]; then
248249
exit 1
249250
fi
250251

252+
if [[ ( "${command_name}" == "setup" || "${command_name}" == "compile" || "${command_name}" == "install" ) && "${OPENQ4_SKIP_ICON_SYNC:-0}" != "1" ]]; then
253+
if [[ ! -f "${sync_icons_script}" ]]; then
254+
echo "Icon sync script not found: '${sync_icons_script}'." >&2
255+
exit 1
256+
fi
257+
258+
"${PYTHON_CMD}" "${sync_icons_script}" --source-root "${repo_root}"
259+
fi
260+
251261
if [[ "${command_name}" == "setup" ]]; then
252262
for (( i = 0; i < ${#effective_args[@]}; ++i )); do
253263
if [[ "${effective_args[$i]}" == "--reconfigure" && $((i + 1)) -lt ${#effective_args[@]} ]]; then

0 commit comments

Comments
 (0)