Skip to content
Snippets Groups Projects
Commit ac909bd8 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] #1121 duniter-ui could not be manually added

parent 26c250a9
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,6 @@ cp -R "$DOWNLOADS/node-${NVER}-linux-${ARCH}" node ...@@ -63,7 +63,6 @@ cp -R "$DOWNLOADS/node-${NVER}-linux-${ARCH}" node
echo "yarn" echo "yarn"
yarn yarn
yarn add duniter-ui@1.6.x --save --production yarn add duniter-ui@1.6.x --save --production
sed -i "s/duniter\//..\/..\/..\/..\//g" node_modules/duniter-ui/server/controller/webmin.js
SRC=`pwd` SRC=`pwd`
echo $SRC echo $SRC
......
...@@ -81,7 +81,6 @@ rm -Rf .git ...@@ -81,7 +81,6 @@ rm -Rf .git
# Duniter UI # Duniter UI
[[ $? -eq 0 ]] && yarn add duniter-ui@1.6.x [[ $? -eq 0 ]] && yarn add duniter-ui@1.6.x
[[ $? -eq 0 ]] && sed -i "s/duniter\//..\/..\/..\/..\//g" node_modules/duniter-ui/server/controller/webmin.js
[[ $? -eq 0 ]] && npm prune --production [[ $? -eq 0 ]] && npm prune --production
......
...@@ -44,11 +44,6 @@ call npm install ...@@ -44,11 +44,6 @@ call npm install
REM call npm test REM call npm test
echo "Ajout du module 1/1 (duniter-ui)..." echo "Ajout du module 1/1 (duniter-ui)..."
call npm install duniter-ui@1.6.x --save --production call npm install duniter-ui@1.6.x --save --production
REM sed -i "s/duniter\//..\/..\/..\/..\//g" node_modules/duniter-ui/server/controller/webmin.js
cd node_modules\duniter-ui\server\controller\
powershell -Command "(Get-Content webmin.js) | foreach-object {$_ -replace 'duniter/','../../../../' } | Set-Content webmin.js2"
move /y webmin.js2 webmin.js
cd ..\..\..\..
echo "Retrait des modules 'dev'..." echo "Retrait des modules 'dev'..."
call npm prune --production call npm prune --production
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment