Skip to content

Commit

Permalink
Add missing index.html and require npm run build during install phase.
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Aug 12, 2024
1 parent e5ac7ce commit 1431d2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Python/mcdisplay/webgl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ install(
)

# Other .py infrastructure
foreach(NAME start-vite.js package.json mcdisplay.js Lut.js OrbitControls.js dat.gui.min.js jquery.min.js three.min.js template.html __init__.py common.css main.tsx App.tsx)
foreach(NAME start-vite.js package.json mcdisplay.js Lut.js OrbitControls.js dat.gui.min.js jquery.min.js three.min.js template.html __init__.py common.css main.tsx App.tsx index.html)
install(
FILES "${PROJECT_SOURCE_DIR}/${NAME}"
DESTINATION "${DEST_TOOLDIR}/${TOOLS_NAME}"
Expand Down
1 change: 1 addition & 0 deletions tools/Python/mcdisplay/webgl/npminstall.bat.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@set PATH=c:\\@FLAVOR@-@VERSION@\\bin;c:\\@FLAVOR@-@VERSION@\\miniconda3;%PATH%
@cd %~dp0
@npm.cmd install
@npm.cmd run build

1 change: 1 addition & 0 deletions tools/Python/mcdisplay/webgl/npminstall.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ set -e
FILE=${0}
cd `dirname $FILE`
npm install
npm run build

0 comments on commit 1431d2e

Please sign in to comment.