Update jitsi-meet-desktop automatically

This commit is contained in:
Eugen Wissner 2023-07-20 07:50:00 +02:00
parent bed90e3e02
commit 868f6c36a5
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0

View File

@ -150,6 +150,20 @@ module SlackBuilder
commit 'development/composer', version commit 'development/composer', version
end end
end end
class JitsiMeetDesktop < Updater
def update(version)
package = Package.new 'network/jitsi-meet-desktop',
version: version,
homepage: 'https://jitsi.org/'
uri = "https://github.com/jitsi/jitsi-meet-electron/releases/download/v#{version}/jitsi-meet-x86_64.AppImage"
checksum = SlackBuilder.download URI(uri), 'slackbuilds/network/jitsi-meet-desktop/jitsi-meet-x86_64.AppImage'
write_info package, downloads: [Download.new(uri, checksum.hexdigest, is64: true)]
update_slackbuild_version 'network/jitsi-meet-desktop', version
commit 'network/jitsi-meet-desktop', version
end
end
end end
php_transform = proc do |version| php_transform = proc do |version|
@ -166,7 +180,10 @@ AUTO_UPDATABLE = {
'php82' => [SlackBuilder::GitHub.new('php', 'php-src', php_transform)], 'php82' => [SlackBuilder::GitHub.new('php', 'php-src', php_transform)],
'rdiff-backup' => [SlackBuilder::GitHub.new('rdiff-backup', 'rdiff-backup', rdiff_backup_transform)], 'rdiff-backup' => [SlackBuilder::GitHub.new('rdiff-backup', 'rdiff-backup', rdiff_backup_transform)],
'librsync' => [SlackBuilder::GitHub.new('librsync', 'librsync')], 'librsync' => [SlackBuilder::GitHub.new('librsync', 'librsync')],
'jitsi-meet-desktop' => [SlackBuilder::GitHub.new('jitsi', 'jitsi-meet-electron')], 'jitsi-meet-desktop' => [
SlackBuilder::GitHub.new('jitsi', 'jitsi-meet-electron'),
SlackBuilder::JitsiMeetDesktop.new
],
'dmd' => [SlackBuilder::LatestText.new('https://downloads.dlang.org/releases/LATEST')] 'dmd' => [SlackBuilder::LatestText.new('https://downloads.dlang.org/releases/LATEST')]
}.freeze }.freeze