forked from Anime4000/IFME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.cmd
128 lines (109 loc) · 2.8 KB
/
Makefile.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@echo off
@title Build IFME and Release!
cd "%~dp0"
SET UNZIP="%PROGRAMFILES%\7-Zip\7z.exe"
SET WGET="%SYSTEMROOT%\System32\wget.exe"
SET ISCC="%PROGRAMFILES(X86)%\Inno Setup 5\iscc.exe"
SET CompileMode=Release
SET BUILDDIR=build
SET MSBuildVer=14.0
:: Compiler of choice
:: Visual Studio 2015 or Mono 4.0
SET NETCOMPILER="%ProgramFiles(x86)%\MSBuild\%MSBuildVer%\Bin\amd64\MSBuild.exe"
:: SET NETCOMPILER="%ProgramFiles(x86)%\Mono\bin\xbuild.exe"
cls
echo.
echo.
echo.
echo This script allowing publish IFME after compile. Using %CompileMode% build.
echo Be sure ifme.exe in %CompileMode% is working perfectly including addons.
echo.
echo.
echo Don't forget to close any running Visual Studio before compile
echo Press any key to start making (existing folder will be removed!)...
echo.
echo.
echo Make sure you have wget & 7zip installed on your computer.
echo.
echo.
echo.
pause
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
)
timeout /t 3 >nul
@title DELETEING %BUILDDIR%!
echo DELETEING %BUILDDIR%!
rmdir /s /q %BUILDDIR%
mkdir "%BUILDDIR%"
timeout /t 1 >nul
echo.
@title COMPILING IFME
echo COMPILING IFME
call %NETCOMPILER% /nologo /verbosity:normal ifme.sln /t:Build /p:Configuration=%CompileMode%
timeout /t 5 >nul
echo.
@title COPY IFME MAIN FILE
echo COPY IFME MAIN FILE
mkdir %BUILDDIR%\benchmark
mkdir %BUILDDIR%\extension
robocopy ifme\lang %BUILDDIR%\lang /E
robocopy ifme\profile %BUILDDIR%\profile /E
robocopy ifme\sounds %BUILDDIR%\sounds /E
copy ifme\addons_linux32.repo %BUILDDIR%
copy ifme\addons_linux64.repo %BUILDDIR%
copy ifme\addons_windows32.repo %BUILDDIR%
copy ifme\addons_windows64.repo %BUILDDIR%
copy ifme\avisynthsource.code %BUILDDIR%
copy ifme\format.ini %BUILDDIR%
copy ifme\iso.code %BUILDDIR%
copy sources\metauser.if %BUILDDIR%
@title COPY COMPILED
echo COPY COMPILED
copy ifme\bin\%CompileMode%\ifme.exe %BUILDDIR%
copy ifme\bin\%CompileMode%\INIFileParser.dll %BUILDDIR%
copy ifme\bin\%CompileMode%\MediaInfoDotNet.dll %BUILDDIR%
echo.
@title COPY EXTENSION
echo COPY EXTENSION
robocopy prerequisite\allos\extension %BUILDDIR%\extension /E
@title CLEAN UP
echo CLEAN UP
del /f /q %BUILDDIR%\ifme.pdb
del /f /q %BUILDDIR%\ifme.exe.config
del /f /q %BUILDDIR%\ifme.vshost.exe
del /f /q %BUILDDIR%\ifme.vshost.exe.config
del /f /q %BUILDDIR%\ifme.vshost.exe.manifest
del /f /q %BUILDDIR%\ifme.imouto.pdb
timeout /t 3 >nul
echo.
@title COPY DOCUMENTS
echo COPY DOCUMENTS
copy changelog.txt %BUILDDIR%
copy license.txt %BUILDDIR%
copy patents.txt %BUILDDIR%
echo.
@title CLEAN UP
echo CLEAN UP
del /f /s /q %BUILDDIR%\*.ifx
echo.
echo.
echo.
@title Creating Installer
echo Creating Installer
%ISCC% installer.iss
echo Done!!!
timeout /t 10