-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1674 from willend/main
Improvements to deployment of mcdisplay-webgl
- Loading branch information
Showing
5 changed files
with
111 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
@REM Script for calling mcdoc -i after installation of McStas/McXtrace | ||
@set PATH=c:\\@FLAVOR@-@VERSION@\\bin;c:\\@FLAVOR@-@VERSION@\\miniconda3;%PATH% | ||
@call @[email protected] -i | ||
@cd c:\\@FLAVOR@-@VERSION@\\lib\\tools\\Python\\@P@display\\webgl | ||
@npm.cmd install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
@set PATH=c:\\@FLAVOR@-@VERSION@\\bin;c:\\@FLAVOR@-@VERSION@\\miniconda3;%PATH% | ||
@cd %~dp0 | ||
@REM Isn't windows a lovely place??? | ||
@set WORKDIR=%cd% | ||
@set TOOLDIR=%~dp0 | ||
@cd %USERPROFILE%\AppData | ||
@if not exist "@FLAVOR@\" mkdir @FLAVOR@ | ||
@cd @FLAVOR@ | ||
@if not exist "@MCCODE_VERSION@\" mkdir @MCCODE_VERSION@ | ||
@cd @MCCODE_VERSION@ | ||
@if not exist "webgl\" mkdir webgl | ||
@cd webgl | ||
@copy /Y %TOOLDIR%\*.tsx . | ||
@copy /Y %TOOLDIR%\*.css . | ||
@copy /Y %TOOLDIR%\index.html . | ||
@copy /Y %TOOLDIR%\*.js . | ||
@copy /Y %TOOLDIR%\package.json . | ||
@Xcopy %TOOLDIR%\Contexts\ Contexts /c /i /e /h /y | ||
@xcopy %TOOLDIR%\utils\ utils /c /i /e /h /y | ||
@xcopy %TOOLDIR%\data-utils\ data-utils /c /i /e /h /y | ||
@xcopy %TOOLDIR%\components\ components /c /i /e /h /y | ||
@call npm.cmd install | ||
@call npm.cmd run build | ||
@cd %WORKDIR%\ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
#!/usr/bin/env bash | ||
@MCCODE_BASH_STANDARD_PREAMBLE@ | ||
|
||
set -e | ||
cd ${HOME} && mkdir -p .@FLAVOR@ && cd .@FLAVOR@ && mkdir -p @MCCODE_VERSION@ && cd @MCCODE_VERSION@ && mkdir -p webgl && cd webgl | ||
|
||
FILE=${0} | ||
cd `dirname $FILE` | ||
TOOLDIR=`dirname $FILE` | ||
cp ${TOOLDIR}/*.tsx . | ||
cp ${TOOLDIR}/*.css . | ||
cp ${TOOLDIR}/index.html . | ||
cp ${TOOLDIR}/*.js . | ||
cp ${TOOLDIR}/package.json . | ||
rsync -avz ${TOOLDIR}/Contexts/ Contexts | ||
rsync -avz ${TOOLDIR}/utils/ utils | ||
rsync -avz ${TOOLDIR}/data-utils/ data-utils | ||
rsync -avz ${TOOLDIR}/components/ components | ||
npm install | ||
npm run build |