(2021-12-30, 11:37)burekas Wrote: Thanks,
The repo addon itself seems to be simple.
But where all the addons are located and some needed files like md5, addons.xml etc... it seems to have kind of known struture of the files and their content.
Is there any script/addon that helps to do that automatically?
By the way, how I calculate the value inside the md5 file? It seems to hold a big number.
As a append, to what @
DaVu said
on windows , you can use 'certutil' which comes preinstalled
e.g.
txt:
certutil -hashfile "addons.xml" md5 | find /i /v "md5" | find /i /v "certutil" > addons.xml.md5
i use it in a .bat to update my repo files, here is anextracted example of a
script to show of the creation of md5 files
bat:
@echo off
setlocal
COLOR C
ECHO -------------------------------------------------------------------------
ECHO ** Create md5**
ECHO -------------------------------------------------------------------------
rem %~dp0 is just the current path of batch locations, its not strictly needed if you have placed the files there anyway, set path for test yourself, file should be self explaining
set "path=%~dp0"
set "file=addons.xml"
rem dont ommit pipe commands, output contain 3 lines, the find command extract unneccesarry stuf
certutil -hashfile "%path%\%file%" md5 | find /i /v "md5" | find /i /v "certutil" > %path%\%file%.md5
rem
rem example generate md5 for %skin_kodirepo_dir%\%skin_name%\%skin_name%-%skin_versionsuffix%.zip
rem certutil -hashfile "%skin_kodirepo_dir%\%skin_name%\%skin_name%-%skin_versionsuffix%.zip" md5 | find /i /v "md5" | find /i /v "certutil" > %skin_kodirepo_dir%\%skin_name%\%skin_name%-%skin_versionsuffix%.zip.md5
rem example generate md5 for %skin_kodirepo_dir%\addons.xml
rem certutil -hashfile "%skin_kodirepo_dir%\addons.xml" md5 | find /i /v "md5" | find /i /v "certutil" > %skin_kodirepo_dir%\addons.xml.md5
Terms the repo itself, it depends and vary a lot
- source (e.g. git hub , git lab)
- provide different folder available / ~ prefered structure
-
So a structure could be
*\repository.name\addons.xml
*\repository.name\addons.xml.md5
*\repository.name\someaddon\addon.xml
*\repository.name\someaddon\someaddon.zip
*\repository.name\someaddon\someaddon.zip.md5
and care about the difference between addons.xml and addon.xml
-
addons.xml - contain all your single addons, to make it avail for your kodi repo
-
addon.xml - belong to a single addons, to make it avail for your kodi repo