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

[fix] #1084 WS2P: Update UI to 1.6.x

parent 11a1b027
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ cp -R "$DOWNLOADS/node-${NVER}-linux-${ARCH}" node ...@@ -62,7 +62,7 @@ cp -R "$DOWNLOADS/node-${NVER}-linux-${ARCH}" node
echo "yarn" echo "yarn"
yarn yarn
yarn add duniter-ui@1.4.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 sed -i "s/duniter\//..\/..\/..\/..\//g" node_modules/duniter-ui/server/controller/webmin.js
SRC=`pwd` SRC=`pwd`
echo $SRC echo $SRC
......
...@@ -80,7 +80,7 @@ rm -Rf .git ...@@ -80,7 +80,7 @@ rm -Rf .git
#[[ $? -eq 0 ]] && yarn test #[[ $? -eq 0 ]] && yarn test
# Duniter UI # Duniter UI
[[ $? -eq 0 ]] && yarn add duniter-ui@1.4.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 ]] && sed -i "s/duniter\//..\/..\/..\/..\//g" node_modules/duniter-ui/server/controller/webmin.js
[[ $? -eq 0 ]] && npm prune --production [[ $? -eq 0 ]] && npm prune --production
......
set DUNITER_BRANCH=1.4.x
set VER_UI=%DUNITER_BRANCH%
set ADDON_VERSION=48 set ADDON_VERSION=48
set NW_VERSION=0.17.6 set NW_VERSION=0.17.6
set NODEJS_VERSION=6.11.1 set NODEJS_VERSION=6.11.1
...@@ -46,7 +43,7 @@ call npm cache clean ...@@ -46,7 +43,7 @@ call npm cache clean
call npm install 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@%VER_UI% --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 REM sed -i "s/duniter\//..\/..\/..\/..\//g" node_modules/duniter-ui/server/controller/webmin.js
cd node_modules\duniter-ui\server\controller\ cd node_modules\duniter-ui\server\controller\
powershell -Command "(Get-Content webmin.js) | foreach-object {$_ -replace 'duniter/','../../../../' } | Set-Content webmin.js2" powershell -Command "(Get-Content webmin.js) | foreach-object {$_ -replace 'duniter/','../../../../' } | Set-Content webmin.js2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment