Skip to content

Commit 9b4fd91

Browse files
committed
Update build scripts
1 parent 9421249 commit 9b4fd91

File tree

3 files changed

+60
-69
lines changed

3 files changed

+60
-69
lines changed

appveyor.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,32 @@ build_script:
1818
- dotnet restore
1919

2020
# Debug
21-
- dotnet publish Test\Test.csproj -f net48 -r win7-x64 -c Debug --self-contained true
2221
- dotnet publish Test\Test.csproj -f net6.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2322
- dotnet publish Test\Test.csproj -f net6.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2423
- dotnet publish Test\Test.csproj -f net6.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
25-
- dotnet publish Test\Test.csproj -f net7.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
26-
- dotnet publish Test\Test.csproj -f net7.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
27-
- dotnet publish Test\Test.csproj -f net7.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
24+
- dotnet publish Test\Test.csproj -f net8.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
25+
- dotnet publish Test\Test.csproj -f net8.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
26+
- dotnet publish Test\Test.csproj -f net8.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2827

2928
# Release
30-
- dotnet publish Test\Test.csproj -f net48 -r win7-x64 -c Release --self-contained true -p:DebugSymbols=false
3129
- dotnet publish Test\Test.csproj -f net6.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
3230
- dotnet publish Test\Test.csproj -f net6.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
3331
- dotnet publish Test\Test.csproj -f net6.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
34-
- dotnet publish Test\Test.csproj -f net7.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
35-
- dotnet publish Test\Test.csproj -f net7.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
36-
- dotnet publish Test\Test.csproj -f net7.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
32+
- dotnet publish Test\Test.csproj -f net8.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
33+
- dotnet publish Test\Test.csproj -f net8.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
34+
- dotnet publish Test\Test.csproj -f net8.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugSymbols=false
3735

3836
# Nuget Package
3937
- dotnet pack BinaryObjectScanner\BinaryObjectScanner.csproj --output %APPVEYOR_BUILD_FOLDER%
4038

4139
# post-build script
4240
after_build:
43-
- cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net6.0\win-x64\publish\
44-
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net6.0_win-x64.zip *
45-
- cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net6.0\linux-x64\publish\
46-
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net6.0_linux-x64.zip *
47-
- cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net6.0\osx-x64\publish\
48-
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net6.0_osx-x64.zip *
41+
- cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net8.0\win-x64\publish\
42+
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net8.0_win-x64.zip *
43+
- cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net8.0\linux-x64\publish\
44+
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net8.0_linux-x64.zip *
45+
- cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net8.0\osx-x64\publish\
46+
- 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net8.0_osx-x64.zip *
4947

5048
# success/failure tracking
5149
on_success:
@@ -57,11 +55,11 @@ on_failure:
5755

5856
# artifact linking
5957
artifacts:
60-
- path: BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net6.0_win-x64.zip
61-
name: BinaryObjectScanner (.NET 6.0, Windows x64)
62-
- path: BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net6.0_linux-x64.zip
63-
name: BinaryObjectScanner (.NET 6.0, Linux x64)
64-
- path: BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net6.0_osx-x64.zip
65-
name: BinaryObjectScanner (.NET 6.0, OSX x64)
58+
- path: BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net8.0_win-x64.zip
59+
name: BinaryObjectScanner (.NET 8.0, Windows x64)
60+
- path: BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net8.0_linux-x64.zip
61+
name: BinaryObjectScanner (.NET 8.0, Linux x64)
62+
- path: BinaryObjectScanner_%APPVEYOR_REPO_COMMIT%_net8.0_osx-x64.zip
63+
name: BinaryObjectScanner (.NET 8.0, OSX x64)
6664
- path: '*.nupkg'
6765
name: Nuget Packages

publish-nix.sh

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22

33
# This batch file assumes the following:
4-
# - .NET 7.0 (or newer) SDK is installed and in PATH
4+
# - .NET 8.0 (or newer) SDK is installed and in PATH
55
# - zip is installed and in PATH
66
# - The relevant commandline programs are already downloaded
77
# and put into their respective folders
@@ -28,17 +28,17 @@ dotnet publish Test/Test.csproj -f net6.0 -r win-x64 -c Release --self-contained
2828
dotnet publish Test/Test.csproj -f net6.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false
2929
dotnet publish Test/Test.csproj -f net6.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false
3030

31-
# .NET 7.0 Debug
32-
echo "Building .NET 7.0 debug"
33-
dotnet publish Test/Test.csproj -f net7.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
34-
dotnet publish Test/Test.csproj -f net7.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
35-
dotnet publish Test/Test.csproj -f net7.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
31+
# .NET 8.0 Debug
32+
echo "Building .NET 8.0 debug"
33+
dotnet publish Test/Test.csproj -f net8.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
34+
dotnet publish Test/Test.csproj -f net8.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
35+
dotnet publish Test/Test.csproj -f net8.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
3636

