From d1bb0a981a0074d136d16f1aabba9129eac4b59e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 28 Oct 2024 18:11:29 +0300 Subject: Mac OS nightly builds: automatically extract package version --- .github/workflows/nightly.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github') 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) -- cgit v1.2.3