blob: c9af4b0bbcb40533d2e32ddc542fa34e31302f32 (
plain)
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
|
@ECHO OFF
rem XBMC for Windows install script
rem Copyright (C) 2005-2008 Team XBMC
rem http://xbmc.org
rem Script by chadoe
rem This script generates nullsoft installer include files for xbmc's languages, skins, scripts and plugins
rem languages
IF EXIST languages.nsi del languages.nsi > NUL
SETLOCAL ENABLEDELAYEDEXPANSION
SET Counter=1
FOR /F "tokens=*" %%S IN ('dir /B /AD BUILD_WIN32\Xbmc\language') DO (
rem English is already included as default language
IF "%%S" NEQ "English" (
ECHO Section "%%S" SecLanguage!Counter! >> languages.nsi
ECHO SectionIn 1 #section is in installtype Full >> languages.nsi
ECHO SetOutPath "$INSTDIR\language\%%S" >> languages.nsi
ECHO File /r "${xbmc_root}\Xbmc\language\%%S\*.*" >> languages.nsi
ECHO SectionEnd >> languages.nsi
SET /A Counter = !Counter! + 1
)
)
ENDLOCAL
rem skins
IF EXIST skins.nsi del skins.nsi > NUL
SETLOCAL ENABLEDELAYEDEXPANSION
SET Counter=1
FOR /F "tokens=*" %%S IN ('dir /B /AD BUILD_WIN32\Xbmc\Skin') DO (
rem Confluence and PM3.HD is already included as default skin
IF "%%S" NEQ "Confluence" IF "%%S" NEQ "PM3.HD" (
ECHO Section "%%S" SecSkin!Counter! >> skins.nsi
ECHO SectionIn 1 #section is in installtype Full >> skins.nsi
ECHO SetOutPath "$INSTDIR\skin\%%S" >> skins.nsi
ECHO File /r "${xbmc_root}\Xbmc\Skin\%%S\*.*" >> skins.nsi
ECHO SectionEnd >> skins.nsi
SET /A Counter = !Counter! + 1
)
)
ENDLOCAL
rem scripts
IF EXIST scripts.nsi del scripts.nsi > NUL
IF EXIST BUILD_WIN32\Xbmc\scripts (
SETLOCAL ENABLEDELAYEDEXPANSION
SET Counter=1
ECHO SectionGroup "Scripts" SecScripts >> scripts.nsi
FOR /F "tokens=*" %%S IN ('dir /B /AD BUILD_WIN32\Xbmc\scripts') DO (
ECHO Section "%%S" SecScript!Counter! >> scripts.nsi
ECHO SectionIn 1 #section is in installtype Full >> scripts.nsi
ECHO ${If} $PageProfileState == "0" >> scripts.nsi
ECHO SetOverwrite off >> scripts.nsi
ECHO CreateDirectory "$APPDATA\XBMC\scripts\%%S" >> scripts.nsi
ECHO SetOutPath "$APPDATA\XBMC\scripts\%%S" >> scripts.nsi
ECHO File /r "${xbmc_root}\Xbmc\scripts\%%S\*.*" >> scripts.nsi
ECHO SetOverwrite on >> scripts.nsi
ECHO ${Else} >> scripts.nsi
ECHO SetOutPath "$INSTDIR\scripts\%%S" >> scripts.nsi
ECHO File /r "${xbmc_root}\Xbmc\scripts\%%S\*.*" >> scripts.nsi
ECHO ${EndIf} >> scripts.nsi
ECHO SectionEnd >> scripts.nsi
SET /A Counter = !Counter! + 1
)
ECHO SectionGroupEnd >> scripts.nsi
ENDLOCAL
)
rem plugins
IF EXIST plugins.nsi del plugins.nsi > NUL
IF EXIST BUILD_WIN32\Xbmc\plugins (
ECHO SectionGroup "Plugins" SecPlugins >> plugins.nsi
for %%a IN (Music Pictures Programs Video Weather) DO (
IF EXIST BUILD_WIN32\Xbmc\plugins\%%a (
SETLOCAL ENABLEDELAYEDEXPANSION
SET Counter=1
ECHO SectionGroup "%%a" SecPlugins%%a >> plugins.nsi
FOR /F "tokens=*" %%S IN ('dir /B /AD BUILD_WIN32\Xbmc\plugins\%%a') DO (
ECHO Section "%%S" SecPlugins%%a!Counter! >> plugins.nsi
ECHO SectionIn 1 #section is in installtype Full >> plugins.nsi
ECHO ${If} $PageProfileState == "0" >> plugins.nsi
ECHO SetOverwrite off >> plugins.nsi
ECHO CreateDirectory "$APPDATA\XBMC\plugins\%%a\%%S" >> plugins.nsi
ECHO SetOutPath "$APPDATA\XBMC\plugins\%%a\%%S" >> plugins.nsi
ECHO File /r "${xbmc_root}\Xbmc\plugins\%%a\%%S\*.*" >> plugins.nsi
ECHO SetOverwrite on >> plugins.nsi
ECHO ${Else} >> plugins.nsi
ECHO SetOutPath "$INSTDIR\plugins\%%a\%%S" >> plugins.nsi
ECHO File /r "${xbmc_root}\Xbmc\plugins\%%a\%%S\*.*" >> plugins.nsi
ECHO ${EndIf} >> plugins.nsi
ECHO SectionEnd >> plugins.nsi
SET /A Counter = !Counter! + 1
)
ECHO SectionGroupEnd >> plugins.nsi
ENDLOCAL
)
)
ECHO SectionGroupEnd >> plugins.nsi
)
|