Skip to content

Commit

Permalink
[Misc] Release preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
melianmiko committed Nov 17, 2024
1 parent 566fc32 commit 44c8fbf
Show file tree
Hide file tree
Showing 12 changed files with 738 additions and 774 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v0.15.0
This release introduces compatibility with FeeeBuds 6i and Studio models.
Also, since this version OpenFreebuds can be used in desktop environments
without system tray.

- [Device compatibility] Add HUAWEI FreeBuds 6i compatibility
- [Device compatibility] Add HUAWEI FreeBuds Studio compatibility
- [Feature] ANC & battery available in main window;
- [Feature] "Show main window" action, available in hotkeys, tray icon click and web-server;
- [Feature] Ability to disable background mode & work without system tray, for Linux environments like GNOME;
- [Fix] Flatpak multi-instance detection & "Run at boot" setting.

# v0.14.1
- [Fix] Crash when using with old devices, like 4i / SE

Expand Down
2 changes: 0 additions & 2 deletions debian/source/options
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
tar-ignore = "*venv"
tar-ignore = ".git"
tar-ignore = "accent.json"

Binary file modified docs/app_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/app_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/app_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/preview_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/preview_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,420 changes: 710 additions & 710 deletions openfreebuds_qt/assets/i18n/ru.ts

Large diffs are not rendered by default.

22 changes: 8 additions & 14 deletions openfreebuds_qt/assets/pw.mmk.OpenFreebuds.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,9 @@
Built-in HTTP-server for remote control & scripting;
</li>
<li>
Built-in global hotkeys support (XOrg only, for wayand see FAQ);
Built-in global hotkeys support (Xorg only, for Wayland see FAQ);
</li>
</ul>
<p>
Tested with following devices: HUAWEI FreeBuds 4i / 5i / Pro / Pro 2 / Pro 3 / SE, HUAWEI FreeLace Pro / Pro 2.
</p>
<p>
May also work with newer/older devices in same series.
</p>
</description>

<launchable type="desktop-id">pw.mmk.OpenFreebuds.desktop</launchable>
Expand All @@ -73,23 +67,23 @@
<url type="donation">https://mmk.pw/en/donate/</url>
<url type="contact">https://mmk.pw/mailto/</url>
<url type="faq">https://mmk.pw/en/openfreebuds/help/</url>
<url type="translate">https://mmk.pw/en/openfreebuds/translate/</url>
<!-- Temporary <url type="translate">https://mmk.pw/en/openfreebuds/translate/</url>-->
<url type="contribute">https://github.com/melianmiko/OpenFreebuds</url>
<url type="vcs-browser">https://github.com/melianmiko/OpenFreebuds</url>

<screenshots>
<screenshot type="default" xml:lang="en">
<caption>Tray indicator and context menu with common features</caption>
<image>https://raw.githubusercontent.com/melianmiko/OpenFreebuds/refs/heads/main/docs/preview_0.png</image>
</screenshot>
<screenshot xml:lang="en">
<caption>Device gesture settings (may vary depending on device model)</caption>
<caption>Gesture settings</caption>
<image>https://raw.githubusercontent.com/melianmiko/OpenFreebuds/refs/heads/main/docs/app_0.png</image>
</screenshot>
<screenshot xml:lang="en">
<caption>Application user interface settings</caption>
<caption>Other device settings</caption>
<image>https://raw.githubusercontent.com/melianmiko/OpenFreebuds/refs/heads/main/docs/app_1.png</image>
</screenshot>
<screenshot xml:lang="en">
<caption>About dialog</caption>
<image>https://raw.githubusercontent.com/melianmiko/OpenFreebuds/refs/heads/main/docs/app_2.png</image>
</screenshot>
</screenshots>
<branding>
<color type="primary" scheme_preference="light">#8ff0a4</color>
Expand Down
9 changes: 3 additions & 6 deletions scripts/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,12 @@ def bump_debian(path: Path):
def bump_metainfo(line: str):
if not line.strip().startswith('<releases>'):
return line
non_nerd_changelog = CHANGELOG[:CHANGELOG.index('')]
new_data = [
line,
f' <release version="{NEW_VERSION}" date="{date.today()}">',
f' <url type="details">{BASE_CHANGELOG_URL}#v{NEW_VERSION}</url>',
f' <description>',
f' <ul>',
*[f" <li>{escape(line[2:])}</li>" for line in CHANGELOG],
f' </ul>',
f' </description>',
f' <description>{" ".join(" ".join(non_nerd_changelog).split(" "))}</description>',
f' </release>',
]

Expand Down Expand Up @@ -170,7 +167,7 @@ def main():
if not reach_section:
reach_section = changelog_line.startswith(f"# v{NEW_VERSION}")
continue
if changelog_line.strip() == "" or changelog_line[0] == "#":
if changelog_line[0] == "#":
break

CHANGELOG.append(changelog_line.strip())
Expand Down
38 changes: 5 additions & 33 deletions scripts/sync_translations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,13 @@ PATH=/usr/lib/qt6/bin:$PATH

cd "$(dirname "$0")"/../openfreebuds_qt

# Sync base ts-file
echo "-- Base locale update"
pylupdate6 --no-obsolete --ts ./assets/i18n/en.ts .

# Sync new *.po-files
for po_file in ./assets/i18n/*.po
do
[ -f "$po_file" ] || break
locale=`basename ${po_file%.*}`
if ! [ -f ./assets/i18n/$locale.ts ]
then
echo "-- Import $locale from PO-file"
lconvert ./assets/i18n/$locale.po -o ./assets/i18n/$locale.ts
fi
done

# Update exiting translations
for ts_file in ./assets/i18n/*.ts
do
[ -f "$ts_file" ] || break
locale=`basename ${ts_file%.*}`
if [ ./assets/i18n/$locale.po -nt ./assets/i18n/$locale.ts ]
then
echo "-- Update $locale from PO-file"
lconvert ./assets/i18n/$locale.po -o ./assets/i18n/$locale.ts
else
# Create *.po-file for accent
echo "-- Update $locale"
lconvert ./assets/i18n/$locale.ts -o ./assets/i18n/$locale.po

if [[ "$locale" == "en" ]]
then
python ../scripts/sync_translations_fill_msgstr.py ./assets/i18n/$locale.po
fi
fi

[[ "$locale" == "en" ]] || pylupdate6 --no-obsolete --ts $ts_file .
pylupdate6 \
--no-obsolete \
--exclude scripts \
--exclude debian \
--ts $ts_file .
done
9 changes: 0 additions & 9 deletions scripts/sync_translations_fill_msgstr.py

This file was deleted.

0 comments on commit 44c8fbf

Please sign in to comment.