From 09b17f77c21f96bda4aeb42c5c3af13b08f1faf1 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 21 Feb 2019 12:18:52 +0000 Subject: [PATCH] Fix language file path for Jenkins Jenkins seems to use a different layout of the repos than other environments. The sub-projects are cloned inside of the `riot-web` workspace. To account for this, we need to adjust the Riot language file path. --- scripts/package.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/package.sh b/scripts/package.sh index 23d0925b..008803ca 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -14,7 +14,11 @@ else fi npm run clean -npm run build$dev +# riot-web is at `workspace`. +# matrix-react-sdk is at `workspace/node_modules/matrix-react-sdk`, but this is +# symlinked to a repo at `workspace/matrix-react-sdk`. +# To get from `workspace/matrix-react-sdk/lib` up to the lang file, we use: +RIOT_LANGUAGES_FILE="../../webapp/i18n/languages.json" npm run build$dev # include the sample config in the tarball. Arguably this should be done by # `npm run build`, but it's just too painful.