-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
executable file
·31 lines (25 loc) · 829 Bytes
/
build.ps1
File metadata and controls
executable file
·31 lines (25 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
param(
[string] $Tag
)
## Info
echo "## You are going to build with tag: $Tag"
## Clear Build Cache
echo "## Clearing Build Cache"
rm -rf ServerEntry.Build
## Build ApiServer
echo "## Building ApiServer ..."
Set-Location ServerEntry.ApiServer
dotnet publish -p:PublishProfile=Properties/PublishProfiles/linux-x64-single.pubxml
Set-Location ..
### Change mode
Set-Location ServerEntry.Build/server-entry-linux-x64-single
chmod +x ServerEntry.ApiServer
Set-Location ../..
## Build Frontend
echo "## Building Frontend ..."
Set-Location ServerEntry.Dashboard/server_entry_dashboard
flutter build web --release --web-renderer canvaskit --tree-shake-icons --no-web-resources-cdn
Copy-Item -r build/web ../../ServerEntry.Build/frontend/
Set-Location ../..
## Build Docker
sudo docker build . -t nimbusasm/server-entry:$Tag