_KetarinChocolateyTemplate.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Jobs>
  3. <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  4. <WebsiteUrl />
  5. <UserAgent>chocolatey command line</UserAgent>
  6. <UserNotes />
  7. <LastFileSize>0</LastFileSize>
  8. <LastFileDate xsi:nil="true" />
  9. <IgnoreFileInformation>false</IgnoreFileInformation>
  10. <DownloadBeta>Default</DownloadBeta>
  11. <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
  12. <VariableChangeIndicator />
  13. <HashVariable />
  14. <HashType>None</HashType>
  15. <CanBeShared>true</CanBeShared>
  16. <ShareApplication>false</ShareApplication>
  17. <ExclusiveDownload>false</ExclusiveDownload>
  18. <HttpReferer />
  19. <SetupInstructions />
  20. <Variables>
  21. <item>
  22. <key>
  23. <string>version</string>
  24. </key>
  25. <value>
  26. <UrlVariable>
  27. <RegexRightToLeft>false</RegexRightToLeft>
  28. <VariableType>RegularExpression</VariableType>
  29. <Regex>Last program version.*?([\d\.]+)</Regex>
  30. <Url><placeholder name="Url to search for new version" /></Url>
  31. <Name>version</Name>
  32. </UrlVariable>
  33. </value>
  34. </item>
  35. <item>
  36. <key>
  37. <string>url</string>
  38. </key>
  39. <value>
  40. <UrlVariable>
  41. <RegexRightToLeft>false</RegexRightToLeft>
  42. <VariableType>Textual</VariableType>
  43. <Regex />
  44. <TextualContent>{getUrl}</TextualContent>
  45. <Name>url</Name>
  46. </UrlVariable>
  47. </value>
  48. </item>
  49. <item>
  50. <key>
  51. <string>getUrl</string>
  52. </key>
  53. <value>
  54. <UrlVariable>
  55. <RegexRightToLeft>false</RegexRightToLeft>
  56. <VariableType>RegularExpression</VariableType>
  57. <Regex>[^ "'&lt;&gt;\*]+\.exe</Regex>
  58. <Url><placeholder name="Url to search for new version" /></Url>
  59. <Name>getUrl</Name>
  60. </UrlVariable>
  61. </value>
  62. </item>
  63. <item>
  64. <key>
  65. <string>url64</string>
  66. </key>
  67. <value>
  68. <UrlVariable>
  69. <RegexRightToLeft>false</RegexRightToLeft>
  70. <VariableType>Textual</VariableType>
  71. <Regex />
  72. <TextualContent>{getUrl64}</TextualContent>
  73. <Name>url64</Name>
  74. </UrlVariable>
  75. </value>
  76. </item>
  77. <item>
  78. <key>
  79. <string>getUrl64</string>
  80. </key>
  81. <value>
  82. <UrlVariable>
  83. <RegexRightToLeft>false</RegexRightToLeft>
  84. <VariableType>RegularExpression</VariableType>
  85. <Regex>[^ "'&lt;&gt;\*]+\.exe</Regex>
  86. <Url><placeholder name="Url to search for new version" /></Url>
  87. <Name>getUrl64</Name>
  88. </UrlVariable>
  89. </value>
  90. </item>
  91. </Variables>
  92. <ExecuteCommand />
  93. <ExecutePreCommand />
  94. <ExecuteCommandType>Batch</ExecuteCommandType>
  95. <ExecutePreCommandType>Batch</ExecutePreCommandType>
  96. <Category />
  97. <SourceType>FixedUrl</SourceType>
  98. <DeletePreviousFile>true</DeletePreviousFile>
  99. <Enabled>true</Enabled>
  100. <FileHippoId />
  101. <TargetPath>{saveDir}\{appname}_{version}.{url:ext}</TargetPath>
  102. <FixedDownloadUrl>{url}</FixedDownloadUrl>
  103. <Name><placeholder name="Name of the package (should match the folder under automatic and the nuspec file)." /></Name>
  104. </ApplicationJob>
  105. </Jobs>