@echo off
if (abox)==(%1%) (
	set TARGET=b:\sdcard\Android\data\org.xbmc.kodi\files\.kodi\addons\plugin.video.playstream\
) else (
    set TARGET=C:\Users\User\AppData\Roaming\Kodi\addons\plugin.video.playstream\
)

for %%f in (
readme.md
changelog.md
addon.xml
addon.py
context_menu.py
context_download.py
service.py
icon.png
kodiswift\*.py
resources\__init__.py
resources\settings.xml
resources\icon.png
resources\language\English\*
resources\lib\__init__.py
resources\lib\content\__init__.py
resources\lib\content\ContentSources.py
resources\lib\content\playstreamproxy.py
resources\lib\content\util.py
resources\lib\content\run.py
resources\lib\content\resolver.py
resources\lib\content\demjson.py
resources\lib\content\ordereddict.py
resources\lib\content\sources\__init__.py
resources\lib\content\sources\SourceBase.py
resources\lib\content\sources\cinemalive.py
resources\lib\content\sources\config.py
resources\lib\content\sources\euronews.py
resources\lib\content\sources\filmix.py
resources\lib\content\sources\filmon.py
resources\lib\content\sources\iplayer.py
resources\lib\content\sources\movieplace.py
resources\lib\content\sources\ltc.py
resources\lib\content\sources\mtgplay.py
resources\lib\content\sources\play24.py
resources\lib\content\sources\replay.py
resources\lib\content\sources\serialguru.py
resources\lib\content\sources\tvdom.py
resources\lib\content\sources\ustvnow.py
resources\lib\content\sources\viaplay.py
resources\lib\content\sources\lmt.py
resources\lib\content\sources\filmas.py
resources\lib\content\sources\YouTubeVideoUrl.py
resources\lib\content\sources\jsinterp.py
resources\lib\content\sources\swfinterp.py
resources\lib\content\sources\streams.cfg
resources\lib\content\resolvers\__init__.py
resources\lib\content\resolvers\aadecode.py
resources\lib\content\resolvers\hqqresolver.py
resources\lib\content\resolvers\openload3.py
resources\lib\content\resolvers\hdgo.py
resources\lib\content\resolvers\kapnob.py
resources\lib\content\resolvers\kodik.py
resources\lib\content\resolvers\youtuberesolver.py
resources\picons\*
) do echo f | xcopy /y   %%f %TARGET%%%f

xcopy /y /q resources\lib\content\picons\* %TARGET%resources\picons\

rem xcopy /y /d addon_data\settings.xml "C:\Users\user\AppData\Roaming\Kodi\userdata\addon_data\plugin.video.playstream\settings.xml"

pause
