wo/packaging/engines/apply-wo-patches.sh
2026-10-25 23:44:14 -04:00

16 lines
564 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
if [[ $# -ne 2 ]]; then
echo "Usage: $0 /path/to/electron-v45 /path/to/cef" >&2
exit 2
fi
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
electron_source="$1"
cef_source="$2"
git -C "$electron_source" apply --check "$repo_root/packaging/engines/wo-electron-v45.patch"
git -C "$cef_source" apply --check "$repo_root/packaging/engines/wo-cef.patch"
git -C "$electron_source" apply "$repo_root/packaging/engines/wo-electron-v45.patch"
git -C "$cef_source" apply "$repo_root/packaging/engines/wo-cef.patch"