syng/resources/flatpak/build_yaml.sh

23 lines
723 B
Bash
Raw Normal View History

2024-11-19 13:06:57 +01:00
#!/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 -v package="pyqt6" '
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
}
' "../../requirements-client.txt" > "requirements-client.txt"
./flatpak-pip-generator --requirements-file requirements-client.txt --ignore-pkg cffi==1.17.1 --yaml