Skip to content

Commit

Permalink
merge hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm360 committed Nov 10, 2023
2 parents 6906fba + 5cb4dfd commit 397c403
Show file tree
Hide file tree
Showing 87 changed files with 208 additions and 115 deletions.
106 changes: 96 additions & 10 deletions .github/workflows/publish-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,124 @@ jobs:

strategy:
matrix:
kind: ['linux', 'linuxselfcontained', 'macos', 'macosselfcontained', 'windows', 'windowsselfcontained']
kind: [
'linux-x86',
'linux-x64',
'linux-arm',
'linux-arm64',

'linux-selfcont-x86',
'linux-selfcont-x64',
'linux-selfcont-arm',
'linux-selfcont-arm64',

'macos-x64',
'macos-arm64',

'macos-selfcont-x64',
'macos-selfcont-arm64',

'windows-x86',
'windows-x64',
'windows-arm',
'windows-arm64',

'windows-selfcont-x86',
'windows-selfcont-x64',
'windows-selfcont-arm',
'windows-selfcont-arm64']
include:
- kind: linux
- kind: linux-x86
os: ubuntu-latest
target: linux-x86
frameworktype: --no-self-contained
- kind: linux-x64
os: ubuntu-latest
target: linux-x64
frameworktype: --no-self-contained
- kind: linuxselfcontained
- kind: linux-arm
os: ubuntu-latest
target: linux-arm
frameworktype: --no-self-contained
- kind: linux-arm64
os: ubuntu-latest
target: linux-arm64
frameworktype: --no-self-contained

- kind: linux-selfcont-x86
os: ubuntu-latest
target: linux-x86
frameworktype: --self-contained
- kind: linux-selfcont-x64
os: ubuntu-latest
target: linux-x64
frameworktype: --self-contained
- kind: macos
- kind: linux-selfcont-arm
os: ubuntu-latest
target: linux-arm
frameworktype: --self-contained
- kind: linux-selfcont-arm64
os: ubuntu-latest
target: linux-arm64
frameworktype: --self-contained

- kind: macos-x64
os: macOS-latest
target: osx-x64
frameworktype: --no-self-contained
- kind: macosselfcontained
- kind: macos-arm64
os: macOS-latest
target: osx-arm64
frameworktype: --no-self-contained

- kind: macos-selfcont-x64
os: macOS-latest
target: osx-x64
frameworktype: --self-contained
- kind: windows
- kind: macos-selfcont-arm64
os: macOS-latest
target: osx-arm64
frameworktype: --self-contained

- kind: windows-x86
os: windows-latest
target: win-x86
frameworktype: --no-self-contained
- kind: windows-x64
os: windows-latest
target: win-x64
frameworktype: --no-self-contained
- kind: windowsselfcontained
- kind: windows-arm
os: windows-latest
target: win-arm
frameworktype: --no-self-contained
- kind: windows-arm64
os: windows-latest
target: win-arm64
frameworktype: --no-self-contained

