-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-win-x64.sh
More file actions
executable file
·34 lines (28 loc) · 912 Bytes
/
Copy pathbuild-win-x64.sh
File metadata and controls
executable file
·34 lines (28 loc) · 912 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
32
33
34
#!/bin/bash
echo "Building UiRobotSSE for Windows x64..."
# Clean previous builds
echo "Cleaning previous builds..."
dotnet clean UiRobotSSE/UiRobotSSE.csproj -c Release
# Build and publish
echo "Publishing self-contained executable..."
dotnet publish UiRobotSSE/UiRobotSSE.csproj \
-c Release \
-r win-x64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true \
-o ./publish-win-x64
if [ $? -eq 0 ]; then
echo "Build successful!"
# Create zip package
echo "Creating portable package..."
zip -j UiRobotSSE-portable-win-x64.zip \
publish-win-x64/UiRobotSSE.exe \
publish-win-x64/appsettings.json \
publish-win-x64/appsettings.Development.json
echo "Package created: UiRobotSSE-portable-win-x64.zip"
ls -lh UiRobotSSE-portable-win-x64.zip
else
echo "Build failed!"
exit 1
fi