Updated dependencies

This commit is contained in:
donovan6000
2023-01-22 21:17:23 -08:00
parent b2819614ca
commit 201c9eaaad

View File

@@ -5,9 +5,9 @@ wget "https://github.com/NicolasFlamel1/mwcwallet.com/archive/refs/heads/master.
unzip "./master"
cp -r "./mwcwallet.com-master/public_html/." "./temp/"
chmod 777 -R "./temp/"
wget "https://github.com/NicolasFlamel1/Secp256k1-zkp-WASM-Wrapper/releases/download/v0.0.28/Secp256k1-zkp-0.0.28.zip"
unzip "./Secp256k1-zkp-0.0.28.zip"
mv "./asmjs/secp256k1-zkp.js" "./temp/scripts/secp256k1-zkp-0.0.28.js"
wget "https://github.com/NicolasFlamel1/Secp256k1-zkp-WASM-Wrapper/releases/download/v0.0.29/Secp256k1-zkp-0.0.29.zip"
unzip "./Secp256k1-zkp-0.0.29.zip"
mv "./asmjs/secp256k1-zkp.js" "./temp/scripts/secp256k1-zkp-0.0.29.js"
wget "https://github.com/NicolasFlamel1/BLAKE2b-WASM-Wrapper/releases/download/v0.0.2/BLAKE2b-0.0.2.zip"
unzip "./BLAKE2b-0.0.2.zip"
mv "./asmjs/BLAKE2b.js" "./temp/scripts/BLAKE2b-0.0.2.js"
@@ -148,7 +148,7 @@ sed -i -e "/importScripts(\"\.\.\/scripts\/BLAKE2b-0\.0\.2\.js\");/r ./temp/scri
sed -i -e "/importScripts(\"\.\.\/scripts\/Ed25519-0\.0\.22\.js\");/r ./temp/scripts/Ed25519-0.0.22.js" -e "/importScripts(\"\.\.\/scripts\/Ed25519-0\.0\.22\.js\");/d" "./temp/scripts/slate_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/js-sha3-0\.8\.0\.js\");/r ./temp/scripts/js-sha3-0.8.0.js" -e "/importScripts(\"\.\.\/scripts\/js-sha3-0\.8\.0\.js\");/d" "./temp/scripts/slate_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/js-sha256-0\.9\.0\.js\");/r ./temp/scripts/js-sha256-0.9.0.js" -e "/importScripts(\"\.\.\/scripts\/js-sha256-0\.9\.0\.js\");/d" "./temp/scripts/slate_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/secp256k1-zkp-0\.0\.28\.js\");/r ./temp/scripts/secp256k1-zkp-0.0.28.js" -e "/importScripts(\"\.\.\/scripts\/secp256k1-zkp-0\.0\.28\.js\");/d" "./temp/scripts/slate_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/secp256k1-zkp-0\.0\.29\.js\");/r ./temp/scripts/secp256k1-zkp-0.0.29.js" -e "/importScripts(\"\.\.\/scripts\/secp256k1-zkp-0\.0\.29\.js\");/d" "./temp/scripts/slate_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/SMAZ-0\.0\.31\.js\");/r ./temp/scripts/SMAZ-0.0.31.js" -e "/importScripts(\"\.\.\/scripts\/SMAZ-0\.0\.31\.js\");/d" "./temp/scripts/slate_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/hi-base32-0\.5\.1\.js\");/r ./temp/scripts/hi-base32-0.5.1.js" -e "/importScripts(\"\.\.\/scripts\/hi-base32-0\.5\.1\.js\");/d" "./temp/scripts/slate_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/bech32-2\.0\.0\.js\");/r ./temp/scripts/bech32-2.0.0.js" -e "/importScripts(\"\.\.\/scripts\/bech32-2\.0\.0\.js\");/d" "./temp/scripts/slate_worker.js"
@@ -175,7 +175,7 @@ sed -i "/<script .*\".\/scripts\/slate\.js\".*>/i <script id=\"slate_worker\" ty
sed -i -e "/<script .*\"slate_worker\".*>/r ./temp/scripts/slate_worker.js" -e "/<script .*\"slate_worker\".*>/a </script>" "./temp/index.html"
sed -i "s/Slate\.WORKER_FILE_LOCATION/window[\"URL\"].createObjectURL(new Blob([document\.getElementById(\"slate_worker\")[\"textContent\"]], {\"type\": \"application\/javascript\"}))/" "./temp/scripts/slate.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/BLAKE2b-0\.0\.2\.js\");/r ./temp/scripts/BLAKE2b-0.0.2.js" -e "/importScripts(\"\.\.\/scripts\/BLAKE2b-0\.0\.2\.js\");/d" "./temp/scripts/output_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/secp256k1-zkp-0\.0\.28\.js\");/r ./temp/scripts/secp256k1-zkp-0.0.28.js" -e "/importScripts(\"\.\.\/scripts\/secp256k1-zkp-0\.0\.28\.js\");/d" "./temp/scripts/output_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/secp256k1-zkp-0\.0\.29\.js\");/r ./temp/scripts/secp256k1-zkp-0.0.29.js" -e "/importScripts(\"\.\.\/scripts\/secp256k1-zkp-0\.0\.29\.js\");/d" "./temp/scripts/output_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/bignumber.js-9\.0\.2\.js\");/r ./temp/scripts/bignumber.js-9.0.2.js" -e "/importScripts(\"\.\.\/scripts\/bignumber.js-9\.0\.2\.js\");/d" "./temp/scripts/output_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/common\.js\");/r ./temp/scripts/common.js" -e "/importScripts(\"\.\.\/scripts\/common\.js\");/d" "./temp/scripts/output_worker.js"
sed -i -e "/importScripts(\"\.\.\/scripts\/crypto\.js\");/r ./temp/scripts/crypto.js" -e "/importScripts(\"\.\.\/scripts\/crypto\.js\");/d" "./temp/scripts/output_worker.js"
@@ -209,7 +209,7 @@ sed -i -e "/<script .*\".\/scripts\/X25519-0\.0\.23\.js\".*>/r ./temp/scripts/X2
sed -i -e "/<script .*\".\/scripts\/js-sha3-0\.8\.0\.js\".*>/r ./temp/scripts/js-sha3-0.8.0.js" -e "/<script .*\".\/scripts\/js-sha3-0\.8\.0\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/js-sha3-0\.8\.0\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/js-sha3-0\.8\.0\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/js-sha256-0\.9\.0\.js\".*>/r ./temp/scripts/js-sha256-0.9.0.js" -e "/<script .*\".\/scripts\/js-sha256-0\.9\.0\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/js-sha256-0\.9\.0\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/js-sha256-0\.9\.0\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/ChaCha-2\.1\.0\.js\".*>/r ./temp/scripts/ChaCha-2.1.0.js" -e "/<script .*\".\/scripts\/ChaCha-2\.1\.0\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/ChaCha-2\.1\.0\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/ChaCha-2\.1\.0\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/secp256k1-zkp-0\.0\.28\.js\".*>/r ./temp/scripts/secp256k1-zkp-0.0.28.js" -e "/<script .*\".\/scripts\/secp256k1-zkp-0\.0\.28\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/secp256k1-zkp-0\.0\.28\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/secp256k1-zkp-0\.0\.28\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/secp256k1-zkp-0\.0\.29\.js\".*>/r ./temp/scripts/secp256k1-zkp-0.0.29.js" -e "/<script .*\".\/scripts\/secp256k1-zkp-0\.0\.29\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/secp256k1-zkp-0\.0\.29\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/secp256k1-zkp-0\.0\.29\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/SMAZ-0\.0\.31\.js\".*>/r ./temp/scripts/SMAZ-0.0.31.js" -e "/<script .*\".\/scripts\/SMAZ-0\.0\.31\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/SMAZ-0\.0\.31\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/SMAZ-0\.0\.31\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/hi-base32-0\.5\.1\.js\".*>/r ./temp/scripts/hi-base32-0.5.1.js" -e "/<script .*\".\/scripts\/hi-base32-0\.5\.1\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/hi-base32-0\.5\.1\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/hi-base32-0\.5\.1\.js\".*>/d" "./temp/index.html"
sed -i -e "/<script .*\".\/scripts\/bech32-2\.0\.0\.js\".*>/r ./temp/scripts/bech32-2.0.0.js" -e "/<script .*\".\/scripts\/bech32-2\.0\.0\.js\".*>/i <script>" -e "/<script .*\".\/scripts\/bech32-2\.0\.0\.js\".*>/a </script>" -e "/<script .*\".\/scripts\/bech32-2\.0\.0\.js\".*>/d" "./temp/index.html"
@@ -294,4 +294,4 @@ sed -i -e "/<script .*\".\/scripts\/application\.js\".*>/r ./temp/scripts/applic
mv "./temp/index.html" "./MWC Wallet Standalone v$VERSION.html"
# Cleanup
rm -rf "./temp" "./master.zip" "./mwcwallet.com-master" "./Secp256k1-zkp-0.0.28.zip" "./BLAKE2b-0.0.2.zip" "./Ed25519-0.0.22.zip" "./X25519-0.0.23.zip" "./SMAZ-0.0.31.zip" "./asmjs" "./wasm"
rm -rf "./temp" "./master.zip" "./mwcwallet.com-master" "./Secp256k1-zkp-0.0.29.zip" "./BLAKE2b-0.0.2.zip" "./Ed25519-0.0.22.zip" "./X25519-0.0.23.zip" "./SMAZ-0.0.31.zip" "./asmjs" "./wasm"