- kind: windows-selfcont-x86
os: windows-latest
target: win-x86
frameworktype: --self-contained
- kind: windows-selfcont-x64
os: windows-latest
target: win-x64
frameworktype: --self-contained
- kind: windows-selfcont-arm
os: windows-latest
target: win-arm
frameworktype: --self-contained
- kind: windows-selfcont-arm64
os: windows-latest
target: win-arm64
frameworktype: --self-contained

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -59,7 +145,7 @@ jobs:
# Build everything
dotnet publish src/EthernaVideoImporter/EthernaVideoImporter.csproj --runtime "${{ matrix.target }}" "${{ matrix.frameworktype }}" -c Release -o "$release_name"
# Pack files
if [ "${{ matrix.target }}" == "win-x64" ]; then
if [ "${{ matrix.kind }}" == windows* ]; then
7z a -tzip "${release_name}.zip" "./${release_name}/*"
else
tar czvf "${release_name}.tar.gz" "$release_name"
Expand All @@ -73,7 +159,7 @@ jobs:
# Build everything
dotnet publish src/EthernaVideoImporter.Devcon/EthernaVideoImporter.Devcon.csproj --runtime "${{ matrix.target }}" "${{ matrix.frameworktype }}" -c Release -o "$release_name"
# Pack files
if [ "${{ matrix.target }}" == "win-x64" ]; then
if [ "${{ matrix.kind }}" == windows* ]; then
7z a -tzip "${release_name}.zip" "./${release_name}/*"
else
tar czvf "${release_name}.tar.gz" "$release_name"
Expand Down
2 changes: 1 addition & 1 deletion .idea/.idea.EthernaVideoImporter/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/.idea.EthernaVideoImporter/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions EthernaVideoImporter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
README.md = README.md
.gitignore = .gitignore
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{1E5D1B5B-4926-4F7F-97A9-19DAE5065550}"
Expand Down
4 changes: 2 additions & 2 deletions EthernaVideoImporter.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue"> Copyright 2022-present Etherna Sagl
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue"> Copyright 2022-present Etherna SA

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -16,4 +16,4 @@
<s:Boolean x:Key="/Default/UserDictionary/Words/=etherna/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Fmpeg/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Fprobe/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Sagl/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
</wpf:ResourceDictionary>
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ General Options:
Video Management Options:
-t, --ttl TTL (days) Postage Stamp (default: 365 days)
-o, --offer Offer video downloads to everyone
-p, --pin Pin videos
--no-pin Don't pin videos (pinning by default)
--force Force upload video if they already have been uploaded
-m, --remove-missing Remove indexed videos generated with this tool but missing from source
--remove-unrecognized Remove indexed videos not generated with this tool
Expand Down Expand Up @@ -90,7 +90,7 @@ General Options:
Video Management Options:
-t, --ttl TTL (days) Postage Stamp (default: 365 days)
-o, --offer Offer video downloads to everyone
-p, --pin Pin videos
--no-pin Don't pin videos (pinning by default)
--force Force upload video if they already have been uploaded
-m, --remove-missing Remove indexed videos generated with this tool but missing from source
--remove-unrecognized Remove indexed videos not generated with this tool
Expand Down
6 changes: 3 additions & 3 deletions src/EthernaVideoImporter.Core/CommonConsts.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -25,8 +25,8 @@ public sealed class CommonConsts
public const int BeeApiPort = 1633;
public const int BeeDebugPort = 1635;
public const string BeeNodeUrl = "http://localhost/";
public const GatewayApiVersion BeeNodeGatewayVersion = GatewayApiVersion.v4_0_0;
public const DebugApiVersion BeeNodeDebugVersion = DebugApiVersion.v4_0_0;
public const GatewayApiVersion BeeNodeGatewayVersion = GatewayApiVersion.v5_0_0;
public const DebugApiVersion BeeNodeDebugVersion = DebugApiVersion.v5_0_0;
public static readonly string DefaultFFmpegFolder = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "FFmpeg");
public const int DownloadMaxRetry = 3;
public static readonly TimeSpan DownloadTimespanRetry = TimeSpan.FromMilliseconds(3500);
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/EthernaVersionControl.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net7.0</TargetFramework>
<RootNamespace>Etherna.VideoImporter.Core</RootNamespace>

<Authors>Etherna Sagl</Authors>
<Authors>Etherna SA</Authors>
<Description>A .Net console for upload video on Etherna</Description>

<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -23,9 +23,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Bee.Net" Version="0.2.0-alpha.193" />
<PackageReference Include="Bee.Net" Version="0.2.0-alpha.210" />
<PackageReference Include="Blurhash.SkiaSharp" Version="2.0.0" />
<PackageReference Include="Etherna.YoutubeDownloader.Converter" Version="6.3.8" />
<PackageReference Include="Etherna.YoutubeDownloader.Converter" Version="6.3.9" />
<PackageReference Include="EthernaServicesClient.Users.Native" Version="0.3.2" />
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
<PrivateAssets>all</PrivateAssets>
Expand All @@ -40,7 +40,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.5" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.6" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/EthernaVideoImporter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/IEthernaVideoImporter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/Models/Domain/FileBase.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/Models/Domain/IFile.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/Models/Domain/IVideoFile.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/Models/Domain/SourceFile.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/Models/Domain/SourceUri.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/EthernaVideoImporter.Core/Models/Domain/Video.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022-present Etherna Sagl
// Copyright 2022-present Etherna SA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 397c403

Please sign in to comment.