A bat file to build XPR files...

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nickman Offline
Fan
Posts: 468
Joined: Oct 2003
Reputation: 0
Location: Sweden
Rainbow   
Post: #1
i made a bat file to make it easier (imho) to create a xpr file from the media dir. don't know if anyone cares but here it is Tongue

just make a textfile called buildxpr.bat and copy the folowing into it:

Quote:@echo off

rem ----purpose----
rem create xbmc xpr skin files with a single click
rem ----------------------------------------------

title xbmc build skin xpr script

rem ----config------------------------------------
set tex=xbmctex.exe
rem ----------------------------------------------

if "%1"=="" (goto doh) else (set arg1=%1)
if "%2"=="" (goto remove) else (goto backup)

:remove
echo.
echo compressing skin files in media dir...
%tex% -input %arg1%\media -output %arg1%\media

echo removing old uncompressed skin files in media dir...
del %arg1%\media\*.jpg /q
del %arg1%\media\*.png /q
del %arg1%\media\*.gif /q
del %arg1%\media\*.bmp /q
goto end

:backup
echo compressing skin files to media_xpr\...
call mkdir %arg1%\media_xpr
%tex% -input %arg1%\media -output %arg1%\media_xpr
goto end

:doh
echo.
echo usage: buildxpr {skinfolder name} ({backup} optional)
echo.
echo !warning! if backup is not selected the original skin
echo files (jpg,png,gif,bmp) will be deleted.
echo.

:end
echo finished!
echo.

edit: ops! it had lots of bugs. removed now. hope no one saw it. v2.0   :lol:

  • ASRock ION 330 OpenELEC XBMC Frodo.
  • 47" LG HDTV1080p, AC3/DTS Receiver.
  • 96" Epson LCD 1080p projector
  • 2x Raspbery Pi with XBMC
find quote