Skip to content
This repository
Browse code

[win32] make touched skin install optional

  • Loading branch information...
commit 24fadb9ec0c4659163fc31738ddb8878c097a1f8 1 parent 1a69eb0
Martijn Kaijser authored August 16, 2013
3  project/Win32BuildSetup/XBMC for Windows.nsi
@@ -121,9 +121,8 @@ Section "XBMC" SecXBMC
121 121
   
122 122
   ;Turn on overwrite for rest of install
123 123
   SetOverwrite on
124  
-  
125 124
   SetOutPath "$INSTDIR\addons"
126  
-  File /r "${xbmc_root}\Xbmc\addons\*.*"
  125
+  File /r /x skin.touched ${xbmc_root}\Xbmc\addons\*.*
127 126
   ;SetOutPath "$INSTDIR\web"
128 127
   ;File /r "${xbmc_root}\Xbmc\web\*.*"
129 128
 
16  project/Win32BuildSetup/genNsisIncludes.bat
@@ -10,6 +10,7 @@ rem and pvr addons
10 10
 rem languages
11 11
 IF EXIST languages.nsi del languages.nsi > NUL
12 12
 IF EXIST xbmc-pvr-addons.nsi del xbmc-pvr-addons.nsi > NUL
  13
+IF EXIST skins.nsi del skins.nsi > NUL
13 14
 SETLOCAL ENABLEDELAYEDEXPANSION
14 15
 SET Counter=1
15 16
 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 (
35 36
   ECHO SectionEnd >> xbmc-pvr-addons.nsi
36 37
   SET /A Counter = !Counter! + 1
37 38
 )
  39
+
  40
+SET Counter=1
  41
+FOR /F "tokens=*" %%R IN ('dir /B /AD BUILD_WIN32\Xbmc\addons\skin*') DO (
  42
+  SET "output=%%R"
  43
+  SET output=!output:skin.=!
  44
+  rem Confluence is already included as default skin
  45
+  IF "%%R" NEQ "skin.confluence" (
  46
+    ECHO Section !output! SecSkins!Counter! >> skins.nsi
  47
+    ECHO SectionIn 1 #section is in installtype Full >> skins.nsi
  48
+    ECHO SetOutPath "$INSTDIR\addons\%%R" >> skins.nsi
  49
+    ECHO File /r "${xbmc_root}\Xbmc\addons\%%R\*.*" >> skins.nsi
  50
+    ECHO SectionEnd >> skins.nsi
  51
+    SET /A Counter = !Counter! + 1
  52
+  )
  53
+)
38 54
 ENDLOCAL

0 notes on commit 24fadb9

Please sign in to comment.
Something went wrong with that request. Please try again.