github sleep3r/mtproto.zig v0.19.0

latest releases: v1.15.1, v1.15.0, v1.14.1...
4 months ago

🇷🇺 Что нового (RU)

Что решает этот релиз

• В дашборде теперь отображается версия прокси — можно визуально убедиться, что обновление прошло.
• Исправлена ошибка, из-за которой release-please не обновлял версию в бинарнике.
• Повторный деплой дашборда больше не падает с ошибкой uv venv creation failed.

Что изменено

Версия в хедере дашборда (#190, #191)

  • В API-ответ /api/stats добавлено поле proxy_version.
  • Сервер определяет версию из mtproto-proxy --version или парсит version.zig (кэш 5 минут).
  • В хедере дашборда рядом с названием появился pill-бейдж v0.19.0 в стиле Zig-акцента.

Фикс version.zig / release-please

  • version.zig не обновлялся при релизах — release-please-config.json указывал на src/main.zig и src/ctl/main.zig, которые не содержат маркер x-release-please-version.
  • Теперь extra-files указывает на src/version.zig, где реально находится маркер. Следующие релизы будут обновлять версию автоматически.

Фикс повторного деплоя дашборда

  • make deploy выполняет chown mtproto:mtproto на /opt/mtproto-proxy/, включая .venv. При следующем деплое uv venv (от root) не мог перезаписать каталог с другим владельцем.
  • Теперь dashboard.zig делает rm -rf .venv перед uv venv, что решает проблему.

Tip

Версия прокси теперь видна сразу в хедере дашборда — не нужно лезть в логи или SSH, чтобы проверить обновление.


🇬🇧 Release notes (EN)

What this release addresses

• The dashboard now shows the proxy version — you can visually confirm that an update was applied.
• Fixed a bug where release-please was not updating the version in the binary.
• Repeated dashboard deploys no longer fail with uv venv creation failed.

What changed

Version badge in dashboard header (#190, #191)

  • Added proxy_version field to the /api/stats response.
  • The server detects the version from mtproto-proxy --version or by parsing version.zig (cached for 5 minutes).
  • A pill badge v0.19.0 now appears next to the title in the dashboard header, styled with the Zig accent color.

version.zig / release-please fix

  • version.zig was not being updated on releases — release-please-config.json pointed at src/main.zig and src/ctl/main.zig, which do not contain the x-release-please-version marker.
  • extra-files now points to src/version.zig where the marker actually lives. Future releases will bump the version automatically.

Fix repeated dashboard deploy failure

  • make deploy runs chown mtproto:mtproto on /opt/mtproto-proxy/, including .venv. On the next deploy, uv venv (running as root) could not overwrite the directory owned by a different user.
  • dashboard.zig now runs rm -rf .venv before uv venv, fixing the ownership mismatch.

Tip

The proxy version is now visible right in the dashboard header — no need to SSH in or check logs to verify an update.


Changelog

  • feat(dashboard): show proxy version in header (#191, closes #190) (99b5d7d)

Don't miss a new mtproto.zig release

NewReleases is sending notifications on new releases.