forked from Anime4000/IFME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.cmd
81 lines (67 loc) · 4.96 KB
/
configure.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@echo off
@title Configure IFME Builds
cd "%~dp0"
SET UNZIP="%PROGRAMFILES%\7-Zip\7z.exe"
SET WGET="%SYSTEMROOT%\System32\wget.exe"
echo Checking %WGET%
IF EXIST %WGET% (
echo %WGET% found!
) ELSE (
echo %WGET% not found :(
pause
exit 1
)
echo Checking %UNZIP%
IF EXIST %UNZIP% (
echo %UNZIP% found!
) ELSE (
echo %UNZIP% not found :(
pause
exit 1
)
echo Creating folders
mkdir prerequisite\windows\32bit\plugins\
mkdir prerequisite\windows\64bit\plugins\
mkdir prerequisite\allos\extension\
%WGET% --no-check-certificate https://github.com/x265/x265.github.io/raw/master/supporter.txt -O "sources\metauser.if"
echo Binaries
%WGET% --no-check-certificate https://github.com/x265/Preparation/releases/download/v0.0.1/7za-x86.zip -O "prerequisite\windows\32bit\7za-x86.ifx"
%WGET% --no-check-certificate https://github.com/x265/Preparation/releases/download/v0.0.1/7za-x64.zip -O "prerequisite\windows\64bit\7za-x64.ifx"
%WGET% --no-check-certificate https://github.com/x265/Preparation/releases/download/v0.0.1/MediaInfo-x86.zip -O "prerequisite\windows\32bit\MediaInfo-x86.ifx"
%WGET% --no-check-certificate https://github.com/x265/Preparation/releases/download/v0.0.1/MediaInfo-x64.zip -O "prerequisite\windows\64bit\MediaInfo-x64.ifx"
echo Extensions
%WGET% --no-check-certificate https://github.com/x265/HFRGen/releases/download/v0.0.2/hfrgen.zip -O "prerequisite\allos\extension\hfrgen.ifx"
%WGET% --no-check-certificate https://github.com/x265/HoloBenchmark/releases/download/v0.0.4/holobenchmark.7z -O "prerequisite\allos\extension\holobenchmark.ifx"
%WGET% --no-check-certificate https://github.com/x265/Nemupad/releases/download/v0.0.3/nemupad.dll.zip -O "prerequisite\allos\extension\nemupad.dll.ifx"
echo Extension - AvsPmod
%WGET% --no-check-certificate https://github.com/x265/AvsPmodBridge/releases/download/v0.0.1/AvsPmodBridge.zip -O "prerequisite\allos\extension\AvsPmodBridge.ifx"
%WGET% --no-check-certificate https://github.com/AvsPmod/AvsPmod/releases/download/v2.5.1/AvsPmod_v2.5.1.zip -O "prerequisite\allos\extension\AvsPmod_v2.5.1.ifx"
echo Downloading 32bit plugins!
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/avisynth.ifx -O "prerequisite\windows\32bit\plugins\avisynth.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/faac.ifx -O "prerequisite\windows\32bit\plugins\faac.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/ffmpeg.ifx -O "prerequisite\windows\32bit\plugins\ffmpeg.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/ffmsindex.ifx -O "prerequisite\windows\32bit\plugins\ffmsindex.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/flac.ifx -O "prerequisite\windows\32bit\plugins\flac.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/mkvtoolnix.ifx -O "prerequisite\windows\32bit\plugins\mkvtoolnix.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/mp4box.ifx -O "prerequisite\windows\32bit\plugins\mp4box.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/mp4fpsmod.ifx -O "prerequisite\windows\32bit\plugins\mp4fpsmod.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/ogg.ifx -O "prerequisite\windows\32bit\plugins\ogg.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/opus.ifx -O "prerequisite\windows\32bit\plugins\opus.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/32bit/x265msvc.ifx -O "prerequisite\windows\32bit\plugins\x265msvc.ifx"
echo Downloading 64bit plugins!
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/ffmpeg.ifx -O "prerequisite\windows\64bit\plugins\ffmpeg.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/ffmsindex.ifx -O "prerequisite\windows\64bit\plugins\ffmsindex.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/flac.ifx -O "prerequisite\windows\64bit\plugins\flac.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/mkvtoolnix.ifx -O "prerequisite\windows\64bit\plugins\mkvtoolnix.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/mp4box.ifx -O "prerequisite\windows\64bit\plugins\mp4box.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/ogg.ifx -O "prerequisite\windows\64bit\plugins\ogg.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/x265gcc.ifx -O "prerequisite\windows\64bit\plugins\x265gcc.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/x265icc.ifx -O "prerequisite\windows\64bit\plugins\x265icc.ifx"
%WGET% http://sourceforge.net/projects/ifme/files/plugins/windows/64bit/x265msvc.ifx -O "prerequisite\windows\64bit\plugins\x265msvc.ifx"
echo Unpacking
for /r "%~dp0\references" %%i in (*.ifx) do %UNZIP% x "%%i" -y -o"%%~dpi"
for /r "%~dp0\prerequisite" %%i in (*.ifx) do %UNZIP% x "%%i" -y -o"%%~dpi"
echo Delete cache
del /f /s /q *.ifx
echo Done, All OK!
TIMEOUT /T 3