Import the 2026-10-09 source release, Fastify/SQLite backend, restored source assets, and analytics-enabled server build. Replace files from the previous release while retaining the existing repository history. Make builds portable across Windows and Linux, configure local startup, normalize Windows static asset paths, and fix test fixture cleanup and file URL handling. Exclude local environment settings, databases, dependencies, validation output, and TypeScript build cache from version control. Validation: npm ci, static and server builds, 106 arrival tests, and actual local HTTP checks passed. The full suite passed 467 of 470 tests; three tests still require QA fixtures omitted from the supplied release, documented in README-서버실행.md.
31 lines
2.1 KiB
JavaScript
31 lines
2.1 KiB
JavaScript
// Restore byte-identical editable source assets from the included server build.
|
|
import {copyFileSync,mkdirSync} from 'node:fs';
|
|
import {dirname,resolve} from 'node:path';
|
|
import {fileURLToPath} from 'node:url';
|
|
const root=fileURLToPath(new URL('..',import.meta.url));
|
|
const files={
|
|
"public/THIRD-PARTY-NOTICES.txt": "dist/THIRD-PARTY-NOTICES.txt",
|
|
"public/fonts/BMKkubulim.woff": "dist/fonts/BMKkubulim.woff",
|
|
"public/licenses/Threejs-MIT.txt": "dist/licenses/Threejs-MIT.txt",
|
|
"public/licenses/HuggingFace-Jinja-MIT.txt": "dist/licenses/HuggingFace-Jinja-MIT.txt",
|
|
"public/licenses/Driverjs-MIT.txt": "dist/licenses/Driverjs-MIT.txt",
|
|
"public/licenses/ONNX-Runtime-ThirdPartyNotices.txt": "dist/licenses/ONNX-Runtime-ThirdPartyNotices.txt",
|
|
"public/licenses/Apache-2.0.txt": "dist/licenses/Apache-2.0.txt",
|
|
"public/licenses/ONNX-Runtime-MIT.txt": "dist/licenses/ONNX-Runtime-MIT.txt",
|
|
"public/licenses/BMKkubulim-OFL.txt": "dist/licenses/BMKkubulim-OFL.txt",
|
|
"public/assets/samples/dog3.jpg": "dist/assets/samples/dog3.jpg",
|
|
"public/assets/samples/dog5.jpg": "dist/assets/samples/dog5.jpg",
|
|
"public/assets/samples/dog2.jpg": "dist/assets/samples/dog2.jpg",
|
|
"public/assets/samples/dog4.jpg": "dist/assets/samples/dog4.jpg",
|
|
"public/assets/samples/dog1.jpg": "dist/assets/samples/dog1.jpg",
|
|
"public/assets/window/grandma-house-surround.glb": "dist/assets/window/grandma-house-surround.glb",
|
|
"public/assets/window/grandma-wood-sash.glb": "dist/assets/window/grandma-wood-sash.glb",
|
|
"public/models/u2netp/LICENSES.txt": "dist/models/u2netp/LICENSES.txt",
|
|
"public/models/u2netp/manifest.json": "dist/models/u2netp/manifest.json",
|
|
"public/models/u2netp/model.onnx": "dist/models/u2netp/model.onnx",
|
|
"docs/qa-five-photos/reference2.png": "dist/assets/reference2-6y7JVIce.png",
|
|
"docs/qa-five-photos/reference1.png": "dist/assets/reference1-D4rK2azX.png"
|
|
};
|
|
for(const [target,source] of Object.entries(files)){const to=resolve(root,target);mkdirSync(dirname(to),{recursive:true});copyFileSync(resolve(root,source),to);}
|
|
console.log('Source assets restored:',Object.keys(files).length);
|