Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rustymyers/98f0298643caa2b501f3aaff45abe1e7 to your computer and use it in GitHub Desktop.
Save rustymyers/98f0298643caa2b501f3aaff45abe1e7 to your computer and use it in GitHub Desktop.
inprogress-Synfig.download.recipe
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>Download latest Synfig dmg.</string>
<key>Identifier</key>
<string>com.github.rustymyers.download.Synfig</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>Synfig</string>
<key>SEARCH_URL</key>
<string>http://www.fosshub.com/Synfig.html</string>
<key>SEARCH_PATTERN</key>
<string>\/Synfig.html.(synfigstudio-([0-9].[0-9].[0-9]))\.dmg</string>
<key>USER_AGENT</key>
<string>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.28.10 (KHTML, like Gecko) Version/6.0.3 Safari/536.28.10</string>
</dict>
<key>MinimumVersion</key>
<string>0.2.9</string>
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>URLTextSearcher</string>
<key>Arguments</key>
<dict>
<key>url</key>
<string>http://www.fosshub.com/Synfig.html</string>
<key>re_pattern</key>
<string>%SEARCH_PATTERN%</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>URLDownloader</string>
<key>Arguments</key>
<dict>
<key>url</key>
<string>http://www.fosshub.com/%match%</string>
<key>request_headers</key>
<dict>
<key>user-agent</key>
<string>%USER_AGENT%</string>
</dict>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment