Files
TRIMSP/.gitignore
salman db390d3969 Add Windows WSL2 engine runtime
Windows cannot run the bundled Linux TRIM.SP-NL engine natively. Package the
same statically linked engine as a private WSL2 rootfs archive and launch it
through wsl.exe, mirroring the muSRFlow approach.

- packaging/wsl2/build-wsl2.sh builds trimspNL-runtime-rootfs.tar.gz from the
  static engine (no distro libraries needed; refuses a dynamically linked
  binary) into a minimal almalinux:8 rootfs at /opt/trimsp-runtime.
- wsl-runtime.js: pure main-process module that checks for and imports the
  distribution on first run, with an injectable spawner and a plain status
  contract (skipped/missing-rootfs/already-present/imported/import-failed).
- main.js imports the runtime in the background at startup, broadcasts
  wslRuntimeStatus, and exposes wslRuntimeStatus/ensureWslRuntime over IPC.
- TrimSPelec.js detects a Windows host with the bundled engine, translates
  Windows paths to /mnt/<drive>, routes executeFileAsync and the synchronous
  single-run command through wsl.exe, and gates the first run on the import
  via window.TrimSPRuntimeGate.
- TrimSPlib.js installs a no-op gate default and awaits it in startSequence.
- forge.config.js ships the rootfs via packagerConfig.extraResource when built.
- tests/wsl-runtime.test.js (11 cases) covers the module and the renderer
  launch translation, including inertness on Linux.
2026-10-20 09:31:25 +02:00

144 lines
2.2 KiB
Plaintext

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
.env.production
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
# my additions
*~
trimspNL
resources/bin/trimspNL
fortran/trimspNL
fortran/trimspNL-static
# Local development metadata and backup files
.codex
*.cbk
# Fortran compiler/profiling products
*.o
*.mod
gmon.out
fortran/trimspNL-debug
fortran/trimspNL-profile
# Generated alternative-RNG validation output trees
/tests-pcg32/
/tests-xoshiro/
# WSL2 rootfs build output (built by packaging/wsl2)
/packaging/wsl2/out/