aboutsummaryrefslogtreecommitdiff
path: root/contrib/copy-backoffice-into-prebuilt.sh
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-04-24 11:56:20 -0300
committerSebastian <sebasjm@gmail.com>2023-04-24 11:57:20 -0300
commitd61471544c6782615c2b9ce68eb8eec834ec6c90 (patch)
treef96663465879c2ff14f50adeff2123f471b157aa /contrib/copy-backoffice-into-prebuilt.sh
parentfdd56335309017016362fa4a9ead606fdae9ee7e (diff)
add bill of materials to prebuilt
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
+