somerandomhash Posted February 13, 2009 Report Share Posted February 13, 2009 (edited) Again a very useful site for lots of handy tools that can be run from a usb drive Cat is PortableApps {global_path) is equivilant to {target} and if you reg expressions expers can play with it this would be another handy template. This one gets Mozilla Firefox portable. The good thing about the PA sit is it gets a lot of updates. It also has a very active development community. <?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> <DownloadDate xsi:nil="true" /> <VariableChangeIndicator /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <HttpReferer /> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <VariableType>StartEnd</VariableType> <Regex /> <Url>http://portableapps.com/apps/internet/firefox_portable</Url> <StartText>Download Mozilla Firefox, Portable Edition"><span><strong>Download</StartText> <EndText></strong></EndText> <Name>version</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <Category>PortableApps</Category> <SourceType>FixedUrl</SourceType> </ PreviousLocation> <DeletePreviousFile>false</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <LastUpdated xsi:nil="true" /> <TargetPath>{root_folder}\{category}\{appname:replace: :_}_v{version:replace: :_}.{url:ext}</TargetPath> <FixedDownloadUrl>http://downloads.sourceforge.net/portableapps/Firefox_Portable_{version}_en-us.paf.exe?download</FixedDownloadUrl> <Name>Mozilla Firefox, Portable Edition</Name> </ApplicationJob> </Jobs> P.S all the files are hosted on Sourceforge which 'defaults' to http://downloads.sourceforge.net it would be simple to replace this with your favourite mirror e.g. Heanet etc PA also has a very similar file construction to Filehippo so I would like to see this added as a Feature request, but I will attempt to try this myself via the source. Edited February 13, 2009 by somerandomhash Link to comment Share on other sites More sharing options...
FranciscoR Posted February 13, 2009 Report Share Posted February 13, 2009 (edited) Try this, it's ready to use <?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 /> <CanBeShared>true</CanBeShared> <ShareApplication>false</ShareApplication> <HttpReferer /> <Variables> <item> <key> <string>version</string> </key> <value> <UrlVariable> <VariableType>RegularExpression</VariableType> <Regex>http://downloads\.sourceforge\.net\/portableapps\/.*?_(\d\..+?|\d\w.+?)(?:_en-us|_en){0,1}(?:\.paf\.exe|\.zip)</Regex> <Url><placeholder name="Application Page URL" /></Url> <Name>version</Name> </UrlVariable> </value> </item> <item> <key> <string>app</string> </key> <value> <UrlVariable> <VariableType>RegularExpression</VariableType> <Regex>http://downloads\.sourceforge\.net\/portableapps\/(.+?)(?:\.paf\.exe|\.zip)</Regex> <Url><placeholder name="Application Page URL" /></Url> <Name>app</Name> </UrlVariable> </value> </item> </Variables> <ExecuteCommand /> <Category>Office</Category> <SourceType>FixedUrl</SourceType> <DeletePreviousFile>true</DeletePreviousFile> <Enabled>true</Enabled> <FileHippoId /> <TargetPath>{target}\{category}\</TargetPath> <FixedDownloadUrl>http://downloads.sourceforge.net/portableapps/{app}.paf.exe?download</FixedDownloadUrl> <Name><placeholder name="Application Name" /></Name> </ApplicationJob> </Jobs> Insert App Page URL and App name. App Page URL example: http://portableapps.com/apps/office/openoffice_portable Note: this template works only for this project files hosted at Sourceforge and listed in this page. It will choose any mirror available. For Firefox addons, use one of the templates provided in this forum. Regex was tested against several download url's, retrieving NO errors (28-01-2009). Known limitation: when you insert Nvu page, you will actually download Komposer (tweak regex to download Nvu) because THERE CAN BE ONLY ONE and Komposer is indeed the first (in source); same aplies to apps that provide alternative languages, like this. Enjoy ! =) @CybTekSol: this was the template I was unable to tweak to include everything also listed in here. Edited February 23, 2009 by FranciscoR Link to comment Share on other sites More sharing options...
CybTekSol Posted February 14, 2009 Report Share Posted February 14, 2009 @FranciscoR, Test page... hey we can't get 'em all. BTW... your regex skills have progressed nicely! I like this template better than the two I had developed for PortableApps.com... so I hope you don't mind me reverting to yours! Great Job! 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