Files
Nivora/tests/test_yandex_browser.sh
T
Александр f405ae2bcf feat: create autonomous Nivora package repository
Maintain a validated cross-distribution package catalog.
Automate upstream updates, isolated builds, diagnostics, and direct publication.
Build the official GitHub Desktop sources for Linux with working OAuth.
2026-07-25 00:49:32 +10:00

24 lines
913 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
repo_root="$(cd "${script_dir}/.." && pwd)"
recipe="${repo_root}/yandex-browser-stable/Staplerfile"
postinstall="${repo_root}/yandex-browser-stable/postinstall.sh"
grep -Fq 'https://repo.yandex.ru/yandex-browser/deb/' "$recipe"
grep -Fq '/usr/bin/yandex-browser-stable' "$recipe"
grep -Fq 'extracted/usr/share/applications' "$recipe"
grep -Fq 'compatibility_desktop=' "$recipe"
grep -Fq 'canonical_desktop=' "$recipe"
grep -Fq "sed -i '/^NoDisplay=true\$/d'" "$recipe"
grep -Fq "sed -i '/^\\[Desktop Entry\\]\$/a NoDisplay=true'" "$recipe"
grep -Fq 'update_codecs' "$postinstall"
if grep -Eq '/etc/(cron|xdg/autostart)' "$recipe"; then
echo 'Yandex Browser recipe must not package upstream auto-update hooks' >&2
exit 1
fi
echo 'OK: Yandex Browser управляется Stapler без upstream cron-задач'