mirror of
https://github.com/Cheviiot/Nivora.git
synced 2026-08-03 15:51:12 +00:00
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.
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/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-задач'
|
||||
Reference in New Issue
Block a user