-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.cmd
More file actions
66 lines (51 loc) · 3.31 KB
/
publish.cmd
File metadata and controls
66 lines (51 loc) · 3.31 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
echo *** Setup environment
rmdir /s /q "publish"
mkdir publish
if defined __VCVARSALL_HOST_ARCH (
echo __VCVARSALL_HOST_ARCH is set to "%__VCVARSALL_HOST_ARCH%"
) else (
echo __VCVARSALL_HOST_ARCH is NOT set, setting environment
call "C:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
)
cd
cd J:\ASCOMSentinel
echo *** Publishing Linux X64
dotnet publish -c Release /p:Platform="Any CPU" -r linux-x64 --framework net10.0 --self-contained true /p:PublishTrimmed=false /p:PublishSingleFile=true
echo *** Creating tar file
tar -cJf publish/sentinel.linux-x64.needsexec.tar.xz -C Sentinel\bin\Release\net10.0\linux-x64\publish\ *
echo *** Completed Linux X64echo *** Publishing MacOS Intel silicon
dotnet publish -c Debug -p:Platform="Any CPU" -r osx-x64 --framework net10.0 --self-contained true /p:PublishTrimmed=false -p:PublishSingleFile=true -p:PublishReadyToRunShowWarnings=true
echo *** Creating tar file
tar -cJf publish/sentinel.macos-x64.tar.xz -C Sentinel\bin\Debug\net10.0\osx-x64\publish\ *
echo *** Completed MacOS Intel silicon
echo *** Publishing MacOS Apple silicon
dotnet publish -c Debug -p:Platform="Any CPU" -r osx-arm64 --framework net10.0 --self-contained true /p:PublishTrimmed=false -p:PublishSingleFile=true
echo *** Creating tar file
tar -cJf publish/sentinel.macos-arm64.tar.xz -C Sentinel\bin\Debug\net10.0\osx-arm64\publish\ *
echo *** Completed MacOS Apple silicon
echo *** Publishing Linux ARM32
dotnet publish -c Debug /p:Platform="Any CPU" -r linux-arm --framework net10.0 --self-contained true /p:PublishTrimmed=false /p:PublishSingleFile=true
echo *** Creating tar file
tar -cJf publish/sentinel.linux-arm32.needsexec.tar.xz -C Sentinel\bin\Debug\net10.0\linux-arm\publish\ *
echo *** Completed Linux ARM32
echo *** Publishing Linux ARM64
dotnet publish -c Debug /p:Platform="Any CPU" -r linux-arm64 --framework net10.0 --self-contained true /p:PublishTrimmed=false /p:PublishSingleFile=true
echo *** Creating tar file
tar -cJf publish/sentinel.linux-arm64.needsexec.tar.xz -C Sentinel\bin\Debug\net10.0\linux-arm64\publish\ *
echo *** Completed Linux ARM64
echo *** Publishing Windows ARM 64bit
dotnet publish Sentinel/Sentinel.csproj -c Debug /p:Platform="Any CPU" -r win-arm64 --framework net10.0 --self-contained true /p:DefineConstants=WINDOWS /p:PublishTrimmed=false /p:PublishSingleFile=true -o ./publish/SentinelArm64/
echo *** Completed Windows ARM 64bit publish
echo *** Publishing Windows Intel 64bit
dotnet publish Sentinel/Sentinel.csproj -c Debug /p:Platform="Any CPU" -r win-x64 --framework net10.0 --self-contained true /p:DefineConstants=WINDOWS /p:PublishTrimmed=false /p:PublishSingleFile=true -o ./publish/Sentinelx64/
echo *** Completed Windows Intel 64bit publish
rem The Intel 32bit version serves on ARM64 as well because .NET doesn't support publishing 32bit Windows-Arm executables
echo *** Publishing Windows Intel 32bit
dotnet publish Sentinel/Sentinel.csproj -c Debug /p:Platform="Any CPU" -r win-x86 --framework net10.0 --self-contained true /p:DefineConstants=WINDOWS /p:PublishTrimmed=false /p:PublishSingleFile=true -o ./publish/Sentinelx86/
echo *** Completed Windows Intel 32bit publish
echo *** Creating Windows installer
cd J:\ASCOMSentinel\Setup
"C:\Program Files (x86)\Inno Setup 6\iscc.exe" "Sentinel.iss"
cd ..
echo *** Builds complete
pause