-
Notifications
You must be signed in to change notification settings - Fork 527
Expand file tree
/
Copy pathbuild_for_inky.command
More file actions
executable file
·22 lines (17 loc) · 1.33 KB
/
build_for_inky.command
File metadata and controls
executable file
·22 lines (17 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cd "`dirname "$0"`"
set -e
# Build for each platform
dotnet publish -c Release -r win-x86 --self-contained true /p:PublishTrimmed=false /p:PublishSingleFile=true -o BuildForInky inklecate/inklecate.csproj
mv BuildForInky/inklecate.exe BuildForInky/inklecate_win.exe
# Build both Intel and Apple Silicon binaries, then join them together into a universal Mac build using lipo
rm -rf BuildForInky/osx-x64 BuildForInky/osx-arm64
dotnet publish -c Release -r osx-x64 --self-contained true /p:PublishTrimmed=false /p:PublishSingleFile=true -o BuildForInky/osx-x64 inklecate/inklecate.csproj
dotnet publish -c Release -r osx-arm64 --self-contained true /p:PublishTrimmed=false /p:PublishSingleFile=true -o BuildForInky/osx-arm64 inklecate/inklecate.csproj
rm -f BuildForInky/inklecate_mac
lipo -create BuildForInky/osx-x64/inklecate BuildForInky/osx-arm64/inklecate -output BuildForInky/inklecate_mac
rm -rf BuildForInky/osx-x64 BuildForInky/osx-arm64
dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishTrimmed=false /p:PublishSingleFile=true -o BuildForInky inklecate/inklecate.csproj
mv BuildForInky/inklecate BuildForInky/inklecate_linux
# Copy the runtime and compiler debug symbols in
cp ink-engine-runtime/bin/Release/netstandard2.0/ink-engine-runtime.pdb BuildForInky/
cp compiler/bin/Release/netstandard2.0/ink_compiler.pdb BuildForInky/