fix libz.so.1 missing error when running "npm install" on Linux/ARM64 (on a Macbook M1) (#23935)
* fix libz.so.1 missing error when running "npm install" on Linux/ARM64 * fix typo * update changes --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -4,6 +4,13 @@ include config.mk
|
|||||||
# The CI environment variable is set automatically in CircleCI and GitLab CI
|
# The CI environment variable is set automatically in CircleCI and GitLab CI
|
||||||
CI ?= false
|
CI ?= false
|
||||||
|
|
||||||
|
# Detect Linux/ARM64 and set a flag to fix the issue with optipng-bin on it:
|
||||||
|
# please see optipng-bin Linux arm64 support issue (https://github.com/imagemin/optipng-bin/issues/118) for details:
|
||||||
|
ifeq ($(shell uname)/$(shell uname -m),Linux/aarch64)
|
||||||
|
LINUX_ARM64 = true
|
||||||
|
CPPFLAGS = "-DPNG_ARM_NEON_OPT=0"
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run: node_modules ## Runs app
|
run: node_modules ## Runs app
|
||||||
@echo Running Mattermost Web App for development
|
@echo Running Mattermost Web App for development
|
||||||
@@ -61,7 +68,7 @@ node_modules: package.json $(wildcard package-lock.json)
|
|||||||
@echo Getting dependencies using npm
|
@echo Getting dependencies using npm
|
||||||
|
|
||||||
ifeq ($(CI),false)
|
ifeq ($(CI),false)
|
||||||
npm install
|
CPPFLAGS=$(CPPFLAGS) npm install
|
||||||
else
|
else
|
||||||
# This runs in CI with NODE_ENV=production which skips devDependencies without this flag
|
# This runs in CI with NODE_ENV=production which skips devDependencies without this flag
|
||||||
npm ci --include=dev
|
npm ci --include=dev
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user