Allow looking on the text page for the latest version
This commit is contained in:
21
Rakefile
21
Rakefile
@ -43,27 +43,6 @@ task :hhvm, [:version] do |_, arguments|
|
||||
update_slackbuild_version 'development/hhvm', package.version
|
||||
end
|
||||
|
||||
task :webex do
|
||||
tarball = 'slackbuilds/network/webex/Webex.deb'
|
||||
uri = 'https://binaries.webex.com/WebexDesktop-Ubuntu-Official-Package/Webex.deb'
|
||||
checksum = SlackBuilder.download URI(uri), tarball
|
||||
|
||||
last_stdout, = Open3.pipeline_r ['ar', 'p', tarball, 'control.tar.gz'], ['tar', 'zxO', './control']
|
||||
version = last_stdout.read.lines
|
||||
.find { |line| line.start_with? 'Version: ' }
|
||||
.split.last
|
||||
|
||||
package = Package.new 'network/webex',
|
||||
version: version,
|
||||
homepage: 'https://www.webex.com'
|
||||
|
||||
write_info package,
|
||||
downloads: [Download.new(uri, checksum, is64: true)]
|
||||
|
||||
update_slackbuild_version 'network/webex', package.version
|
||||
commit 'network/webex', package.version
|
||||
end
|
||||
|
||||
AUTO_UPDATABLE = {
|
||||
'dmd' => [SlackBuilder::LatestText.new('https://downloads.dlang.org/releases/LATEST')]
|
||||
}.freeze
|
||||
|
Reference in New Issue
Block a user