Makefile.mingw: use CI_COMMIT_SHORT_SHA from gitlab-ci

This commit is contained in:
Thomas Bernard 2021-09-30 00:33:46 +02:00
parent 5d315359aa
commit dc82d25cb1
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 4 additions and 0 deletions

View File

@ -44,8 +44,12 @@ BINARIES=upnpc-static.exe upnpc-shared.exe \
ifneq ($(GITHUB_SHA),)
COMMITREF=$(GITHUB_SHA)
else
ifneq ($(CI_COMMIT_SHORT_SHA),)
COMMITREF=$(CI_COMMIT_SHORT_SHA)
else
COMMITREF=$(shell git rev-parse --short HEAD)
endif
endif
DISTFILE:=$(shell echo "miniupnpc-bin-win32-`cat VERSION`-$(COMMITREF).zip")
.PHONY: all dist clean