syng/resources/flatpak/build_yaml.sh
Christoph Stahl 8107d47e11
All checks were successful
Check / mypy (push) Successful in 1m4s
Check / ruff (push) Successful in 7s
Updated dependencies and version bump to 2.2.0
2025-07-02 23:12:47 +02:00

25 lines
835 B
Bash

#!/usr/bin/env bash
./flatpak-pip-generator --build-only --yaml poetry-core
./flatpak-pip-generator --build-only --yaml expandvars
./flatpak-pip-generator --yaml cffi
AWK_PROG='
BEGIN { inside_block = 0 }
# Handle continuation lines
/\\$/ {
if (inside_block == 0 && $0 ~ package) { inside_block = 1 }
if (inside_block == 1) { next }
}
{
# End of a multi-line block
if (inside_block == 1 && !/\\$/) { inside_block = 0; next }
if (inside_block == 0 && $0 ~ package) { next }
print
}'
awk -v package="pyqt6" "$AWK_PROG" "../../requirements-client.txt" \
| awk -v package="brotlicffi" "$AWK_PROG" \
| awk -v package="colorama" "$AWK_PROG" \
> "requirements-client.txt"
./flatpak-pip-generator --requirements-file requirements-client.txt --ignore-pkg cffi==1.17.1 --yaml