diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-10-28 18:11:29 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-10-28 18:11:29 +0300 |
commit | d1bb0a981a0074d136d16f1aabba9129eac4b59e (patch) | |
tree | 27b3abbb321929ae14ad00bc7797efbeb249ca5e /.github/workflows/nightly.yml | |
parent | 0ce3b52f696d9fb07dded56400d4d3338074ea6c (diff) | |
download | sciteco-d1bb0a981a0074d136d16f1aabba9129eac4b59e.tar.gz |
Mac OS nightly builds: automatically extract package version
Diffstat (limited to '.github/workflows/nightly.yml')
-rw-r--r-- | .github/workflows/nightly.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e99f96c..4a6bc53 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -135,7 +135,8 @@ jobs: # FIXME: Should we encode the Git commit into the package version? # Unfortunately, I cannot find detailed information on how Mac OS # interpretes these version strings. - pkgbuild --identifier net.sf.sciteco.pkg --version 2.2.0 \ + VERSION=`sed -nE 's/#define PACKAGE_VERSION "(.*)"/\1/p' config.h` + pkgbuild --identifier net.sf.sciteco.pkg --version $VERSION \ --root temp-install --install-location / \ sciteco-curses_nightly_macos_x86_64.pkg - name: Archive Mac OS Distribution (ncurses) |