github Leadaxe/singbox-launcher v0.2.0
singbox-launcher v0.2.0 (Windows)

latest releases: v.dev.develop.8642b78, v.dev.save_state.986e6ce, v.dev.save_state.55226ad...
2 months ago

Release v0.2.0

🇷🇺 Показать описание на русском # Release v0.2.0 — Config Wizard и еще ништяки

Главные нововведения

Config Wizard — настройка в три клика

Полноценный мастер настройки, который превращает часовой мануальный редактинг JSON в 30-секундную операцию.

  • Многостраничный интерфейс с шагами
  • Вкладка VLESS-подписки: вставляешь ссылки → проверка связи → автоматический парсинг
  • Вкладка Правила: визуальный выбор нужных из набора правил (можно и свои шаблоны писать!)
  • Вкладка Предпросмотр: видишь готовый конфиг в реальном времени
  • Автоматическая загрузка текущего конфига и умные значения по умолчанию
  • Поддержка шаблонов (config_template.json)
  • Валидация JSONC (с комментариями) перед сохранением
  • Автоматический бэкап старого конфига с нумерацией
  • Кнопки «Назад / Далее» + автозакрытие после сохранения
  • Выбор нужной группы прямо в трее
  • Полная интеграция с системным треем

UI/UX — теперь красиво и удобно

  • Состояние кнопки Start/Stop синхронизируется между дашбордом и треем
  • Счётчик авторестартов [restart 2/3] + автоматический сброс через 3 минуты стабильной работы
  • Синие кнопки запуска/остановки (по важности)
  • Исправлены все проблемы с прогресс-барами и плейсхолдерами при скачивании sing-box и wintun
  • Визуальные улучшения: отступы, выравнивание, иконки-подсказки у правил

Технические улучшения и надёжность

  • Умный авторестарт: больше нет ложных «процесс уже запущен», добавлена пауза 2 секунды перед перезапуском
  • Централизованное управление состоянием загрузок и UI
  • Полная поддержка JSONC + новые директивы в шаблонах (@SelectableRule, @label, @description, @default)
  • Сохранение порядка секций при генерации конфига
  • Улучшенная обработка ошибок и сообщения пользователю

Исправленные баги

  • Синхронизация состояний кнопок и статусов между окнами и треем
  • Прогресс-бары больше не «прыгают»
  • Исправлено мерцание плейсхолдеров
  • Статус конфига теперь обновляется сразу после сохранения через Wizard
  • Убраны ложные ошибки API при старте сервиса
  • Много мелких визуальных и логических багов

Breaking Changes

Никаких! Полная обратная совместимость с конфигами v0.1.x

Миграция

  • Старые config.json продолжают работать без изменений
  • Для полной работы Wizard нужен файл config_template.json (если его нет — появится кнопка скачивания в дашборде)

Major Features

🎯 Config Wizard

A comprehensive configuration wizard that simplifies the setup process for new users and makes configuration management more intuitive.

Features:

  • Multi-tab interface with step-by-step configuration:
    • VLESS Sources & ParserConfig: Input subscription URLs, validate connectivity, and configure parser settings
    • Rules: Select and configure routing rules with visual interface
    • Preview: Real-time preview of generated configuration before saving
  • Smart defaults: Automatically loads existing configuration if available
  • Template support: Uses config_template.json for default rules and structure
  • JSON validation: Validates configuration before saving (supports JSONC with comments)
  • Automatic backup: Creates numbered backups (config-old.json, config-old-1.json, etc.) before overwriting
  • Navigation controls: Prev/Next buttons for easy navigation between tabs
  • Auto-close: Wizard automatically closes after successful save

🔄 Auto-loaders

Automatic proxy loading functionality that keeps your proxy list up-to-date.

Features:

  • Automatic loading of proxies from Clash API
  • Configurable proxy group selection
  • Seamless integration with system tray menu

UI/UX Improvements

Core Dashboard

  • Status synchronization: Start/Stop button states are now synchronized between Core Dashboard and system tray
  • Restart counter display: Shows restart attempt counter (e.g., [restart 2/3]) in Core Status
  • Auto-reset indicator: Counter automatically resets and updates UI after 3 minutes of stable operation
  • Button styling: Start/Stop buttons are now blue (high importance) when available
  • Improved spacing: Added spacing before Exit button for better visual hierarchy
  • Download progress: Fixed progress bar width consistency for sing-box and wintun downloads
  • Placeholder management: Smart placeholder system ensures consistent UI alignment during downloads

Config Wizard UI

  • Default rule support: Rules can be marked with @default directive to be enabled by default
  • Final outbound selector: Placed on the same line as label for better space utilization
  • Rule descriptions: Info buttons with tooltips for rule descriptions
  • Scrollable rule list: Rules section takes up 70% of window height with scrolling
  • Real-time preview: Preview tab automatically updates as you configure rules

Technical Improvements

Auto-restart Logic

  • Skip process check: Auto-restart attempts no longer show false "process already running" warnings
  • 2-second delay: Added 2-second delay before auto-restart to allow proper cleanup
  • Stability threshold: Counter resets after 180 seconds (3 minutes) of stable operation
  • UI updates: Status automatically updates when restart counter resets

State Management

  • Centralized download state: Unified functions setWintunState() and setSingboxState() for consistent state management
  • Placeholder logic: Centralized placeholder visibility logic ensures consistent UI behavior
  • Status callbacks: Dedicated callbacks for config status and core status updates

Configuration Management

  • Template loader: Enhanced template parsing with support for:
    • @SelectableRule blocks with @label, @description, and @default directives
    • @PARSER_OUTBOUNDS_BLOCK marker for dynamic outbound insertion
    • Order preservation for configuration sections
  • JSONC support: Full support for JSON with comments in configuration files
  • Parser config extraction: Improved extraction of parser configuration from existing configs

Code Quality

  • Reduced code duplication: Eliminated duplicate code in 10+ places through centralized functions
  • Improved maintainability: Better separation of concerns and cleaner code structure
  • Enhanced error handling: Better error messages and validation

Bug Fixes

  • Fixed inconsistent button states between Core Dashboard and system tray
  • Fixed progress bar width issues during downloads
  • Fixed alignment issues in status rows
  • Fixed config status not updating after saving from wizard
  • Fixed API state not resetting on service start
  • Fixed Clash API tab being accessible when core is not running
  • Fixed placeholder visibility logic causing UI inconsistencies

Breaking Changes

None. This release is backward compatible with v0.1.x configurations.

Migration Notes

  • Existing config.json files will continue to work without modification
  • New config_template.json file is required for the wizard to function fully
  • If template is missing, a download button appears on Core Dashboard

Screenshots

image image image image

Don't miss a new singbox-launcher release

NewReleases is sending notifications on new releases.