Skip to content

devx v1.9.2 — A new way to update devx

Latest

Choose a tag to compare

@apvcode apvcode released this 07 Nov 10:11

devx 1.9.2

A new way to update devx.

A card with what is new, a live install screen, and a check that the version really exists in npm.
This release also covers 1.9.1, which was published to npm only: GitHub, npm and the repository are on the same version again.

npm install -g termux-dev@1.9.2


English

Highlights

  • A new update screen. /update and the start-up check now show a card in the devx style: the versions, the release date and what is new (the highlights of the release notes, in your interface language). You choose Update now, Later or, at start-up, Skip this version. A skipped version is remembered and not asked about again; a newer one is.
  • The install runs on a live screen. The steps (check the registry, install, check the new version) are shown with a spinner and the time of each, and a bar that fills as they go. When it is done the bar turns green and drains while devx restarts. The animation really moves now: the old install blocked the whole program, so the spinner froze for the entire wait.
  • It installs the version it announced. GitHub knows about a release before npm has the package, and installing latest in that gap "updated" to the old version and called it a success. devx now asks the registry first, installs exactly that version, and reads back which version is installed. If npm does not have it yet, you are told to try again in a few minutes.
  • A failure tells you what to do. The card shows the step that stopped, the end of what the command wrote, "devx keeps running on x.y.z" and the command to run by hand.
  • Better restart. devx starts again with the same arguments and waits for the new process instead of leaving it behind in the background.

Fixed in this release

  • The title of a framed card no longer runs past the screen on a very narrow terminal when the interface language has a long word for it.
  • Update check in /settings keeps working as before; /update always answers (up to date, could not check, or the card).

For people who run devx from a mirror or a git clone

DEVX_UPDATE_PKG_URL and DEVX_UPDATE_RELEASE_URL change where devx looks for the newest version, and DEVX_UPDATE_METHOD=npm or git forces the way it is installed.

Install or update

npm install -g termux-dev@1.9.2

Русский

Главное

  • Новый экран обновления. /update и проверка при запуске теперь показывают карточку в стиле devx: версии, дату выхода и что нового (главное из заметок релиза, на языке интерфейса). Выбор: Обновить сейчас, Позже или, при запуске, Пропустить версию. Пропущенная версия запоминается и больше не предлагается, а более новая предлагается.
  • Установка идёт на живом экране. Шаги (проверка реестра, установка, проверка новой версии) показываются со спиннером и временем каждого, а полоса заполняется по мере работы. Когда всё готово, полоса зеленеет и «сгорает», пока devx перезапускается. Анимация теперь действительно движется: прежняя установка блокировала всю программу, и спиннер замирал на всё время ожидания.
  • Ставится именно та версия, о которой сказали. GitHub узнаёт о релизе раньше, чем в npm появляется пакет, и установка latest в этот промежуток «обновляла» до старой версии и говорила, что всё хорошо. Теперь devx сначала спрашивает реестр, ставит ровно эту версию и читает, какая версия установилась. Если в npm её ещё нет, вам скажут попробовать через пару минут.
  • При ошибке понятно, что делать. Карточка показывает шаг, на котором всё остановилось, конец вывода команды, «devx продолжает работать на x.y.z» и команду для ручного запуска.
  • Перезапуск стал аккуратнее. devx запускается снова с теми же аргументами и ждёт нового процесса, а не оставляет его в фоне.

Исправлено

  • Заголовок карточки в рамке больше не выходит за экран на очень узком терминале, если в языке интерфейса для него длинное слово.
  • Настройка «Проверка обновлений» в /settings работает, как раньше; /update всегда отвечает (версия последняя, не удалось проверить или карточка).

Для тех, кто работает через зеркало или git-клон

DEVX_UPDATE_PKG_URL и DEVX_UPDATE_RELEASE_URL меняют, где devx ищет новую версию, а DEVX_UPDATE_METHOD=npm или git принудительно задаёт способ установки.

Установка и обновление

npm install -g termux-dev@1.9.2