mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-26 13:17:29 -05:00
Package only the locale catalogs from server/i18n
release.mk copied server/i18n wholesale into the distribution. Everything in that directory today is a catalog, so it made no difference -- but the server loader, mmgotool and the sync test all already filter the directory to *.json, and packaging was the one consumer that did not. Copy the catalogs explicitly so documentation and any other non-catalog file placed alongside them stays out of the release bundle.
This commit is contained in:
@@ -188,7 +188,8 @@ package-prep: setup-go-work
|
||||
cp -RL fonts $(DIST_PATH)
|
||||
cp -RL templates $(DIST_PATH)
|
||||
rm -rf $(DIST_PATH)/templates/*.mjml $(DIST_PATH)/templates/partials/
|
||||
cp -RL i18n $(DIST_PATH)
|
||||
mkdir -p $(DIST_PATH)/i18n
|
||||
cp -L i18n/*.json $(DIST_PATH)/i18n
|
||||
|
||||
@# Disable developer settings
|
||||
sed -i'' -e 's|"ConsoleLevel": "DEBUG"|"ConsoleLevel": "INFO"|g' $(DIST_PATH)/config/config.json
|
||||
|
||||
Reference in New Issue
Block a user