build: Move protonsdk_version default value to configure.sh.

This commit is contained in:
Rémi Bernon 2021-05-27 16:58:39 +02:00
parent a8b3580679
commit 0e897ff8b7
No known key found for this signature in database
GPG key ID: 38D0E5827B54E5C9
4 changed files with 17 additions and 11 deletions

View file

@ -41,11 +41,15 @@ ifneq ($(unstripped),)
DEPLOY_DIR := $(DEPLOY_DIR)_unstripped
endif
protonsdk_version := 0.20210126.1-1
CONFIGURE_CMD := ../proton/configure.sh \
--proton-sdk-image=registry.gitlab.steamos.cloud/proton/soldier/sdk:$(protonsdk_version) \
--build-name="$(_build_name)"
ifneq ($(protonsdk_version),)
CONFIGURE_CMD += --proton-sdk-image=registry.gitlab.steamos.cloud/proton/soldier/sdk:$(protonsdk_version)
else
protonsdk_version := $(shell grep '^arg_protonsdk_image=' configure.sh|xargs echo|cut -d: -f2)
endif
all: help