mirror of
https://github.com/mkuf/prind.git
synced 2025-11-03 11:56:00 +01:00
generate version files for klipper and moonraker during build
This commit is contained in:
@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
<!--
|
<!--
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
|
* klipper & moonraker: generate version file during build to correctly display versions
|
||||||
### Fixed
|
### Fixed
|
||||||
### Changed
|
### Changed
|
||||||
### Removed
|
### Removed
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ ARG VERSION=master
|
|||||||
RUN git clone ${REPO} klipper \
|
RUN git clone ${REPO} klipper \
|
||||||
&& cd klipper \
|
&& cd klipper \
|
||||||
&& git checkout ${VERSION} \
|
&& git checkout ${VERSION} \
|
||||||
|
&& python3 scripts/make_version.py prind > klippy/.version \
|
||||||
&& rm -rf .git
|
&& rm -rf .git
|
||||||
|
|
||||||
RUN venv/bin/pip install -r klipper/scripts/klippy-requirements.txt \
|
RUN venv/bin/pip install -r klipper/scripts/klippy-requirements.txt \
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ ARG VERSION=master
|
|||||||
RUN git clone ${REPO} moonraker \
|
RUN git clone ${REPO} moonraker \
|
||||||
&& cd moonraker \
|
&& cd moonraker \
|
||||||
&& git checkout ${VERSION} \
|
&& git checkout ${VERSION} \
|
||||||
|
&& echo -n $(git describe --tags)-prind > moonraker/.version \
|
||||||
&& rm -rf .git
|
&& rm -rf .git
|
||||||
|
|
||||||
RUN python -m venv venv \
|
RUN python -m venv venv \
|
||||||
|
|||||||
Reference in New Issue
Block a user