Skip to content

Commit 095dfc8

Browse files
Added build scripts for Linux and OS X
1 parent f56f7b2 commit 095dfc8

File tree

9 files changed

+44
-7
lines changed

9 files changed

+44
-7
lines changed

GuiStack/GuiStack.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
</ItemGroup>
3131

3232
<ItemGroup>
33-
<None Include="..\scripts\default-run-windows.bat" Link="run.bat" Condition="'$(RuntimeIdentifier)'=='win-x64'">
33+
<None Include="..\scripts\default-run-windows.bat" Link="run.bat" Condition="$(RuntimeIdentifier.StartsWith('win'))">
34+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
35+
</None>
36+
<None Include="..\scripts\default-run-unix.sh" Link="run.sh" Condition="$(RuntimeIdentifier.StartsWith('linux')) OR $(RuntimeIdentifier.StartsWith('osx'))">
3437
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3538
</None>
3639
</ItemGroup>

build-all.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
echo "Building GuiStack for Windows..."
4+
./build-windows.sh
5+
6+
echo "Building GuiStack for Linux..."
7+
./build-linux.sh
8+
9+
echo "Building GuiStack for OS X..."
10+
./build-osx.sh

build-linux.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
./scripts/build.sh linux-x64

build-osx.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
./scripts/build.sh osx-x64

build-windows.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

build-windows.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
./scripts/build.sh win-x64

scripts/build-win-x64.bat

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
if [ -z "$1" ]; then
4+
echo "No runtime identifier specified"
5+
exit 1
6+
fi
7+
8+
# To ensure Git Bash/MinGW doesn't try to interpret and convert slashes into Windows paths
9+
export MSYS_NO_PATHCONV=1
10+
11+
dotnet publish GuiStack.sln /consoleloggerparameters:NoSummary /property:GenerateFullPaths=true /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained false -c Release -r "$1"

scripts/default-run-unix.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
export AWS_ACCESS_KEY_ID=localstack
4+
export AWS_SECRET_ACCESS_KEY=localstack
5+
export AWS_REGION=eu-central-1
6+
export AWS_S3_ENDPOINT_URL=http://localhost:4566
7+
export AWS_SQS_ENDPOINT_URL=http://localhost:4566
8+
export AWS_S3_FORCE_PATH_STYLE=true
9+
10+
./GuiStack

0 commit comments

Comments
 (0)