mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-09 11:27:32 -03:00
only patch if files dont exist
This commit is contained in:
parent
540a6eb1fa
commit
2304d59457
1 changed files with 11 additions and 6 deletions
17
setup.sh
17
setup.sh
|
@ -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" &&
|
||||
|
|
Loading…
Reference in a new issue