Windows builds
This commit is contained in:
parent
80e6667f41
commit
87ce10fe8b
|
@ -1,3 +1,5 @@
|
|||
*.blob
|
||||
.\build\*
|
||||
22120-arc
|
||||
|
||||
.*.swp
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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/
|
||||
|
|
|
@ -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%"
|
||||
|
|
Loading…
Reference in New Issue