Skip to content

Commit

Permalink
build scripts improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
stamepicmorg committed Jul 21, 2023
2 parents e8182ff + d39833a commit 0d76178
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 3 deletions.
28 changes: 27 additions & 1 deletion src/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,30 @@ dotnet.exe publish --runtime win81-arm --force --self-contained true --framewor
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 osx-x64 --force --self-contained true --framework net6.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

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/*


30 changes: 28 additions & 2 deletions src/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/./bin/bash
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true

Expand All @@ -8,4 +8,30 @@ dotnet publish --runtime win81-arm --force --self-contained true --framework ne
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 osx-x64 --force --self-contained true --framework net6.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/*


0 comments on commit 0d76178

Please sign in to comment.