Fixes building with languages.js changes

This commit is contained in:
donovan6000
2023-04-13 08:02:57 -07:00
parent 94784eb33b
commit ee41203b65

View File

@@ -33,6 +33,7 @@ SERVER_NAME="mwcwallet.com" HTTPS="on" NO_FILE_VERSIONS="" NO_FILE_CHECKSUMS=""
SERVER_NAME="mwcwallet.com" HTTPS="on" NO_FILE_VERSIONS="" NO_FILE_CHECKSUMS="" NO_MINIFIED_FILES="" HTTPS_SERVER_ADDRESS="https://mwcwallet.com" TOR_SERVER_ADDRESS="http://mwcwalletmiq3gdkmfbqlytxunvlxyli4m6zrqozk7xjc353ewqb6bad.onion" php "./mwcwallet.com-master/public_html/scripts/camera_worker.js" > "./temp/scripts/camera_worker.js"
SERVER_NAME="mwcwallet.com" HTTPS="on" NO_FILE_VERSIONS="" NO_FILE_CHECKSUMS="" NO_MINIFIED_FILES="" HTTPS_SERVER_ADDRESS="https://mwcwallet.com" TOR_SERVER_ADDRESS="http://mwcwalletmiq3gdkmfbqlytxunvlxyli4m6zrqozk7xjc353ewqb6bad.onion" php "./mwcwallet.com-master/public_html/scripts/output_worker.js" > "./temp/scripts/output_worker.js"
SERVER_NAME="mwcwallet.com" HTTPS="on" NO_FILE_VERSIONS="" NO_FILE_CHECKSUMS="" NO_MINIFIED_FILES="" HTTPS_SERVER_ADDRESS="https://mwcwallet.com" TOR_SERVER_ADDRESS="http://mwcwalletmiq3gdkmfbqlytxunvlxyli4m6zrqozk7xjc353ewqb6bad.onion" php "./mwcwallet.com-master/public_html/scripts/slate_worker.js" > "./temp/scripts/slate_worker.js"
SERVER_NAME="mwcwallet.com" HTTPS="on" NO_FILE_VERSIONS="" NO_FILE_CHECKSUMS="" NO_MINIFIED_FILES="" HTTPS_SERVER_ADDRESS="https://mwcwallet.com" TOR_SERVER_ADDRESS="http://mwcwalletmiq3gdkmfbqlytxunvlxyli4m6zrqozk7xjc353ewqb6bad.onion" php "./mwcwallet.com-master/public_html/scripts/languages.js" > "./temp/scripts/languages.js"
# Inline images
sed -i "s#href=\"\./images/mask_images/mask_image\.svg\"#href=\"data:image/svg+xml;base64,`cat "./mwcwallet.com-master/public_html/images/mask_images/mask_image.svg" | openssl base64 -A`\"#" "./temp/index.html"
@@ -201,6 +202,7 @@ sed -i -e "/<script .*\".\/scripts\/jQuery-3\.6\.4\.js\".*>/r ./temp/scripts/jQu
sed -i -e "/<script .*\".\/scripts\/bignumber\.js-9\.1\.1\.js\".*>/r ./temp/scripts/bignumber.js-9.1.1.js" -e "/<script .*\".\/scripts\/bignumber\.js-9\.1\.1\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/bignumber\.js-9\.1\.1\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/bignumber\.js-9\.1\.1\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/common\.js\".*>/r ./temp/scripts/common.js" -e "/<script .*\".\/scripts\/common\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/common\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/common\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/consensus\.js\".*>/r ./temp/scripts/consensus.js" -e "/<script .*\".\/scripts\/consensus\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/consensus\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/consensus\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/languages\.js\".*>/r ./temp/scripts/languages.js" -e "/<script .*\".\/scripts\/languages\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/languages\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/languages\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/language\.js\".*>/r ./temp/scripts/language.js" -e "/<script .*\".\/scripts\/language\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/language\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/language\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/extension\.js\".*>/r ./temp/scripts/extension.js" -e "/<script .*\".\/scripts\/extension\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/extension\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/extension\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/JSONBigNumber-1\.1\.1\.js\".*>/r ./temp/scripts/JSONBigNumber-1.1.1.js" -e "/<script .*\".\/scripts\/JSONBigNumber-1\.1\.1\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/JSONBigNumber-1\.1\.1\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/JSONBigNumber-1\.1\.1\.js\".*>/d" "./temp/index.html"