From 6168c55b8f54162cfdeedc548617b638ea102fcc Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Thu, 18 Apr 2024 15:11:20 +0200 Subject: [PATCH] Copy assets to app btcpay submodule webroot --- tasks/copy-assets-to-targets.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/copy-assets-to-targets.sh b/tasks/copy-assets-to-targets.sh index 8dfb98c..d141baf 100755 --- a/tasks/copy-assets-to-targets.sh +++ b/tasks/copy-assets-to-targets.sh @@ -27,6 +27,16 @@ if [ -d "$BTCPAY_APP_WWWROOT" ]; then cp dist/styles/btcpayserver-bootstrap.css "$BTCPAY_APP_WWWROOT/bootstrap/bootstrap.css" cp dist/scripts/bootstrap/* "$BTCPAY_APP_WWWROOT/bootstrap/" cp dist/svg/icons.svg "$BTCPAY_APP_WWWROOT/img/icon-sprite.svg" + cp dist/svg/supporters.svg "$BTCPAY_APP_WWWROOT/img/supporter-sprite.svg" echo "Copied assets to $BTCPAY_APP_WWWROOT" fi + +if [ -d "$BTCPAY_APP_SERVER_WWWROOT" ]; then + cp dist/styles/btcpayserver-bootstrap.css "$BTCPAY_APP_SERVER_WWWROOT/main/bootstrap/bootstrap.css" + cp dist/scripts/bootstrap/* "$BTCPAY_APP_SERVER_WWWROOT/vendor/bootstrap/" + cp dist/svg/icons.svg "$BTCPAY_APP_SERVER_WWWROOT/img/icon-sprite.svg" + cp dist/svg/supporters.svg "$BTCPAY_APP_SERVER_WWWROOT/img/supporter-sprite.svg" + + echo "Copied assets to $BTCPAY_APP_SERVER_WWWROOT" +fi