dotnet8 draft switch

x BROKEN x
This commit is contained in:
STAM 2023-10-11 16:36:59 +03:00
parent a361285d62
commit c2d6260d61
Signed by: stam
GPG Key ID: 4F57E51F9C45F8CD
3 changed files with 94 additions and 76 deletions

View File

@ -1,5 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<PublishSingleFile>true</PublishSingleFile>
@ -8,7 +7,7 @@
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishTrimmed>true</PublishTrimmed>
<PublishReadyToRun>true</PublishReadyToRun>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ApplicationIcon>favicon.ico</ApplicationIcon>
<PackageId>EpicMorg.Atlassian.Downloader</PackageId>
<Authors>EpicMorg, kasthack, stam</Authors>
@ -27,32 +26,30 @@
<Company>EpicMorg</Company>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="3.1.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.4.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageReference Include="Serilog" Version="2.12.0" />
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.3.0-alpha.21216.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="7.0.1-dev-10354" />
<PackageReference Include="Serilog.Settings.Configuration" Version="7.0.2-dev-00546" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.2.0-dev-00918" />
<PackageReference Include="Serilog" Version="3.1.0-dev-02078" />
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.4.0-alpha.22272.1" />
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="favicon.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
<PackagePath>
</PackagePath>
</None>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0-rc.2.23479.6" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0-rc.2.23479.6" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0-rc.2.23479.6" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0-rc.2.23479.6" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0-rc.2.23479.6" />
</ItemGroup>
<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
</Project>

View File

