Skip to content

Commit

Permalink
Add release notes, NEWS file, automatic metainfo update
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Feb 10, 2021
1 parent 51d0f8b commit cfdd9da
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 8 deletions.
31 changes: 31 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Version 1.9.3
~~~~~~~~~~~~~
Released: 2019-05-04

Bugfixes:
* Fixes a problem with the session sidebar getting out of sync
after having deleted a session. See issues #1680, #1637 and #1699.

Version 1.9.1
~~~~~~~~~~~~~
Released: 2019-03-17

Bugfixes:
* Remove app menu for gnome 3.32
* Update icon
* Minor fixes

Version 1.8.9
~~~~~~~~~~~~~
Released: 2019-01-06

Bugfixes:
* Small release to update localizations
* Update to GtkD 3.8.5 to fix library name in GtkD.

Version 1.8.7
~~~~~~~~~~~~~
Released: 2019-01-03

Notes:
* Some new features and bug fixes.
42 changes: 42 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Tilix Release Notes
===================

1. Ensure `master` branch is up to date (`git pull`)

2. Manually write NEWS entries for Tilix in the same format as usual.

`git shortlog 1.9.3.. | grep -i -v trivial | grep -v Merge > NEWS.new`

```
Version 1.9.4
~~~~~~~~~~~~~~
Released: 2021-xx-xx
Notes:
Features:
Bugfixes:
```

3. Run `extract-strings.sh` script

4. Commit l10n changes to Git

5. Commit NEWS and other changes to Git, tag release:
```
git commit -a -m "Release version 1.9.4"
git tag -s -f -m "Release 1.9.4" 1.9.4 <gpg password>
git push --tags
git push
```

6. Make release for the new tag in GitHub

7. Do post-release version bump in `meson.build`, `source/gx/tilix/constants.d` and `RELEASE.md`

8. Commit trivial changes:
```
git commit -a -m "trivial: post release version bump"
git push
```
16 changes: 12 additions & 4 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,26 @@ if desktop_file_validate.found()
)
endif

# Merge release information into MetaInfo file
tilix_metainfo_name = '@[email protected]'.format(project_id)
appstreamcli = find_program('appstreamcli')
metainfo_with_releases = custom_target('metainfo-news-merge',
input : ['../NEWS', 'metainfo/@[email protected]'.format(tilix_metainfo_name)],
output : ['untranslated-@[email protected]'.format(project_id)],
command : [appstreamcli, 'news-to-metainfo', '--limit=6', '@INPUT0@', '@INPUT1@', '@OUTPUT@']
)

# Install the MetaInfo file
metainfo_file = i18n.merge_file(
'@[email protected]'.format(project_id),
output: '@BASENAME@',
input: 'metainfo/@[email protected]'.format(project_id),
tilix_metainfo_name,
output: tilix_metainfo_name,
input: metainfo_with_releases,
po_dir: meson.source_root() / 'po',
install: true,
install_dir: datadir / 'metainfo'
)

# Validate MetaInfo file
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test (
'Validate metainfo file',
Expand Down
2 changes: 1 addition & 1 deletion data/metainfo/com.gexperts.Tilix.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

<translation type="gettext">tilix</translation>
<launchable type="desktop-id">com.gexperts.Tilix.desktop</launchable>
<developer_name>Gerald Nunn</developer_name>
<developer_name its:localeFilterType="exclude">Gerald Nunn</developer_name>

<provides>
<binary>tilix</binary>
Expand Down
13 changes: 10 additions & 3 deletions extract-strings.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
set -e

DOMAIN=tilix
BASEDIR=$(dirname $0)
OUTPUT_FILE=${BASEDIR}/po/${DOMAIN}.pot
Expand Down Expand Up @@ -41,22 +43,27 @@ xgettext \
--language=Desktop \
${BASEDIR}/data/pkg/desktop/com.gexperts.Tilix.desktop.in

TMP_METAINFO_FILE=${BASEDIR}/data/metainfo/com.gexperts.Tilix.appdata.xml.rel.in
appstreamcli news-to-metainfo ${BASEDIR}/NEWS \
${BASEDIR}/data/metainfo/com.gexperts.Tilix.appdata.xml.in \
${TMP_METAINFO_FILE}
xgettext \
--join-existing \
--output $OUTPUT_FILE \
--default-domain=$DOMAIN \
--package-name=$DOMAIN \
--directory=$BASEDIR \
--foreign-user \
--language=metainfo \
${BASEDIR}/data/appdata/com.gexperts.Tilix.appdata.xml.in
--language=appdata \
${TMP_METAINFO_FILE}
rm -f ${TMP_METAINFO_FILE}

# Merge the messages with existing po files
echo "Merging with existing translations... "
for file in ${BASEDIR}/po/*.po
do
echo -n $file
msgmerge --update $file $OUTPUT_FILE
msgmerge -F --update $file $OUTPUT_FILE
done

echo "Updating LINGUAS file..."
Expand Down

0 comments on commit cfdd9da

Please sign in to comment.