File tree Expand file tree Collapse file tree 2 files changed +39
-4
lines changed Expand file tree Collapse file tree 2 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 1- curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
2- sudo bash nodesource_setup.sh
3- sudo apt-get install nodejs
4- npm rebuild node-sass --force
1+ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
2+ sudo bash nodesource_setup.sh
3+ sudo apt-get install nodejs
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ if [ ! -f " /usr/lib/gdiplus.dll" ]; then
4+ echo " ERROR:"
5+ echo " please install libgdiplus first:"
6+ echo " ================================"
7+ echo " sudo apt-get install libgdiplus"
8+ echo " cd /usr/lib"
9+ echo " ln -s libgdiplus.so gdiplus.dll"
10+ echo " ================================"
11+ exit
12+ fi
13+
14+ if [ ! -d " ../ZKWeb/ZKWeb.Toolkits" ]; then
15+ echo " ERROR:"
16+ echo " please download ZKWeb and put it in the same directory as ZKWeb.MVVMDemo"
17+ exit
18+ fi
19+
20+ echo " building project..."
21+ cd src/ZKWeb.MVVMDemo.AspNetCore
22+ dotnet restore
23+ dotnet build -c Release -f netcoreapp1.1
24+ dotnet publish -c Release -f netcoreapp1.1 -r ubuntu.16.04-x64
25+ cd ../..
26+
27+ echo " building plugins..."
28+ cd src/ZKWeb.MVVMDemo.Console
29+ dotnet restore
30+ dotnet run -c Release -f netcoreapp1.1
31+ cd ../..
32+
33+ echo " publishing website..."
34+ cd ../ZKWeb/ZKWeb.Toolkits/ZKWeb.Toolkits.WebsitePublisher.Cmd
35+ dotnet restore
36+ dotnet run -c Debug -f netcoreapp1.1 -- -f netcoreapp1.1 -x " .*node_modules.*" -r ../../../ZKWeb.MVVMDemo/src/ZKWeb.MVVMDemo.AspNetCore -n " zkweb.mvvm" -o " ../../../publish"
You can’t perform that action at this time.
0 commit comments