Support webex updates
This commit is contained in:
parent
f4ebad4394
commit
5b26e7dca8
22
Rakefile
22
Rakefile
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
require 'digest/md5'
|
require 'digest/md5'
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
|
require 'open3'
|
||||||
require_relative 'config/config'
|
require_relative 'config/config'
|
||||||
require_relative 'lib/package'
|
require_relative 'lib/package'
|
||||||
require_relative 'lib/download'
|
require_relative 'lib/download'
|
||||||
@ -105,3 +106,24 @@ task :ioncube do
|
|||||||
update_slackbuild_version 'development/ioncube-loader', package.version
|
update_slackbuild_version 'development/ioncube-loader', package.version
|
||||||
commit 'development/ioncube-loader', package.version
|
commit 'development/ioncube-loader', package.version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :webex do
|
||||||
|
tarball = 'slackbuilds/network/webex/Webex.deb'
|
||||||
|
uri = 'https://binaries.webex.com/WebexDesktop-Ubuntu-Official-Package/Webex.deb'
|
||||||
|
checksum = 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
|
||||||
|
Loading…
Reference in New Issue
Block a user