aboutsummaryrefslogtreecommitdiff
path: root/contrib/copy-backoffice-into-prebuilt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/copy-backoffice-into-prebuilt.sh')
-rwxr-xr-xcontrib/copy-backoffice-into-prebuilt.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/copy-backoffice-into-prebuilt.sh b/contrib/copy-backoffice-into-prebuilt.sh
index 3150f20ba..aecebf01b 100755
--- a/contrib/copy-backoffice-into-prebuilt.sh
+++ b/contrib/copy-backoffice-into-prebuilt.sh
@@ -2,5 +2,9 @@
[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1
-cp packages/merchant-backoffice-ui/dist/{index,material*,XRXV*}.* prebuilt/backoffice/
-cp packages/merchant-backoffice-ui/dist/*.svg prebuilt/backoffice/
+find packages/merchant-backoffice-ui/dist/prod/ -type f -printf '%P\n' | sort > prebuilt/backoffice/bof
+
+while IFS= read -r file; do
+ cp packages/merchant-backoffice-ui/dist/prod/$file prebuilt/backoffice/$file
+done < prebuilt/backoffice/bof
+