Skip to content

Commit

Permalink
Merge pull request #195 from dosyago/build-x
Browse files Browse the repository at this point in the history
Build x
  • Loading branch information
o0101 authored Aug 1, 2024
2 parents 81623f2 + 308ed68 commit ae7af0b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.*.swp

# Bundling and packaging
bin/*
build/bin/*

17 changes: 16 additions & 1 deletion stampers/nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF > 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
Expand Down
12 changes: 11 additions & 1 deletion stampers/win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae7af0b

Please sign in to comment.