Changes

Jump to: navigation, search

Torrent Distribution with WPKG

1,179 bytes added, 21:36, 9 July 2013
no edit summary
I have a startup script for this but I have to sanitize it.
 
== Testing ==
 
A simple batch file for testing.
 
<pre>
@echo off
set ARIA=c:\REDACT\aria2\amd64\aria2c.exe
set REPO=\\REDACT\sdp$
 
set PKG_PATH=MATLAB\R2013a
set TORRENT=%REPO%\torrents\Matlab#R2013a.x64.torrent
 
set DEST=c:\REDACT\local-cache\%PKG_PATH%
 
if "%1"=="seed" (
start /min %~dp0torrent.cmd "%TORRENT%" "%DEST%" seed
) else (
rmdir /s /q %DEST%
%~dp0torrent.cmd "%TORRENT%" "%DEST%"
)
</pre>
 
== Example WPKG ==
 
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<packages>
 
<package
id="torrent_test"
name="Torrent download tester"
revision="2013060605"
reboot="false"
priority="0">
<variable name="PKG_PATH" value="Adobe_Creative_Suite\CS5.5\CS5_5_DP_64" />
<variable name="LOG_PREFIX" value="%LOGPATH%\%LOGPREFIX%-torrent" />
<variable name="LOG_TORRENT" value="%LOG_PREFIX%-dl.log" />
<check type="file" condition="exists" path="%LOCALCACHE%\%PKG_PATH%" />
<install cmd='cmd /c rmdir /s /q %LOCALCACHE%\%PKG_PATH%' />
<install cmd='%TORRENTCMD% "%SDP%\torrents\Adobe_Creative_Suite#CS5.5#CS5_5_DP_64.torrent" "%LOCALCACHE%\%PKG_PATH%" > %LOG_TORRENT%' />
<upgrade include='install' />
</package>
 
</packages>
</pre>
9
edits

Navigation menu