Maintenance: Update release script to update publiccode.yml.

This commit is contained in:
Florian Liebe
2026-01-19 10:31:47 +01:00
parent cda253dfb1
commit ba6effc07e
3 changed files with 84 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
require 'yaml'
if !Gem::Version.correct?(ARGV[0])
puts 'Usage: update_files.rb new.semantic.version'
exit 1
@@ -28,3 +30,26 @@ changelog = <<~CHANGELOG
CHANGELOG
Rails.root.join('CHANGELOG.md').write(changelog)
# Update publiccode.yml
publiccode_path = Rails.root.join('publiccode.yml')
publiccode_content = File.read(publiccode_path)
# Update version and release date
publiccode_content.gsub!(%r{^softwareVersion: .*$}, "softwareVersion: #{new_version}")
publiccode_content.gsub!(%r{^releaseDate: .*$}, "releaseDate: '#{Time.zone.today.strftime('%Y-%m-%d')}'")
# Update available languages from locales.yml
locales_config = YAML.load_file(Rails.root.join('config/locales.yml'))
available_languages = locales_config
.select { |locale| locale['active'] }
.map { |locale| locale['alias'].presence || locale['locale'].split('-').first.downcase }
.uniq
.sort
# Format languages as YAML list and replace in content
languages_yaml = available_languages.map { |lang| " - #{lang}" }.join("\n")
publiccode_content.gsub!(%r{ availableLanguages:\n(?: - .*\n)+}, " availableLanguages:\n#{languages_yaml}\n")
# Write back to file
File.write(publiccode_path, publiccode_content)

19
logo.svg Normal file
View File

@@ -0,0 +1,19 @@
<svg width="42" height="38" viewBox="0 0 42 38" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M28.7946 13.1578L38.7344 10.1067L32.8468 13.849L28.7946 13.1578Z" fill="#CA2317"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M34.8491 20.5948L32.8468 13.849L38.7344 10.1067L36.9705 16.1612L34.8491 20.5948Z" fill="#E84F83"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M41.6424 8.27124L40.5459 10.1067L36.9705 16.1611L38.7344 10.1067L41.6424 8.27124Z" fill="#CA2317"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M42 9.46313L39.235 12.2997L40.546 10.1067L42 9.46313Z" fill="#E54011"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M29.3905 11.2747L37.5188 10.4642L31.8695 12.2043L29.3905 11.2747Z" fill="#E54011"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M29.7003 15.8751L32.8467 13.849L34.849 20.5947L33.8002 22.74L29.7003 15.8751Z" fill="#CA2317"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.0045 23.8842L23.5028 5.53003L33.8002 22.74L25.0045 23.8842Z" fill="#B7DFF2"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.7378 28.5801L25.0045 23.8843L33.8002 22.7401L20.7378 28.5801Z" fill="#E54011"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 37.8048L20.7378 28.5801L25.0045 23.8843L18.235 23.193L0 37.8048Z" fill="#FFCE33"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.786621 30.2724L11.4416 28.6515L14.7548 25.9818L13.134 25.2667L0.786621 30.2724Z" fill="#D6B12D"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.62427 21.572L14.7548 25.9818L18.2349 23.1929L4.62427 21.572Z" fill="#FFDE85"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.7401 12.1804L21.4529 12.3949L18.235 23.1929L21.7151 20.9999L22.7401 12.1804Z" fill="#009EC6"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.6231 19.1407L21.7151 21L23.5028 5.53003L24.6231 19.1407Z" fill="#5EAFCE"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.6345 13.6345L22.7401 12.1805L23.1453 8.58118L13.6345 13.6345Z" fill="#045972"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.6572 5.19641L20.571 9.96372L23.1453 8.5812L23.2168 8.08063L12.6572 5.19641Z" fill="#5A8591"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.2065 0L21.4052 7.58002L23.2168 8.08059L23.5028 5.53008L14.2065 0Z" fill="#009EC6"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.235 23.193L24.6232 19.1407L25.0046 23.8842L18.235 23.193Z" fill="#F39804"/>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -10,6 +10,7 @@ categories:
releaseDate: '2025-09-24'
softwareVersion: 6.5.2
softwareType: standalone/web
logo: 'logo.svg'
platforms:
- web
developmentStatus: stable
@@ -29,8 +30,47 @@ legal:
localisation:
localisationReady: true
availableLanguages:
- ar
- bg
- ca
- cs
- da
- de
- el
- en
- es
- et
- fa
- fi
- fr
- he
- hi
- hr
- hu
- id
- is
- it
- ja
- ko
- lt
- lv
- ms
- nb
- nl
- pl
- pt
- ro
- ru
- rw
- sk
- sl
- sr
- sv
- th
- tr
- uk
- vi
- zh
description:
de:
genericName: Helpdesk-Software