Building occt-import-js 0.0.23 (the STEP reader used by this site) =================================================================== What this file describes - occt-import-js 0.0.23, git commit c2148e54b456b571238d35cac037d304053d64b2 https://github.com/kovacsv/occt-import-js/tree/0.0.23 Source archive on this site: occt-import-js-0.0.23-c2148e5-source.tar.gz (same folder). - Open CASCADE Technology (OCCT), git commit d2abb6d844231cb8f29be6894440874a4700e4a5 https://github.com/Open-Cascade-SAS/OCCT/tree/d2abb6d844231cb8f29be6894440874a4700e4a5 This is the commit that occt-import-js 0.0.23 pins as its "occt" git submodule (checked with the GitHub API on 2026-12-02). Upstream .gitmodules lists https://git.dev.opencascade.org/repos/occt.git as the submodule URL. Files the site serves (unmodified npm package files, see /step/occt-import-js-0.0.23/) occt-import-js.js sha256 3fb44ce11d00611f9b3f3c5775d520ebab48930c1f08279b7b1316f05f0d3379 occt-import-js.wasm sha256 33391fc9d94ea5c869a6718488bf0a9a464222bac9bdc764dfe1690cef281952 The file dist/occt-import-js.wasm in the tagged commit has the same sha256 as the served .wasm. Whether a fresh build from the sources reproduces these bytes has not been verified. OCCT source on this site (2 parts, each under 20 MiB) occt-d2abb6d.tar.xz.part-01 18,000,000 bytes sha256 32e48b5ed1b5a293784fa4b37defbe7badd13165accd332b1376b3f0d2ca86da occt-d2abb6d.tar.xz.part-02 17,433,436 bytes sha256 3d0f28e259283cf58fccc884c01b0ec83c0c1100a06dfc0405a57153284bab75 Joined file occt-d2abb6d.tar.xz 35,433,436 bytes sha256 8df72a2b917ed7ae8e04a3a13e13361c390895d0767fdb7c7dfdb23b9c93d194 Join the parts (download both into one folder): Linux / macOS: cat occt-d2abb6d.tar.xz.part-* > occt-d2abb6d.tar.xz Windows (cmd): copy /b occt-d2abb6d.tar.xz.part-01+occt-d2abb6d.tar.xz.part-02 occt-d2abb6d.tar.xz Check: sha256sum occt-d2abb6d.tar.xz (Windows: certutil -hashfile occt-d2abb6d.tar.xz SHA256) Unpack: tar -xJf occt-d2abb6d.tar.xz The tar inside is the unmodified GitHub archive of the commit (the tar.gz from https://codeload.github.com/Open-Cascade-SAS/OCCT/tar.gz/d2abb6d844231cb8f29be6894440874a4700e4a5, 48,218,968 bytes) recompressed with xz -9e. Its single top folder is OCCT-d2abb6d844231cb8f29be6894440874a4700e4a5. Steps (from the upstream README and tools/*.bat of the tagged commit; Windows scripts) 1. Unpack the occt-import-js source archive. GitHub archives leave out git submodules: put the OCCT source tree of the commit above into the empty occt/ folder (the unpacked OCCT-d2abb6d… folder above). 2. Install CMake (3.6 or newer) and add it to PATH. 3. tools\setup_emscripten_win.bat (clones emsdk, installs and activates Emscripten 3.1.69 and mingw-7.1.0-64bit) 4. tools\build_wasm_win_release.bat (runs: emcmake cmake -B build\wasm -G "Unix Makefiles" -DEMSCRIPTEN=1 -DCMAKE_MAKE_PROGRAM=mingw32-make -DCMAKE_BUILD_TYPE=Release . , then emmake mingw32-make -C build\wasm) 5. The build writes build\wasm\Release\occt-import-js.js and occt-import-js.wasm. tools\build_wasm_win_dist.bat builds, runs the tests (npm run test) and copies both files and the two licence files to dist\. On Linux or macOS use the same emsdk version and the same emcmake cmake line with -DCMAKE_BUILD_TYPE=Release. Licences occt-import-js LGPL-2.1 /licenses/texts/LGPL-2.1-occt-import-js.txt Open CASCADE Technology LGPL-2.1 with the Open CASCADE exception 1.0 /licenses/texts/LGPL-2.1-occt.txt /licenses/texts/OCCT-LGPL-exception-1.0.txt This software makes use of facilities provided by the Open CASCADE Technology software.