mirror of
https://github.com/EpicMorg/atlassian-downloader.git
synced 2025-01-14 12:47:55 +03:00
commit
738d657061
4
.github/workflows/dotnet-develop.yml
vendored
4
.github/workflows/dotnet-develop.yml
vendored
@ -17,6 +17,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
include-prerelease: true
|
||||
|
||||
- name: Restore
|
||||
env:
|
||||
|
4
.github/workflows/dotnet-master.yml
vendored
4
.github/workflows/dotnet-master.yml
vendored
@ -14,6 +14,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '6.0.x'
|
||||
include-prerelease: true
|
||||
|
||||
- name: Restore
|
||||
env:
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Atlassian Downloader - Changelog
|
||||
|
||||
* `1.0.0.8` - switched to `dontet6.0`, updated deps.
|
||||
* `1.0.0.7` - added `unofficial support` of `sourcetree` via automatic mirror [from github](https://github.com/EpicMorg/atlassian-json). fixed `logger` output, code improvments.
|
||||
* `1.0.0.6` - added support of `clover`. fixed broken json parsing. added new `logger`.
|
||||
* `1.0.0.5` - added support for `EAP` releases.
|
||||
|
@ -105,34 +105,13 @@ namespace EpicMorg.Atlassian.Downloader
|
||||
SetConsoleTitle();
|
||||
if (options.Version)
|
||||
{
|
||||
logger.LogInformation($"{assemblyName} {assemblyVersion} {assemblyEnvironment} {assemblyBuildType}");
|
||||
Console.BackgroundColor = ConsoleColor.Black;
|
||||
WriteColorLine("%╔═╦═══════════════════════════════════════════════════════════════════════════════════════╦═╗");
|
||||
WriteColorLine("%╠═╝ .''. %╚═%╣");
|
||||
WriteColorLine("%║ .:cc;. %║");
|
||||
WriteColorLine("%║ .;cccc;. %║");
|
||||
WriteColorLine("%║ .;cccccc;. !╔══════════════════════════════════════════════╗ %║");
|
||||
WriteColorLine("%║ .:ccccccc;. !║ " + assemblyName + " !║ %║");
|
||||
WriteColorLine("%║ 'ccccccccc;. !╠══════════════════════════════════════════════╣ %║");
|
||||
WriteColorLine("%║ ,cccccccccc;. !║ &Code: @kastkack !║ %║");
|
||||
WriteColorLine("%║ ,ccccccccccc;. !║ &GFX: @stam !║ %║");
|
||||
WriteColorLine("%║ .... .:ccccccccccc;. !╠══════════════════════════════════════════════╣ %║");
|
||||
WriteColorLine("%║ .',,'..;cccccccccccc;. !║ &Version: " + assemblyVersion + " !║ %║");
|
||||
WriteColorLine("%║ .,,,,,'.';cccccccccccc;. !║ &GitHub: $EpicMorg/atlassian-downloader !║ %║");
|
||||
WriteColorLine("%║ .,;;;;;,'.':cccccccccccc;. !╚══════════════════════════════════════════════╝ %║");
|
||||
WriteColorLine("%║ .;:;;;;;;,...:cccccccccccc;. %║");
|
||||
WriteColorLine("%║ .;:::::;;;;'. .;:ccccccccccc;. %║");
|
||||
WriteColorLine("%║ .:cc::::::::,. ..:ccccccccccc;. %║");
|
||||
WriteColorLine("%║ .:cccccc:::::' .:ccccccccccc;. %║");
|
||||
WriteColorLine("%║ .;:::::::::::,. .;:::::::::::,. %║");
|
||||
WriteColorLine("%╠═╗ ............ ............ %╔═╣");
|
||||
WriteColorLine("%╚═╩═══════════════════════════════════════════════════════════════════════════════════════╩═╝");
|
||||
Console.ResetColor();
|
||||
ShowVersionInfo();
|
||||
}
|
||||
else
|
||||
{
|
||||
var feedUrls = this.GetFeedUrls();
|
||||
|
||||
ShowVersionInfo();
|
||||
logger.LogInformation($"Task started");
|
||||
foreach (var feedUrl in feedUrls)
|
||||
{
|
||||
@ -176,6 +155,33 @@ namespace EpicMorg.Atlassian.Downloader
|
||||
this.hostApplicationLifetime.StopApplication();
|
||||
}
|
||||
|
||||
private void ShowVersionInfo()
|
||||
{
|
||||
logger.LogInformation($"{assemblyName} {assemblyVersion} {assemblyEnvironment} {assemblyBuildType}");
|
||||
Console.BackgroundColor = ConsoleColor.Black;
|
||||
WriteColorLine("%╔═╦═══════════════════════════════════════════════════════════════════════════════════════╦═╗");
|
||||
WriteColorLine("%╠═╝ .''. %╚═%╣");
|
||||
WriteColorLine("%║ .:cc;. %║");
|
||||
WriteColorLine("%║ .;cccc;. %║");
|
||||
WriteColorLine("%║ .;cccccc;. !╔══════════════════════════════════════════════╗ %║");
|
||||
WriteColorLine("%║ .:ccccccc;. !║ " + assemblyName + " !║ %║");
|
||||
WriteColorLine("%║ 'ccccccccc;. !╠══════════════════════════════════════════════╣ %║");
|
||||
WriteColorLine("%║ ,cccccccccc;. !║ &Code: @kastkack !║ %║");
|
||||
WriteColorLine("%║ ,ccccccccccc;. !║ &GFX: @stam !║ %║");
|
||||
WriteColorLine("%║ .... .:ccccccccccc;. !╠══════════════════════════════════════════════╣ %║");
|
||||
WriteColorLine("%║ .',,'..;cccccccccccc;. !║ &Version: " + assemblyVersion + " !║ %║");
|
||||
WriteColorLine("%║ .,,,,,'.';cccccccccccc;. !║ &GitHub: $EpicMorg/atlassian-downloader !║ %║");
|
||||
WriteColorLine("%║ .,;;;;;,'.':cccccccccccc;. !╚══════════════════════════════════════════════╝ %║");
|
||||
WriteColorLine("%║ .;:;;;;;;,...:cccccccccccc;. %║");
|
||||
WriteColorLine("%║ .;:::::;;;;'. .;:ccccccccccc;. %║");
|
||||
WriteColorLine("%║ .:cc::::::::,. ..:ccccccccccc;. %║");
|
||||
WriteColorLine("%║ .:cccccc:::::' .:ccccccccccc;. %║");
|
||||
WriteColorLine("%║ .;:::::::::::,. .;:::::::::::,. %║");
|
||||
WriteColorLine("%╠═╗ ............ ............ %╔═╣");
|
||||
WriteColorLine("%╚═╩═══════════════════════════════════════════════════════════════════════════════════════╩═╝");
|
||||
Console.ResetColor();
|
||||
}
|
||||
|
||||
private async Task<(string json, IDictionary<string, ResponseItem[]> versions)> GetJson(string feedUrl, CancellationToken cancellationToken)
|
||||
{
|
||||
var atlassianJson = await client.GetStringAsync(feedUrl, cancellationToken).ConfigureAwait(false);
|
||||
|
@ -7,7 +7,7 @@
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<PublishTrimmed>true</PublishTrimmed>
|
||||
<PublishReadyToRun>true</PublishReadyToRun>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ApplicationIcon>favicon.ico</ApplicationIcon>
|
||||
<PackageId>EpicMorg.Atlassian.Downloader</PackageId>
|
||||
<Authors>EpicMorg, kasthack, stam</Authors>
|
||||
@ -17,8 +17,8 @@
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<RepositoryUrl>https://github.com/EpicMorg/atlassian-downloader</RepositoryUrl>
|
||||
<PackageTags>atlassian, donwloader, epicmorg</PackageTags>
|
||||
<AssemblyVersion>1.0.0.7</AssemblyVersion>
|
||||
<FileVersion>1.0.0.7</FileVersion>
|
||||
<AssemblyVersion>1.0.0.8</AssemblyVersion>
|
||||
<FileVersion>1.0.0.8</FileVersion>
|
||||
<Version>1.0.0.7</Version>
|
||||
<Copyright>EpicMorg 2021</Copyright>
|
||||
<Product>Atlassian Downloader</Product>
|
||||
@ -27,16 +27,16 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="5.0.0" />
|
||||
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.2-dev-10284" />
|
||||
<PackageReference Include="Serilog.Settings.Configuration" Version="3.2.0-dev-00264" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.0-dev-00839" />
|
||||
<PackageReference Include="Serilog" Version="2.10.1-dev-01265" />
|
||||
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.3.0-alpha.20574.7" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0-preview.7.21377.19" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0-preview.7.21377.19" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0-preview.7.21377.19" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0-preview.7.21377.19" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0-preview.7.21377.19" />
|
||||
<PackageReference Include="Serilog.Extensions.Logging" Version="3.0.2-dev-10289" />
|
||||
<PackageReference Include="Serilog.Settings.Configuration" Version="3.2.1-dev-00288" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1-dev-00876" />
|
||||
<PackageReference Include="Serilog" Version="2.11.0-dev-01367" />
|
||||
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.3.0-alpha.21216.1" />
|
||||
<None Include="favicon.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
|
@ -1,10 +1,10 @@
|
||||
SET DOTNET_CLI_TELEMETRY_OPTOUT=true
|
||||
SET DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
|
||||
|
||||
dotnet.exe publish -r win7-x64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
|
||||
dotnet.exe publish -r win7-x86 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
|
||||
dotnet.exe publish -r win81-arm --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
|
||||
dotnet.exe publish -r win10-arm64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
|
||||
dotnet.exe publish -r linux-x64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet.exe publish -r linux-musl-x64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet.exe publish -r osx-x64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet.exe publish -r win7-x64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
|
||||
dotnet.exe publish -r win7-x86 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
|
||||
dotnet.exe publish -r win81-arm --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
|
||||
dotnet.exe publish -r win10-arm64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=true
|
||||
dotnet.exe publish -r linux-x64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet.exe publish -r linux-musl-x64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet.exe publish -r osx-x64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
14
src/build.sh
14
src/build.sh
@ -2,10 +2,10 @@
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=true
|
||||
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
|
||||
|
||||
dotnet publish -r win7-x64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r win7-x86 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r win81-arm --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r win10-arm64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r linux-x64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r linux-musl-x64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r osx-x64 --self-contained true --framework net5.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r win7-x64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r win7-x86 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r win81-arm --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r win10-arm64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=true -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r linux-x64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r linux-musl-x64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
||||
dotnet publish -r osx-x64 --self-contained true --framework net6.0 --configuration Release -p:PublishTrimmed=false -p:PublishSingleFile=false -p:PublishReadyToRun=false
|
Loading…
x
Reference in New Issue
Block a user