@ -1,36 +1,47 @@
SET DOTNET_CLI_TELEMETRY_OPTOUT=true
SET DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
dotnet.exe publish --runtime win7-x64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet.exe publish --runtime win7-x86 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet.exe publish --runtime win81-arm --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet.exe publish --runtime win10-arm64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet.exe publish --runtime linux-x64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime linux-musl-x64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime osx-x64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime win-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet.exe publish --runtime win-x86 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet.exe publish --runtime win-arm64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet.exe publish --runtime osx-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime osx-arm64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime linux-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime linux-musl-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime linux-arm --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime linux-arm64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet.exe publish --runtime linux-bionic-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
del /F bin\\Release\\net6.0\\linux-musl-x64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net6.0\\linux-x64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net6.0\\osx-x64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net6.0\\win10-arm64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net6.0\\win7-x64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net6.0\\win7-x86\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net6.0\\win81-arm\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\win-x64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\win-x86\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\win-arm64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\osx-x64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\osx-arm64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\linux-x64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\linux-musl-x64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\linux-arm\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\linux-arm64\\publish\\atlassian-downloader.pdb
del /F bin\\Release\\net8.0\\linux-bionic-x64\\publish\\atlassian-downloader.pdb
type nul > bin/Release/net6.0/linux-musl-x64/publish/createdump.exe.ignore
type nul > bin/Release/net6.0/linux-x64/publish/createdump.exe.ignore
type nul > bin/Release/net6.0/osx-x64/publish/createdump.exe.ignore
type nul > bin/Release/net6.0/win10-arm64/publish/createdump.exe.ignore
type nul > bin/Release/net6.0/win7-x64/publish/createdump.exe.ignore
type nul > bin/Release/net6.0/win7-x86/publish/createdump.exe.ignore
type nul > bin/Release/net6.0/win81-arm/publish/createdump.exe.ignore
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-linux-musl-x64.zip ./bin/Release/net6.0/linux-musl-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-linux-x64.zip ./bin/Release/net6.0/linux-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-osx-x64.zip ./bin/Release/net6.0/osx-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-win10-arm64.zip ./bin/Release/net6.0/win10-arm64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-win7-x64.zip ./bin/Release/net6.0/win7-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-win7-x86.zip ./bin/Release/net6.0/win7-x86/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-win81-arm.zip ./bin/Release/net6.0/win81-arm/publish/*
type nul > bin/Release/net8.0/win-x64/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/win-x86/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/win-arm64/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/osx-x64/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/osx-arm64/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/linux-x64/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/linux-musl-x64/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/linux-arm/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/linux-arm64/publish/createdump.exe.ignore
type nul > bin/Release/net8.0/linux-bionic-x64/publish/createdump.exe.ignore
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-win-x64.zip ./bin/Release/net8.0/win-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-win-x86.zip ./bin/Release/net8.0/win-x86/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-win-arm64.zip ./bin/Release/net8.0/win-arm64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-osx-x64.zip ./bin/Release/net8.0/osx-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-osx-arm64.zip ./bin/Release/net8.0/osx-arm64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-x64.zip ./bin/Release/net8.0/linux-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-musl-x64.zip ./bin/Release/net8.0/linux-musl-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-arm.zip ./bin/Release/net8.0/linux-arm/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-arm64.zip ./bin/Release/net8.0/linux-arm64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-bionic-x64.zip ./bin/Release/net8.0/linux-bionic-x64/publish/*

View File

@ -2,36 +2,46 @@
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
dotnet publish --runtime win7-x64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime win7-x86 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime win81-arm --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime win10-arm64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime linux-x64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime linux-musl-x64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime osx-x64 --force --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime win-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet publish --runtime win-x86 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet publish --runtime win-arm64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
dotnet publish --runtime osx-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime osx-arm64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime linux-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=fal
dotnet publish --runtime linux-musl-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=falsese
dotnet publish --runtime linux-arm --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime linux-arm64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
dotnet publish --runtime linux-bionic-x64 --force --self-contained true --framework net8.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
rm -rfv ./bin/Release/net6.0/linux-musl-x64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net6.0/linux-x64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net6.0/osx-x64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net6.0/win10-arm64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net6.0/win7-x64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net6.0/win7-x86/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net6.0/win81-arm/publish/atlassian-downloader.pdb
touch ./bin/Release/net6.0/linux-musl-x64/publish/createdump.exe.ignore
touch ./bin/Release/net6.0/linux-x64/publish/createdump.exe.ignore
touch ./bin/Release/net6.0/osx-x64/publish/createdump.exe.ignore
touch ./bin/Release/net6.0/win10-arm64/publish/createdump.exe.ignore
touch ./bin/Release/net6.0/win7-x64/publish/createdump.exe.ignore
touch ./bin/Release/net6.0/win7-x86/publish/createdump.exe.ignore
touch ./bin/Release/net6.0/win81-arm/publish/createdump.exe.ignore
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-linux-musl-x64.zip ././bin/Release/net6.0/linux-musl-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-linux-x64.zip ././bin/Release/net6.0/linux-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-osx-x64.zip ././bin/Release/net6.0/osx-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-win10-arm64.zip ././bin/Release/net6.0/win10-arm64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-win7-x64.zip ././bin/Release/net6.0/win7-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-win7-x86.zip ././bin/Release/net6.0/win7-x86/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net6.0-win81-arm.zip ././bin/Release/net6.0/win81-arm/publish/*
rm -rfv ./bin/Release/net8.0/win-x64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/win-x86/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/win-arm64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/osx-x64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/osx-arm64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/linux-x64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/linux-musl-x64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/linux-arm/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/linux-arm64/publish/atlassian-downloader.pdb
rm -rfv ./bin/Release/net8.0/linux-bionic-x64/publish/atlassian-downloader.pdb
touch ./bin/Release/net8.0/win-x64/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/win-x86/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/win-arm64/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/osx-x64/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/osx-arm64/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/linux-x64/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/linux-musl-x64/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/linux-arm/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/linux-arm64/publish/createdump.exe.ignore
touch ./bin/Release/net8.0/linux-bionic-x64/publish/createdump.exe.ignore
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-win-x64.zip ././bin/Release/net8.0/win-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-win-x86.zip ././bin/Release/net8.0/win-x86/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-win-arm64.zip ././bin/Release/net8.0/win-arm64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-osx-x64.zip ././bin/Release/net8.0/osx-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-osx-arm64.zip ././bin/Release/net8.0/osx-arm64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-x64.zip ././bin/Release/net8.0/linux-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-musl-x64.zip ././bin/Release/net8.0/linu-musl-x64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-arm.zip ././bin/Release/net8.0/linux-arm/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-arm64.zip ././bin/Release/net8.0/linux-arm64/publish/*
7z a -tzip -mx5 -r0 ./bin/atlassian-downloader-net8.0-linux-bionic-x64.zip ././bin/Release/net8.0/linu-bionic-x64/publish/*