Split Debian control files by architecture

This commit is contained in:
Michael Hansen 2022-04-27 11:59:55 -04:00
commit 520acf9383
13 changed files with 111 additions and 26 deletions

View file

@ -56,7 +56,7 @@ RUN --mount=type=cache,id=pip-venv,target=/root/.cache/pip \
# Install PyInstaller
RUN --mount=type=cache,id=pip-venv,target=/root/.cache/pip \
.venv/bin/pip3 install 'pyinstaller>=4,<5'
.venv/bin/pip3 install -f wheels 'pyinstaller>=4,<5'
COPY pyinstaller/mimic3.py ./pyinstaller/
@ -120,9 +120,8 @@ COPY voices/ voices/
RUN mkdir -p "${package_dir}/DEBIAN" && \
export VERSION="$(cat mimic3-tts/mimic3_tts/VERSION)" && \
export DEBIAN_ARCH="$(dpkg-architecture | grep '^DEB_HOST_ARCH=' | sed -e 's/^.\+=//')" && \
envsubst \
< "debian/control.in" \
< "debian/control.in.${TARGETARCH}${TARGETVARIANT}" \
> "${package_dir}/DEBIAN/control" && \
mkdir -p "${package_dir}/usr/lib/mimic3-tts" && \
rsync -av "dist/mimic3/" "${package_dir}/usr/lib/mimic3-tts/" && \