aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-28 18:11:29 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-28 18:11:29 +0300
commitd1bb0a981a0074d136d16f1aabba9129eac4b59e (patch)
tree27b3abbb321929ae14ad00bc7797efbeb249ca5e /.github/workflows
parent0ce3b52f696d9fb07dded56400d4d3338074ea6c (diff)
downloadsciteco-d1bb0a981a0074d136d16f1aabba9129eac4b59e.tar.gz
Mac OS nightly builds: automatically extract package version
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/nightly.yml3
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)