-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3a425e
commit 5b416bc
Showing
90 changed files
with
1,730 additions
and
618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. | ||
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com | ||
|
||
|
||
namespace TgDownloaderBlazor; | ||
|
||
public partial class App | ||
{ | ||
private static bool IsCurrentDirSet { get; set; } | ||
|
||
public App() | ||
{ | ||
#if DEBUG | ||
if (!IsCurrentDirSet) | ||
{ | ||
IsCurrentDirSet = true; | ||
string debugAnyCpu = | ||
#if NET8_0 | ||
"bin\\Debug_AnyCPU\\net8.0"; | ||
#else | ||
"bin\\Debug_AnyCPU"; | ||
#endif | ||
if (!Environment.CurrentDirectory.Contains(debugAnyCpu) && Environment.Is64BitProcess) | ||
Environment.CurrentDirectory = Path.Combine(Environment.CurrentDirectory, debugAnyCpu); | ||
} | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. | ||
# See https://aka.ms/customizecontainer to learn how to customize your debug container and | ||
# how Visual Studio uses this Dockerfile to build your images for faster debugging. | ||
|
||
# Docker base image | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base | ||
WORKDIR /app | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
ARG BUILD_CONFIGURATION=Release | ||
WORKDIR /src | ||
COPY ["Clients/TgDownloaderBlazor/TgDownloaderBlazor.csproj", "Clients/TgDownloaderBlazor/"] | ||
RUN dotnet restore "./Clients/TgDownloaderBlazor/TgDownloaderBlazor.csproj" | ||
COPY . . | ||
WORKDIR "/src/Clients/TgDownloaderBlazor" | ||
RUN dotnet build "./TgDownloaderBlazor.csproj" -c $BUILD_CONFIGURATION -o /app/build | ||
|
||
FROM build AS publish | ||
ARG BUILD_CONFIGURATION=Release | ||
RUN dotnet publish "./TgDownloaderBlazor.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false | ||
|
||
FROM base AS final | ||
# Image setup | ||
WORKDIR /app | ||
COPY --from=publish /app/publish . | ||
ENTRYPOINT ["dotnet", "TgDownloaderBlazor.dll"] | ||
EXPOSE 7682/tcp | ||
ENV ASPNETCORE_URLS=http://0.0.0.0:7682 | ||
USER app | ||
|
||
# App | ||
COPY "/app" "/app" | ||
ENTRYPOINT ["dotnet", "TgDownloaderBlazor.dll"] |
63 changes: 0 additions & 63 deletions
63
Clients/TgDownloaderBlazor/Features/Apps/AppComponent.razor
This file was deleted.
Oops, something went wrong.
161 changes: 0 additions & 161 deletions
161
Clients/TgDownloaderBlazor/Features/Apps/AppComponent.razor.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.