Topic: Minor Templates

Portable Google Chrome Beta (currently updating 1/month)

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
  <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <DownloadBeta>Default</DownloadBeta>
    
    <VariableChangeIndicator>{version}</VariableChangeIndicator>
    <CanBeShared>true</CanBeShared>
    <ShareApplication>false</ShareApplication>
    <ExclusiveDownload>true</ExclusiveDownload>
    <HttpReferer />
    <Variables>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <VariableType>RegularExpression</VariableType>
            <Regex>Portable_Google_Chrome_(\d+?\.\d+?\.\d+?\.\d+?.*?)\.exe(?=")</Regex>
            <Url>http://ftp.hosteurope.de/mirror/stadt-bremerhaven.de/Chrome/?C=M;O=D</Url>
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>app</string>
        </key>
        <value>
          <UrlVariable>
            <VariableType>RegularExpression</VariableType>
            <Regex>(Portable_Google_Chrome_\d+?\.\d+?\.\d+?\.\d+?.*?)\.exe(?=")</Regex>
            <Url>http://ftp.hosteurope.de/mirror/stadt-bremerhaven.de/Chrome/?C=M;O=D</Url>
            <Name>app</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand />
    <ExecutePreCommand />
    <Category>Browsers</Category>
    <SourceType>FixedUrl</SourceType>
    
    <DeletePreviousFile>false</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    
    <TargetPath>{target}\{category}\{appname}_{version}.{url:ext}</TargetPath>
    <FixedDownloadUrl>http://ftp.hosteurope.de/mirror/stadt-bremerhaven.de/Chrome/{app}.exe</FixedDownloadUrl>
    <Name>Chrome</Name>
  </ApplicationJob>
</Jobs>

Firefox codename Shiretoko and Nakomora (bundle)

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
  <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <DownloadBeta>Default</DownloadBeta>
    
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator />
    <CanBeShared>true</CanBeShared>
    <ShareApplication>false</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer />
    <Variables>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>firefox-(\d+[\.\w+]+)(?=\.en-US\.win32\.installer\.exe)</Regex>
            <Url>http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/</Url>
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand />
    <ExecutePreCommand />
    <Category>Internet</Category>
    <SourceType>FixedUrl</SourceType>
    
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    
    <TargetPath>{target}\{category}\Test\{appname}_{version}.{url:ext}</TargetPath>
    <FixedDownloadUrl>http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-{version}.en-US.win32.installer.exe</FixedDownloadUrl>
    <Name>Firefox Nakomora</Name>
  </ApplicationJob>
  <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <DownloadBeta>Default</DownloadBeta>
    
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator />
    <CanBeShared>true</CanBeShared>
    <ShareApplication>false</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer />
    <Variables>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>(?&lt;=http://download.mozilla.org/\?product\=firefox-)(\d+[\.\w+]+)(?=&amp;amp\;)</Regex>
            <Url>http://www.mozilla.com/en-US/firefox/all-beta.html</Url>
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand />
    <ExecutePreCommand />
    <Category>Internet</Category>
    <SourceType>FixedUrl</SourceType>
    
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    
    <TargetPath>{target}\{category}\Test\{appname}_{version}.{url:ext}</TargetPath>
    <FixedDownloadUrl>http://download.mozilla.org/?product=firefox-{version}&amp;os=win&amp;lang=en-US</FixedDownloadUrl>
    <Name>Firefox Shiretoko</Name>
  </ApplicationJob>
</Jobs>

Ketarin Latest Build (incl. Betas)

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
  <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <DownloadBeta>Default</DownloadBeta>
    
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator />
    <CanBeShared>false</CanBeShared>
    <ShareApplication>false</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer />
    <Variables>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>true</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>(?&lt;=Ketarin-)(\d+?(?:\.\d+?)+)(?=\.zip)</Regex>
            <Url>http://ketarin.canneverbe.com/downloads/Ketarin/?C=M;O=A</Url>
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand />
    <ExecutePreCommand />
    <Category>Internet</Category>
    <SourceType>FixedUrl</SourceType>
    
    <DeletePreviousFile>false</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    
    <TargetPath>{target}\{category}\{url:basefile}_{f:dd}-{f:MM}.{url:ext}</TargetPath>
    <FixedDownloadUrl>http://ketarin.canneverbe.com/downloads/Ketarin/Ketarin-{version}.zip</FixedDownloadUrl>
    <Name>Ketarin</Name>
  </ApplicationJob>
</Jobs>

Last edited by FranciscoR (2009-04-18 20:01:18)

Re: Minor Templates

VERY CLEVER FranciscoR! wink Well done! Man... I love templates and Ketarin (of course)!

Re: Minor Templates

@FranciscoR,
I just realized this was posted in the 'General discussion' forum and Flo may want it in the 'Templates forum'. Your thoughts Flo? If so, can you move it?

Re: Minor Templates

I thought about that but for me this is not a template with a capital 'T'. If you want me to move, just say 'when'. wink

Re: Minor Templates

@FranciscoR,
Flo moved it I guess? Just as well, it is worthy of posting as a Template with a capital T. wink