-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·44 lines (35 loc) · 1.01 KB
/
build.sh
File metadata and controls
executable file
·44 lines (35 loc) · 1.01 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
38
39
40
41
42
43
44
#!/bin/bash
# Master build script for AffinityPluginLoader
# Builds both .NET assemblies and native AffinityBootstrap.dll
set -e
CONFIGURATION="${1:-Release}"
ROOTDIR=$(dirname "$(readlink -f "$0")")
pushd "$ROOTDIR"
echo "========================================"
echo "Building AffinityPluginLoader"
echo "========================================"
echo
# Build .NET projects
echo "[1/3] Building .NET projects..."
dotnet build -c "$CONFIGURATION"
echo
# Build AffinityBootstrap
echo "[2/3] Building AffinityBootstrap..."
cd AffinityBootstrap
bash build.sh
cd ..
# Build d2d1.dll for Wine (x86_64-unix)
echo "[3/3] Building d2d1.dll (Wine native)..."
cd WineFix/lib/d2d1
if command -v winegcc &> /dev/null; then
make TARGET=x86_64-unix
else
echo "Warning: winegcc not found. Skipping d2d1.dll build."
echo "Install wine-devel to build d2d1.dll for Wine."
fi
cd ../../..
echo
echo "========================================"
echo "Build completed successfully!"
echo "========================================"
popd