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

[enh] Change WebUI building

parent 433bb294
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,6 @@ after_test:
- if [%APPVEYOR_REPO_TAG_NAME%] neq [] copy %cd%\lib\binding\node-webkit-%NW_RELEASE%-win32-x64\node_sqlite3.node %cd%\lib\binding\node-v%ADDON_VERSION%-win32-x64\node_sqlite3.node /Y
- if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ../..
- if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm prune --production
- if [%APPVEYOR_REPO_TAG_NAME%] neq [] npm install duniter-ui
- if [%APPVEYOR_REPO_TAG_NAME%] neq [] rd /s /q %cd%\node_modules\duniter-ui\node_modules
- if [%APPVEYOR_REPO_TAG_NAME%] neq [] cd ..
- if [%APPVEYOR_REPO_TAG_NAME%] neq [] mkdir duniter_release
......
......@@ -15,24 +15,17 @@ if [[ ! -f before_deploy ]]; then
NW="nwjs-${NW_RELEASE}-linux-x64"
NW_GZ="${NW}.tar.gz"
# Clean testing packages
# Clean test and UI packages
npm prune --production
rm -Rf node_modules/duniter-ui/node_modules
SRC=`pwd`
cd ..
cp -r $SRC npm_ # This one should no more be touched
# Install UI (common to desktop and server)
cd $SRC
npm install duniter-ui
rm -Rf node_modules/duniter-ui/node_modules
cd ..
cp -r $SRC desktop_
# Remove git files
rm -Rf .git
rm -Rf .git "$SRC/.git"
# -------------------------------------------------
# Build Desktop version (Nw.js is embedded)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment