Jump to content
Ketarin forum
shawn

Google Code

Recommended Posts

This is my first try at a Google Code template. Works for me, but it hasn't been exhaustively tested. Please let me know how it works for you.

 

 

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="debb1deb-1024-1975-abcd-aa0000000007" >
   <Name><placeholder name="Name?" value="" /></Name>
   <Category><placeholder name="Category?" value="Web" /></Category>
   <SourceType>FixedUrl</SourceType>
   <DeletePreviousFile><placeholder name="Delete Previous Version?" value="true" options="false|true" /></DeletePreviousFile>
   <WebsiteUrl></WebsiteUrl>
   <UserNotes />
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator>version</VariableChangeIndicator>
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>tag</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent><placeholder name="What is the tag from the URL at code.google.com?" value="" /></TextualContent>
           <Name>tag</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>swebsite</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>http://code.google.com/p/{tag}/</TextualContent>
           <Name>swebsite</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>schangelog</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex><link rel="alternate" type="text/html" href="([^"]+)" /></Regex>
           <Url>http://code.google.com/feeds/p/{tag}/downloads/basic</Url>
           <TextualContent />
           <Name>schangelog</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>Version ([\d\.]+)</Regex>
           <Url>http://code.google.com/feeds/p/{tag}/downloads/basic</Url>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>sdownload</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>generateDownloadEvent[^"]+"[\s\r\n\t]*href="([^"]+)"</Regex>
           <Url>{schangelog}</Url>
           <Name>sdownload</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>snotes</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <Name>snotes</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>spc</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>gcode</TextualContent>
           <Name>spc</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <ExecutePreCommand />
   <Enabled>true</Enabled>
   <FileHippoId />
   <TargetPath>.\{category}\{appname:regexreplace:([\s\t\r\n\-\\&]+):_}-{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http:{sdownload}</FixedDownloadUrl>
 </ApplicationJob>
</Jobs>

Share this post


Link to post
Share on other sites

I'm sure - i've pasted into notepad, notepad++ also into Far Manager editor (my favorite) - in all cases there was an error when opening XML file.

Could you check it? Or make XML for SQLyog 32 and 64-bit :)

Share this post


Link to post
Share on other sites

This template won't work for SQLyog. It's a start, but SQLyog has a variety of different downloads and this template is intended only for projects that have one release. You can use the following to get the x86 version of SQLyog:

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="9312f165-9883-4647-bf8b-95dd4e1738cf">
   <Name>SQLyog x86</Name>
   <Category>Web</Category>
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <VariableChangeIndicator>version</VariableChangeIndicator>
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <Variables>
  <item>
    <key>
	  <string>tag</string>
    </key>
    <value>
	  <UrlVariable>
	    <RegexRightToLeft>false</RegexRightToLeft>
	    <VariableType>Textual</VariableType>
	    <Regex />
	    <TextualContent>sqlyog</TextualContent>
	    <Name>tag</Name>
	  </UrlVariable>
    </value>
  </item>
  <item>
    <key>
	  <string>swebsite</string>
    </key>
    <value>
	  <UrlVariable>
	    <RegexRightToLeft>false</RegexRightToLeft>
	    <VariableType>Textual</VariableType>
	    <TextualContent>http://code.google.com/p/{tag}/</TextualContent>
	    <Name>swebsite</Name>
	  </UrlVariable>
    </value>
  </item>
  <item>
    <key>
	  <string>schangelog</string>
    </key>
    <value>
	  <UrlVariable>
	    <RegexRightToLeft>false</RegexRightToLeft>
	    <VariableType>Textual</VariableType>
	    <TextualContent>http://code.google.com/p/{tag}/downloads/detail?name={sFilename}</TextualContent>
	    <Name>schangelog</Name>
	  </UrlVariable>
    </value>
  </item>
  <item>
    <key>
	  <string>version</string>
    </key>
    <value>
	  <UrlVariable>
	    <RegexRightToLeft>false</RegexRightToLeft>
	    <VariableType>Textual</VariableType>
	    <TextualContent>{sFilename:regex:-([\d\.\-]+)\.x:1}</TextualContent>
	    <Name>version</Name>
	  </UrlVariable>
    </value>
  </item>
  <item>
    <key>
	  <string>sdownload</string>
    </key>
    <value>
	  <UrlVariable>
	    <RegexRightToLeft>false</RegexRightToLeft>
	    <VariableType>Textual</VariableType>
	    <TextualContent>http://{tag}.googlecode.com/files/{sFilename}</TextualContent>
	    <Name>sdownload</Name>
	  </UrlVariable>
    </value>
  </item>
  <item>
    <key>
	  <string>sFilename</string>
    </key>
    <value>
	  <UrlVariable>
	    <RegexRightToLeft>false</RegexRightToLeft>
	    <VariableType>RegularExpression</VariableType>
	    <Regex>files/([^"]+86Community[^"]+)"</Regex>
	    <Url>http://code.google.com/p/{tag}/downloads/list</Url>
	    <Name>sFilename</Name>
	  </UrlVariable>
    </value>
  </item>
   </Variables>
   <SourceType>FixedUrl</SourceType>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <TargetPath>.\{category}\{appname:regexreplace:([\s\t\r\n\-\\&]+):_}-{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>{sdownload}</FixedDownloadUrl>
 </ApplicationJob>
</Jobs>

 

Change the name and the sFilename pattern to get the 64 bit version or other files from the list.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.