37-
# .NET 7.0 Release
38-
echo "Building .NET 7.0 release"
39-
dotnet publish Test/Test.csproj -f net7.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false
40-
dotnet publish Test/Test.csproj -f net7.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false
41-
dotnet publish Test/Test.csproj -f net7.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false
37+
# .NET 8.0 Release
38+
echo "Building .NET 8.0 release"
39+
dotnet publish Test/Test.csproj -f net8.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false
40+
dotnet publish Test/Test.csproj -f net8.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false
41+
dotnet publish Test/Test.csproj -f net8.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None -p:DebugSymbols=false
4242

4343
# Create Test Debug archives
4444
cd $BUILD_FOLDER/Test/bin/Debug/net6.0/win-x64/publish/
@@ -47,12 +47,12 @@ cd $BUILD_FOLDER/Test/bin/Debug/net6.0/linux-x64/publish/
4747
zip -r $BUILD_FOLDER/BinaryObjectScanner_net6.0_linux-x64_debug.zip .
4848
cd $BUILD_FOLDER/Test/bin/Debug/net6.0/osx-x64/publish/
4949
zip -r $BUILD_FOLDER/BinaryObjectScanner_net6.0_osx-x64_debug.zip .
50-
cd $BUILD_FOLDER/Test/bin/Debug/net7.0/win-x64/publish/
51-
zip -r $BUILD_FOLDER/BinaryObjectScanner_net7.0_win-x64_debug.zip .
52-
cd $BUILD_FOLDER/Test/bin/Debug/net7.0/linux-x64/publish/
53-
zip -r $BUILD_FOLDER/BinaryObjectScanner_net7.0_linux-x64_debug.zip .
54-
cd $BUILD_FOLDER/Test/bin/Debug/net7.0/osx-x64/publish/
55-
zip -r $BUILD_FOLDER/BinaryObjectScanner_net7.0_osx-x64_debug.zip .
50+
cd $BUILD_FOLDER/Test/bin/Debug/net8.0/win-x64/publish/
51+
zip -r $BUILD_FOLDER/BinaryObjectScanner_net8.0_win-x64_debug.zip .
52+
cd $BUILD_FOLDER/Test/bin/Debug/net8.0/linux-x64/publish/
53+
zip -r $BUILD_FOLDER/BinaryObjectScanner_net8.0_linux-x64_debug.zip .
54+
cd $BUILD_FOLDER/Test/bin/Debug/net8.0/osx-x64/publish/
55+
zip -r $BUILD_FOLDER/BinaryObjectScanner_net8.0_osx-x64_debug.zip .
5656

5757
# Create Test Release archives
5858
cd $BUILD_FOLDER/Test/bin/Release/net6.0/win-x64/publish/
@@ -61,9 +61,9 @@ cd $BUILD_FOLDER/Test/bin/Release/net6.0/linux-x64/publish/
6161
zip -r $BUILD_FOLDER/BinaryObjectScanner_net6.0_linux-x64_release.zip .
6262
cd $BUILD_FOLDER/Test/bin/Release/net6.0/osx-x64/publish/
6363
zip -r $BUILD_FOLDER/BinaryObjectScanner_net6.0_osx-x64_release.zip .
64-
cd $BUILD_FOLDER/Test/bin/Release/net7.0/win-x64/publish/
65-
zip -r $BUILD_FOLDER/BinaryObjectScanner_net7.0_win-x64_release.zip .
66-
cd $BUILD_FOLDER/Test/bin/Release/net7.0/linux-x64/publish/
67-
zip -r $BUILD_FOLDER/BinaryObjectScanner_net7.0_linux-x64_release.zip .
68-
cd $BUILD_FOLDER/Test/bin/Release/net7.0/osx-x64/publish/
69-
zip -r $BUILD_FOLDER/BinaryObjectScanner_net7.0_osx-x64_release.zip .
64+
cd $BUILD_FOLDER/Test/bin/Release/net8.0/win-x64/publish/
65+
zip -r $BUILD_FOLDER/BinaryObjectScanner_net8.0_win-x64_release.zip .
66+
cd $BUILD_FOLDER/Test/bin/Release/net8.0/linux-x64/publish/
67+
zip -r $BUILD_FOLDER/BinaryObjectScanner_net8.0_linux-x64_release.zip .
68+
cd $BUILD_FOLDER/Test/bin/Release/net8.0/osx-x64/publish/
69+
zip -r $BUILD_FOLDER/BinaryObjectScanner_net8.0_osx-x64_release.zip .

publish-win.bat

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
@echo OFF
22

33
REM This batch file assumes the following:
4-
REM - .NET Framework 4.8 SDK is installed and in PATH
5-
REM - .NET 7.0 (or newer) SDK is installed and in PATH
4+
REM - .NET 8.0 (or newer) SDK is installed and in PATH
65
REM - 7-zip commandline (7z.exe) is installed and in PATH
76
REM - The relevant commandline programs are already downloaded
87
REM and put into their respective folders
@@ -19,52 +18,46 @@ dotnet restore
1918

