Skip to content

Commit

Permalink
fix: ENABLE_STATIC_BOX not enable
Browse files Browse the repository at this point in the history
should use OS_VERSION rather than VERSION

LOG:
  • Loading branch information
dengbo11 committed Oct 28, 2024
1 parent f80b156 commit 26584bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
include /usr/share/dpkg/pkg-info.mk

OS=$(shell awk '/^NAME=/' /etc/os-release | sed 's/NAME=//' | sed 's/\"//g' | tr '[:upper:]' '[:lower:]')
OSVERSION=$(shell awk '/VERSION=/' /etc/os-release | sed 's/VERSION=//' | sed 's/\"//g' | sed 's/[.]0/./')
OS_VERSION=$(shell awk '/VERSION=/' /etc/os-release | sed 's/VERSION=//' | sed 's/\"//g' | sed 's/[.]0/./')
ARCH=$(shell dpkg-architecture -qDEB_TARGET_MULTIARCH)
ENABLE_UAB_SUPPORT=FALSE
ENABLE_STATIC_BOX=FALSE

ifeq ($(OS) $(VERSION), deepin 23)
ifeq ($(OS) $(OS_VERSION), deepin 23)
ENABLE_UAB_SUPPORT=TRUE
ENABLE_STATIC_BOX=TRUE
endif

ifeq ($(OS) $(VERSION), uos 20)
ifeq ($(OS) $(OS_VERSION), uos 20)
ENABLE_UAB_SUPPORT=TRUE
ENABLE_STATIC_BOX=TRUE
endif
Expand Down

0 comments on commit 26584bc

Please sign in to comment.