diff --git a/.DS_Store b/.DS_Store index c408182..c5e099a 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.npmignore b/.npmignore index 69422de..74c19ad 100644 --- a/.npmignore +++ b/.npmignore @@ -2,4 +2,5 @@ .*.swp # Bundling and packaging -bin/* +build/bin/* + diff --git a/stampers/nix.sh b/stampers/nix.sh index 7f33c6e..8c034cd 100755 --- a/stampers/nix.sh +++ b/stampers/nix.sh @@ -21,7 +21,22 @@ nvm install 22 nvm use 22 # Create sea-config.json -echo "{ \"main\": \"${JS_SOURCE_FILE}\", \"output\": \"sea-prep.blob\" }" > sea-config.json +cat < sea-config.json +{ + "main": "${JS_SOURCE_FILE}", + "output": "sea-prep.blob", + "disableExperimentalSEAWarning": true, + "useCodeCache": true, + "assets": { + "index.html": "public/index.html", + "favicon.ico": "public/favicon.ico", + "top.html": "public/top.html", + "style.css": "public/style.css", + "injection.js": "public/injection.js", + "redirector.html": "public/redirector.html" + } +} +EOF # Generate the blob node --experimental-sea-config sea-config.json diff --git a/stampers/win.ps1 b/stampers/win.ps1 index 17150d9..7a936b7 100755 --- a/stampers/win.ps1 +++ b/stampers/win.ps1 @@ -34,7 +34,17 @@ nvm use 22 $seaConfigContent = @" { "main": "$jsSourceFile", - "output": "sea-prep.blob" + "output": "sea-prep.blob", + "disableExperimentalSEAWarning": true, + "useCodeCache": true, + "assets": { + "index.html": "public/index.html", + "favicon.ico": "public/favicon.ico", + "top.html": "public/top.html", + "style.css": "public/style.css", + "injection.js": "public/injection.js", + "redirector.html": "public/redirector.html" + } } "@ $seaConfigContent | Out-File sea-config.json