From c2d6260d61fb0fdb7f8e1d800a41c5e0ac7837dd Mon Sep 17 00:00:00 2001 From: STAM Date: Wed, 11 Oct 2023 16:36:59 +0300 Subject: [PATCH] dotnet8 draft switch x BROKEN x --- src/atlassian-downloader.csproj | 31 +++++++-------- src/build.bat | 69 ++++++++++++++++++-------------- src/build.sh | 70 +++++++++++++++++++-------------- 3 files changed, 94 insertions(+), 76 deletions(-) diff --git a/src/atlassian-downloader.csproj b/src/atlassian-downloader.csproj index df4d620..062e11a 100644 --- a/src/atlassian-downloader.csproj +++ b/src/atlassian-downloader.csproj @@ -1,5 +1,4 @@  - Exe true @@ -8,7 +7,7 @@ win-x64 true true - net6.0 + net8.0 favicon.ico EpicMorg.Atlassian.Downloader EpicMorg, kasthack, stam @@ -27,32 +26,30 @@ EpicMorg README.md - - - - - - - - - - - + + + + + True \ True - + + + + + + + - Always - - + \ No newline at end of file diff --git a/src/build.bat b/src/build.bat index 6ff5a3a..34b3f42 100644 --- a/src/build.bat +++ b/src/build.bat @@ -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/* diff --git a/src/build.sh b/src/build.sh index 219374a..679cc95 100644 --- a/src/build.sh +++ b/src/build.sh @@ -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/*