@@ -39,7 +39,8 @@ if [ -n "$WORKER_FILE" ]; then
3939 echo " 📁 Found worker file: $WORKER_FILE "
4040
4141 # Fix the import path from '../../..' to '../../../evo.js'
42- sed -i ' ' ' s/await import(' \' ' \.\.\/\.\.\/\.\.' \' ' );/await import(' \' ' \.\.\/\.\.\/\.\.\/evo\.js' \' ' );/g' " $WORKER_FILE "
42+ sed -i.bak ' s/await import(' \' ' \.\.\/\.\.\/\.\.' \' ' );/await import(' \' ' \.\.\/\.\.\/\.\.\/evo\.js' \' ' );/g' " $WORKER_FILE "
43+ rm " ${WORKER_FILE} .bak"
4344
4445 if [ $? -eq 0 ]; then
4546 echo " ✅ Worker import path fixed successfully"
@@ -62,7 +63,8 @@ if [ -n "$WEB_WORKER_FILE" ]; then
6263 echo " 📁 Found web worker file: $WEB_WORKER_FILE "
6364
6465 # Fix the import path from '../../..' to '../../../evo.js'
65- sed -i ' ' ' s/await import(' \' ' \.\.\/\.\.\/\.\.' \' ' );/await import(' \' ' \.\.\/\.\.\/\.\.\/evo\.js' \' ' );/g' " $WEB_WORKER_FILE "
66+ sed -i.bak ' s/await import(' \' ' \.\.\/\.\.\/\.\.' \' ' );/await import(' \' ' \.\.\/\.\.\/\.\.\/evo\.js' \' ' );/g' " $WEB_WORKER_FILE "
67+ rm " ${WEB_WORKER_FILE} .bak"
6668
6769 if [ $? -eq 0 ]; then
6870 echo " ✅ Web worker import path fixed successfully"
7678
7779# Update cache busting version in app.js
7880echo " 🔄 Updating cache busting version in app.js..."
79- sed -i ' ' " s/from \" \.\.\/pkg\/evo\.js?v=[0-9]*\" /from \" ..\/pkg\/evo.js?v=$CACHE_VERSION \" /g" web/js/app.js
81+ sed -i.bak " s/from \" \.\.\/pkg\/evo\.js?v=[0-9]*\" /from \" ..\/pkg\/evo.js?v=$CACHE_VERSION \" /g" web/js/app.js
82+ rm web/js/app.js.bak
8083
8184# Update cache busting version in index.html
8285echo " 🔄 Updating cache busting version in index.html..."
83- sed -i ' ' " s/src=\" js\/app\.js?v=[0-9]*\" /src=\" js\/app.js?v=$CACHE_VERSION \" /g" web/index.html
86+ sed -i.bak " s/src=\" js\/app\.js?v=[0-9]*\" /src=\" js\/app.js?v=$CACHE_VERSION \" /g" web/index.html
87+ rm web/index.html.bak
8488
8589# Verify the build
8690echo " 🔍 Verifying build..."
0 commit comments