From 810a89bff5d5a110d0ffe81fdcec15d43798239c Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sun, 28 May 2023 12:52:20 +0200 Subject: [PATCH 1/3] Adding revision customisation. --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 45245fd..afe3b06 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,7 @@ #!/bin/bash DISTRIBUTION=${DISTRIBUTION:-jammy} +REVISION=${REVISION:-1} rm -rf output @@ -16,10 +17,12 @@ for i in output/*; do cp copyright "$i/debian" # Add copyrights perl -i -p0e 's/python3 \(<< 3.(\d)+\),//gm' "$i/debian/control" # Remove upper limit from control. sed -i "s/stable;/$DISTRIBUTION;/g" "$i/debian/changelog" # Change distribution. + sed -i "s/1~w2d0/$REVISION/g" "$i/debian/changelog" # Change suffix + mv "$i" "${i/1~w2d0/$REVISION}" done # Moving the shaders library over to essentials since it's required by Qt5Compat -# mv output/python3-pyside6-addons_*_amd64/src/PySide6/Qt/lib/libQt6ShaderTools.so.6 output/python3-pyside6-essentials_*_amd64/src/PySide6/Qt/lib/ +mv output/python3-pyside6-addons_*_amd64/src/PySide6/Qt/lib/libQt6ShaderTools.so.6 output/python3-pyside6-essentials_*_amd64/src/PySide6/Qt/lib/ # Remove conflicting files between Essentials and Addons rm output/python3-pyside6-addons_*_amd64/src/PySide6/__init__.py From 72729ea8342f808e42a75d61a9b7350c5087c72b Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Tue, 17 Sep 2024 20:14:50 +0200 Subject: [PATCH 2/3] Updating building process. --- build.sh | 22 ++++++++++++++++++++-- upload.sh | 2 +- wheel2deb.yml => wheel2deb.src.yml | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) rename wheel2deb.yml => wheel2deb.src.yml (80%) diff --git a/build.sh b/build.sh index afe3b06..fd2e5f6 100644 --- a/build.sh +++ b/build.sh @@ -1,14 +1,20 @@ #!/bin/bash -DISTRIBUTION=${DISTRIBUTION:-jammy} +DISTRIBUTION=${DISTRIBUTION:-noble} REVISION=${REVISION:-1} rm -rf output +rm -rf *.whl +rm wheel2deb.yml # Download latest weels python3 -m pip wheel PySide6-Essentials python3 -m pip wheel PySide6-Addons +# Create wheel for distribution +cp wheel2deb.src.yml wheel2deb.yml +sed -i -e "s/\\[DIST\\]/$DISTRIBUTION/g" wheel2deb.yml + wheel2deb convert -c ./wheel2deb.yml echo -e "\n[Writing modifications]\n" @@ -25,4 +31,16 @@ done mv output/python3-pyside6-addons_*_amd64/src/PySide6/Qt/lib/libQt6ShaderTools.so.6 output/python3-pyside6-essentials_*_amd64/src/PySide6/Qt/lib/ # Remove conflicting files between Essentials and Addons -rm output/python3-pyside6-addons_*_amd64/src/PySide6/__init__.py +rm output/python3-pyside6-addons_*_amd64/src/PySide6/{__init__.py,_config.py,_git_pyside_version.py} +rm -r output/python3-pyside6-addons_*_amd64/src/PySide6/{QtAsyncio,support,scripts} + +# Removing conflictual directories +rm -rf output/python3-pyside6-addons_*_amd64/src/shiboken6* +rm -rf output/python3-pyside6-essentials_*_amd64/src/shiboken6* +rm -rf output/python3-shiboken6_*_amd64/src/PySide6 + +function filter() { cat "$1" | awk "$2" > "$1"; } + +filter output/python3-shiboken6_*_amd64/debian/install '/^src\/shiboken6/ { print $0; }' +filter output/python3-pyside6-essentials_*_amd64/debian/install '/^src\/PySide6/ { print $0; }' +filter output/python3-pyside6-addons_*_amd64/debian/install '/^src\/PySide6/ { print $0; }' diff --git a/upload.sh b/upload.sh index 4e0bce9..824b582 100644 --- a/upload.sh +++ b/upload.sh @@ -3,7 +3,7 @@ PPA_ARCHIVE="ppa:ad5001/logarithmplotter" # Build and sign the packages. -for i in output/*; do +for i in output/*_amd64; do cd "$i" debuild -S -sa -k"mail@ad5001.eu" cd ../../ diff --git a/wheel2deb.yml b/wheel2deb.src.yml similarity index 80% rename from wheel2deb.yml rename to wheel2deb.src.yml index 2ea43d7..2a3728f 100644 --- a/wheel2deb.yml +++ b/wheel2deb.src.yml @@ -1,4 +1,4 @@ .: maintainer_name: 'Ad5001' maintainer_email: 'mail@ad5001.eu' - distribution: jammy + distribution: [DIST] From c0c76d8bc3349f64f7ff6239ca40ffa7bb5a7bfb Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Wed, 18 Sep 2024 00:53:54 +0200 Subject: [PATCH 3/3] Adding old file to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 8c82430..0e74474 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ output *.whl +wheel2deb.yml