shawn Posted August 31, 2011 Report Share Posted August 31, 2011 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> Link to comment Share on other sites More sharing options...
Etz Posted February 9, 2013 Report Share Posted February 9, 2013 Works fine for 6 apps, that I use...anyway thx for sharing Link to comment Share on other sites More sharing options...
BestiaPL Posted February 20, 2013 Report Share Posted February 20, 2013 I can't import this template - I've got error: --------------------------- Failed to import the file: Name cannot start from sign ']' and hex value 0x5D. Row 56, pos. 81. --------------------------- I'm trying to automate get SQLyog Community (both 32 and 64-bit for Win) - link: http://code.google.c.../downloads/list Link to comment Share on other sites More sharing options...
shawn Posted February 21, 2013 Author Report Share Posted February 21, 2013 Make sure you paste it into notepad or something else that doesn't support the embedded HTML. Link to comment Share on other sites More sharing options...
BestiaPL Posted February 28, 2013 Report Share Posted February 28, 2013 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 Link to comment Share on other sites More sharing options...
shawn Posted February 28, 2013 Author Report Share Posted February 28, 2013 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. Link to comment Share on other sites More sharing options...
BestiaPL Posted March 3, 2013 Report Share Posted March 3, 2013 Big thanks Everything works fine. Once again - thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now