2019
REM Debug
2120
echo Building debug
22-
dotnet publish Test\Test.csproj -f net48 -r win7-x64 -c Debug --self-contained true
2321
dotnet publish Test\Test.csproj -f net6.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2422
dotnet publish Test\Test.csproj -f net6.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2523
dotnet publish Test\Test.csproj -f net6.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
26-
dotnet publish Test\Test.csproj -f net7.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
27-
dotnet publish Test\Test.csproj -f net7.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
28-
dotnet publish Test\Test.csproj -f net7.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
24+
dotnet publish Test\Test.csproj -f net8.0 -r win-x64 -c Debug --self-contained true -p:PublishSingleFile=true
25+
dotnet publish Test\Test.csproj -f net8.0 -r linux-x64 -c Debug --self-contained true -p:PublishSingleFile=true
26+
dotnet publish Test\Test.csproj -f net8.0 -r osx-x64 -c Debug --self-contained true -p:PublishSingleFile=true
2927

3028
REM Release
3129
echo Building release
32-
dotnet publish Test\Test.csproj -f net48 -r win7-x64 -c Release --self-contained true -p:DebugType=None -p:DebugSymbols=false
3330
dotnet publish Test\Test.csproj -f net6.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
3431
dotnet publish Test\Test.csproj -f net6.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
3532
dotnet publish Test\Test.csproj -f net6.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
36-
dotnet publish Test\Test.csproj -f net7.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
37-
dotnet publish Test\Test.csproj -f net7.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
38-
dotnet publish Test\Test.csproj -f net7.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
33+
dotnet publish Test\Test.csproj -f net8.0 -r win-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
34+
dotnet publish Test\Test.csproj -f net8.0 -r linux-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
35+
dotnet publish Test\Test.csproj -f net8.0 -r osx-x64 -c Release --self-contained true -p:PublishSingleFile=true -p:DebugType=None -p:DebugSymbols=false
3936

4037
REM Create Test Debug archives
41-
cd %BUILD_FOLDER%\Test\bin\Debug\net48\win7-x64\publish\
42-
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net48_debug.zip *
4338
cd %BUILD_FOLDER%\Test\bin\Debug\net6.0\win-x64\publish\
4439
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net6.0_win-x64_debug.zip *
4540
cd %BUILD_FOLDER%\Test\bin\Debug\net6.0\linux-x64\publish\
4641
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net6.0_linux-x64_debug.zip *
4742
cd %BUILD_FOLDER%\Test\bin\Debug\net6.0\osx-x64\publish\
4843
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net6.0_osx-x64_debug.zip *
49-
cd %BUILD_FOLDER%\Test\bin\Debug\net7.0\win-x64\publish\
50-
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net7.0_win-x64_debug.zip *
51-
cd %BUILD_FOLDER%\Test\bin\Debug\net7.0\linux-x64\publish\
52-
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net7.0_linux-x64_debug.zip *
53-
cd %BUILD_FOLDER%\Test\bin\Debug\net7.0\osx-x64\publish\
54-
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net7.0_osx-x64_debug.zip *
44+
cd %BUILD_FOLDER%\Test\bin\Debug\net8.0\win-x64\publish\
45+
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net8.0_win-x64_debug.zip *
46+
cd %BUILD_FOLDER%\Test\bin\Debug\net8.0\linux-x64\publish\
47+
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net8.0_linux-x64_debug.zip *
48+
cd %BUILD_FOLDER%\Test\bin\Debug\net8.0\osx-x64\publish\
49+
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net8.0_osx-x64_debug.zip *
5550

5651
REM Create Test Release archives
57-
cd %BUILD_FOLDER%\Test\bin\Release\net48\win7-x64\publish\
58-
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net48_release.zip *
5952
cd %BUILD_FOLDER%\Test\bin\Release\net6.0\win-x64\publish\
6053
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net6.0_win-x64_release.zip *
6154
cd %BUILD_FOLDER%\Test\bin\Release\net6.0\linux-x64\publish\
6255
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net6.0_linux-x64_release.zip *
6356
cd %BUILD_FOLDER%\Test\bin\Release\net6.0\osx-x64\publish\
6457
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net6.0_osx-x64_release.zip *
65-
cd %BUILD_FOLDER%\Test\bin\Release\net7.0\win-x64\publish\
66-
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net7.0_win-x64_release.zip *
67-
cd %BUILD_FOLDER%\Test\bin\Release\net7.0\linux-x64\publish\
68-
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net7.0_linux-x64_release.zip *
69-
cd %BUILD_FOLDER%\Test\bin\Release\net7.0\osx-x64\publish\
70-
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net7.0_osx-x64_release.zip *
58+
cd %BUILD_FOLDER%\Test\bin\Release\net8.0\win-x64\publish\
59+
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net8.0_win-x64_release.zip *
60+
cd %BUILD_FOLDER%\Test\bin\Release\net8.0\linux-x64\publish\
61+
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net8.0_linux-x64_release.zip *
62+
cd %BUILD_FOLDER%\Test\bin\Release\net8.0\osx-x64\publish\
63+
7z a -tzip %BUILD_FOLDER%\BinaryObjectScanner_net8.0_osx-x64_release.zip *

0 commit comments

Comments
 (0)