Windows builds

This commit is contained in:
Cris Stringfellow 2024-08-29 14:58:50 +00:00
parent 80e6667f41
commit 87ce10fe8b
No known key found for this signature in database
4 changed files with 27 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
*.blob
.\build\*
22120-arc
.*.swp

14
3/sea-config.json Normal file
View File

@ -0,0 +1,14 @@
{
"main": "2",
"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"
}
}

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -x
#set -x
source $HOME/.nvm/nvm.sh
rm -rf build
@ -33,7 +33,7 @@ if [[ "$OSTYPE" == darwin* ]]; then
./stampers/macos.sh dn build/cjs/dn.cjs build/bin/
elif [[ "$(node.exe -p process.platform)" == win* ]]; then
echo "Using windows builder..." >&2
./stampers/win.bat dn build/cjs/dn.cjs build/bin/
./stampers/win.bat dn-win.exe ./build/cjs/dn.cjs ./build/bin/
else
echo "Using linux builder..." >&2
./stampers/nix.sh dn build/cjs/dn.cjs build/bin/

View File

@ -11,6 +11,15 @@ if "%~3"=="" (
set "EXE_NAME=%~1"
set "JS_SOURCE_FILE=%~2"
set "OUTPUT_FOLDER=%~3"
set "SEA_CONFIG=sea-config.json"
echo "Exe name: %EXE_NAME%"
echo "JS source: %JS_SOURCE_FILE%"
echo "Output folder: %OUTPUT_FOLDER%"
echo "SEA Config file: %SEA_CONFIG%"
set /p "user_input=Press enter to continue"
:: Ensure output folder exists
if not exist "%OUTPUT_FOLDER%" mkdir "%OUTPUT_FOLDER%"