Skip to content

Commit bb335db

Browse files
committed
feat(appimage): use version from python build
1 parent 1e292d8 commit bb335db

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/appimage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
rm build/.build-metadata.env
8080
fi
8181
APPIMAGE_SOURCE=build
82-
APPIMAGE_VERSION="${GITHUB_REF_SLUG}-${{ matrix.base.codename }}"
82+
APPIMAGE_VERSION="${VERSION}-${{ matrix.base.codename }}"
8383
APPIMAGE_APT_ARCH="${TARGETARCH}"
8484
APPIMAGE_APT_DISTRO="${{ matrix.base.codename }}"
8585
APPIMAGE_APT_PUBKEY="${{ matrix.base.pubkey }}"

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN <<EOR
1414
fi
1515

1616
apt-get update
17+
export DEBIAN_FRONTEND=noninteractive
1718
apt-get install -y --no-install-recommends \
1819
gcc \
1920
git \
@@ -49,9 +50,13 @@ RUN <<EOR
4950
python -m venv .env
5051
. .env/bin/activate
5152
pip install --prefix "${TARGET}/usr" dist/*.whl
53+
5254
# fix shebangs of scripts from '#!/work/.env/bin/python'
5355
find "${TARGET}/usr/bin" -type f | xargs sed -i 's:work/.env:usr:'
5456

57+
# save version
58+
python -c "from scc._version import __version__; print('VERSION=' + __version__)" >>/build/.build-metadata.env
59+
5560
# Provide input-event-codes.h as fallback for runtime systems without linux headers
5661
cp -a \
5762
"$(find /usr -type f -name input-event-codes.h -print -quit)" \

0 commit comments

Comments
 (0)