Skip to content

Commit

Permalink
OSX Add build info to version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oaubert committed Aug 29, 2024
1 parent 2f7385a commit df5751e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions dev/osx_bundle/bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,18 @@ function main {
# clone this repo and install into the bundle
CLONE="$QL_OSXBUNDLE_BUNDLE_DEST"/_temp_clone
git clone ../.. "$CLONE"
(cd "$CLONE"; git checkout "$GIT_TAG")
(
cd "$CLONE"
jhbuild run "$PYTHON" -m pip install \
--prefix="$APP_PREFIX" --root="/" \
--log="$QL_OSXBUNDLE_BUNDLE_DEST"/_install_log.txt \
.
cd "$CLONE"

local GIT_DESCRIBE
GIT_DESCRIBE=$(git describe --always | sed -e 's/release\///')
echo "build=f'{version}-r${GIT_DESCRIBE}'" >> "${CLONE}/lib/advene/core/version.py"
echo "build_date='$(date -Is)'">> "${CLONE}/lib/advene/core/version.py"

jhbuild run "$PYTHON" -m pip install \
--prefix="$APP_PREFIX" --root="/" \
--log="$QL_OSXBUNDLE_BUNDLE_DEST"/_install_log.txt \
.
)
rm -Rf "$CLONE"

Expand Down

0 comments on commit df5751e

Please sign in to comment.