-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-linux-arm64.sh
More file actions
executable file
·38 lines (31 loc) · 1.26 KB
/
build-linux-arm64.sh
File metadata and controls
executable file
·38 lines (31 loc) · 1.26 KB
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
35
36
37
#!/bin/bash
# Build script for linux-arm64 target
# This script builds the application for Yocto/embedded Linux ARM64 targets
#
# Output location: bin/Release/net8.0/linux-arm64/publish/
# This matches the structure expected by Yocto recipes which typically
# copy artifacts from the build output directory.
set -e
echo "Building InstDotNet for linux-arm64..."
echo "Cleaning previous build artifacts..."
# Clean previous builds to avoid conflicts
dotnet clean InstDotNet.csproj -c Release 2>/dev/null || true
rm -rf bin/Release/net8.0/linux-arm64 obj/Release/net8.0/linux-arm64
echo "Building and publishing for linux-arm64..."
# Build and publish for linux-arm64 as self-contained
dotnet publish InstDotNet.csproj \
-c Release \
-r linux-arm64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true \
-o bin/Release/net8.0/linux-arm64/publish
echo ""
echo "Build completed successfully!"
echo ""
echo "Output location: bin/Release/net8.0/linux-arm64/publish/"
echo ""
echo "Build artifacts:"
ls -lh bin/Release/net8.0/linux-arm64/publish/ | grep -E "InstDotNet|\.so|createdump" || ls -lh bin/Release/net8.0/linux-arm64/publish/
echo ""
echo "Main executable: bin/Release/net8.0/linux-arm64/publish/InstDotNet"