only patch if files dont exist

This commit is contained in:
Alexander Frick 2024-04-18 23:04:39 -05:00
parent 540a6eb1fa
commit 2304d59457

View file

@ -71,12 +71,17 @@ cp -r -v pak_src/binaries/pak-win/. ${CR_SRC_DIR}/out/thorium/ &&
printf "\n" &&
printf "${YEL}Patching FFMPEG for HEVC...${c0}\n" &&
cp -v other/add-hevc-ffmpeg-decoder-parser.patch ${CR_SRC_DIR}/third_party/ffmpeg/ &&
cp -v other/Fix-policy-templates.patch ${CR_SRC_DIR}/ &&
cd ${CR_SRC_DIR}/third_party/ffmpeg &&
git apply --reject ./add-hevc-ffmpeg-decoder-parser.patch &&
cd ${CR_SRC_DIR} &&
git apply --reject ./Fix-policy-templates.patch &&
patchFFMPEG () {
cp -v other/add-hevc-ffmpeg-decoder-parser.patch ${CR_SRC_DIR}/third_party/ffmpeg/ &&
cp -v other/Fix-policy-templates.patch ${CR_SRC_DIR}/ &&
cd ${CR_SRC_DIR}/third_party/ffmpeg &&
git apply --reject ./add-hevc-ffmpeg-decoder-parser.patch &&
cd ${CR_SRC_DIR} &&
git apply --reject ./Fix-policy-templates.patch
}
[ -f ${CR_SRC_DIR}/third_party/ffmpeg/add-hevc-ffmpeg-decoder-parser.patch ] || patchFFMPEG;
cd ~/thorium &&
printf "\n" &&