Build system working with custom config files so I don't have to customize the script every time!

This commit is contained in:
Adsooi 2024-09-20 01:05:08 +02:00
parent dd21b21829
commit 236a9c4bc5
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
7 changed files with 118 additions and 83 deletions

View file

@ -10,9 +10,23 @@
# SOFTWARE.
#
PYSIDE6_VERSION="6.7.2"
MAJOR_VERSION="6"
PYSIDE_VERSION="6.7.2"
BUILDS="linux wine linux-latex"
[linux.settings]
TAG="linux-{VERSION}"
[wine.settings]
TAG="wine-{VERSION}"
[linux-latex.settings]
TAG="linux-{VERSION}-latex"
[wine.docker-args]
# Arguments for wine builds
PYTHON_VERSION="3.12.6"
PYINSTALLER_VERSION="6.10.0"
[linux-latex.docker-args]
BASE_IMAGE="{REPO}:linux-{VERSION}"

View file

@ -12,7 +12,7 @@
FROM ubuntu:noble
ARG DEBIAN_FRONTEND=noninteractive
ARG PYSIDE2_VERSION=6.7.2
ARG PYSIDE_VERSION=6.7.2
ENV TZ=Europe/Paris
RUN apt-get update
@ -22,5 +22,5 @@ RUN apt-get -y install make git rpm dh-python \
python3 python3-pip python3-stdeb python3-requests python3-packaging python3-pip python3-pytest python3-pytest-cov python3-pytestqt
RUN rm /usr/lib/python3.*/EXTERNALLY-MANAGED # Disable managed environment. We don't care about breaking system packages here.
RUN python3 -m pip install -U setuptools # Upgrading packages that need fixes.
RUN python3 -m pip install PySide6==$PYSIDE2_VERSION
RUN python3 -m pip install PySide6==$PYSIDE_VERSION
RUN apt clean

View file

@ -12,7 +12,7 @@
FROM ubuntu:noble
ARG PYSIDE6_VERSION=6.7.2
ARG PYSIDE_VERSION=6.7.2
# Adapted from https://github.com/cdrx/docker-pyinstaller/blob/master/Dockerfile-py3-win64
# Upstream hasn't been updated for a while.
@ -90,4 +90,4 @@ RUN set -x \
RUN apt install -y wget curl p7zip-full git unzip nsis xvfb xdotool wmctrl
RUN apt clean
# Installing pyside6 & pyinstaller
RUN pip install wheel PySide6==$PYSIDE6_VERSION pyinstaller==$PYINSTALLER_VERSION requests pytest pytest-cov pytest-qt packaging
RUN pip install wheel PySide6==$PYSIDE_VERSION pyinstaller==$PYINSTALLER_VERSION requests pytest pytest-cov pytest-qt packaging