Files
fedora-tools/scripts/build-plasma-always-show-unlock-rpm
T
ajp_anton d2a6aafc71 Support Plasma 6.8 unlock prompts across screen blanking
Keep prompt visibility separate from native authentication, reapply the patch after lock-screen file updates, and retain Plasma 6.7 compatibility. Add modern patch and visibility regression tests and document Fedora 45 package support.
2026-11-14 02:09:04 +00:00

35 lines
1.6 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo_root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
tool_dir="$repo_root/plasma-always-show-unlock"
topdir="$repo_root/rpmbuild"
mkdir -p "$topdir"/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
install -m 0755 \
"$tool_dir/plasma-always-show-unlock" \
"$topdir/SOURCES/plasma-always-show-unlock"
install -m 0644 \
"$tool_dir/LockScreenUi.patch" \
"$topdir/SOURCES/LockScreenUi.patch"
install -m 0755 \
"$tool_dir/tests/test-plasma-always-show-unlock" \
"$topdir/SOURCES/test-plasma-always-show-unlock"
install -m 0644 \
"$tool_dir/tests/LockScreenUi.qml" \
"$topdir/SOURCES/LockScreenUi.qml"
install -m 0644 "$repo_root/LICENSE" "$topdir/SOURCES/LICENSE"
install -m 0644 "$repo_root/README.md" "$topdir/SOURCES/README.md"
install -m 0644 "$tool_dir/FedoraToolsFingerprintRetry.qml" "$topdir/SOURCES/FedoraToolsFingerprintRetry.qml"
install -m 0644 "$tool_dir/tests/tst_fingerprintretry.qml" "$topdir/SOURCES/tst_fingerprintretry.qml"
install -m 0644 "$tool_dir/FedoraToolsUnlockPrompt.qml" "$topdir/SOURCES/FedoraToolsUnlockPrompt.qml"
install -m 0644 "$tool_dir/LockScreenUi-visibility.patch" "$topdir/SOURCES/LockScreenUi-visibility.patch"
install -m 0644 "$tool_dir/tests/LockScreenUi-6.8.qml" "$topdir/SOURCES/LockScreenUi-6.8.qml"
install -m 0644 "$tool_dir/tests/tst_unlockprompt.qml" "$topdir/SOURCES/tst_unlockprompt.qml"
install -m 0755 "$tool_dir/tests/test-plasma-always-show-unlock-modern" "$topdir/SOURCES/test-plasma-always-show-unlock-modern"
rpmbuild \
--define "_topdir $topdir" \
-bb "$tool_dir/plasma-always-show-unlock.spec"