Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[win32] make touched skin install optional

  • Loading branch information...
commit 24fadb9ec0c4659163fc31738ddb8878c097a1f8 1 parent 1a69eb0
Martijn Kaijser MartijnKaijser authored
3  project/Win32BuildSetup/XBMC for Windows.nsi
View
@@ -121,9 +121,8 @@ Section "XBMC" SecXBMC
;Turn on overwrite for rest of install
SetOverwrite on
-
SetOutPath "$INSTDIR\addons"
- File /r "${xbmc_root}\Xbmc\addons\*.*"
+ File /r /x skin.touched ${xbmc_root}\Xbmc\addons\*.*
;SetOutPath "$INSTDIR\web"
;File /r "${xbmc_root}\Xbmc\web\*.*"
16 project/Win32BuildSetup/genNsisIncludes.bat
View
@@ -10,6 +10,7 @@ rem and pvr addons
rem languages
IF EXIST languages.nsi del languages.nsi > NUL
IF EXIST xbmc-pvr-addons.nsi del xbmc-pvr-addons.nsi > NUL
+IF EXIST skins.nsi del skins.nsi > NUL
SETLOCAL ENABLEDELAYEDEXPANSION
SET Counter=1
FOR /F "tokens=*" %%S IN ('dir /B /AD BUILD_WIN32\Xbmc\language') DO (
@@ -35,4 +36,19 @@ FOR /F "tokens=*" %%P IN ('dir /B /AD BUILD_WIN32\Xbmc\xbmc-pvr-addons') DO (
ECHO SectionEnd >> xbmc-pvr-addons.nsi
SET /A Counter = !Counter! + 1
)
+
+SET Counter=1
+FOR /F "tokens=*" %%R IN ('dir /B /AD BUILD_WIN32\Xbmc\addons\skin*') DO (
+ SET "output=%%R"
+ SET output=!output:skin.=!
+ rem Confluence is already included as default skin
+ IF "%%R" NEQ "skin.confluence" (
+ ECHO Section !output! SecSkins!Counter! >> skins.nsi
+ ECHO SectionIn 1 #section is in installtype Full >> skins.nsi
+ ECHO SetOutPath "$INSTDIR\addons\%%R" >> skins.nsi
+ ECHO File /r "${xbmc_root}\Xbmc\addons\%%R\*.*" >> skins.nsi
+ ECHO SectionEnd >> skins.nsi
+ SET /A Counter = !Counter! + 1
+ )
+)
ENDLOCAL
Please sign in to comment.
Something went wrong with that request. Please try again.