Skip to content

Commit

Permalink
feat(appimage): use version from python build
Browse files Browse the repository at this point in the history
  • Loading branch information
git-developer committed Oct 5, 2024
1 parent 1e292d8 commit bb335db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
rm build/.build-metadata.env
fi
APPIMAGE_SOURCE=build
APPIMAGE_VERSION="${GITHUB_REF_SLUG}-${{ matrix.base.codename }}"
APPIMAGE_VERSION="${VERSION}-${{ matrix.base.codename }}"
APPIMAGE_APT_ARCH="${TARGETARCH}"
APPIMAGE_APT_DISTRO="${{ matrix.base.codename }}"
APPIMAGE_APT_PUBKEY="${{ matrix.base.pubkey }}"
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN <<EOR
fi

apt-get update
export DEBIAN_FRONTEND=noninteractive
apt-get install -y --no-install-recommends \
gcc \
git \
Expand Down Expand Up @@ -49,9 +50,13 @@ RUN <<EOR
python -m venv .env
. .env/bin/activate
pip install --prefix "${TARGET}/usr" dist/*.whl

# fix shebangs of scripts from '#!/work/.env/bin/python'
find "${TARGET}/usr/bin" -type f | xargs sed -i 's:work/.env:usr:'

# save version
python -c "from scc._version import __version__; print('VERSION=' + __version__)" >>/build/.build-metadata.env

# Provide input-event-codes.h as fallback for runtime systems without linux headers
cp -a \
"$(find /usr -type f -name input-event-codes.h -print -quit)" \
Expand Down

0 comments on commit bb335db

Please sign in to comment.