Fix CLI project name for docker

This commit is contained in:
whimsical-c4lic0 2026-02-20 02:52:52 -06:00
parent 0a709f97ea
commit e409e4a16c
2 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ ARG VERSION
# Copy source code
COPY ["OF DL.sln", "/src/OF DL.sln"]
COPY ["OF DL", "/src/OF DL"]
COPY ["OF DL.Cli", "/src/OF DL.Cli"]
COPY ["OF DL.Core", "/src/OF DL.Core"]
COPY ["OF DL.Gui", "/src/OF DL.Gui"]
@ -12,10 +12,10 @@ WORKDIR "/src"
# Build release
RUN dotnet publish "OF DL.Gui/OF DL.Gui.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outgui
RUN dotnet publish "OF DL/OF DL.Cli.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outcli
RUN dotnet publish "OF DL.Cli/OF DL.Cli.csproj" -p:WarningLevel=0 -p:Version=$VERSION -c Release -o outcli
# Generate default config.conf files
RUN /src/outcli/OF\ DL --non-interactive || true && \
RUN /src/outcli/OF\ DL.Cli --non-interactive || true && \
# Set download path in default config.conf to /data
sed -e 's/DownloadPath = ""/DownloadPath = "\/data"/' /src/config.conf > /src/updated_config.conf && \
mv /src/updated_config.conf /src/config.conf
@ -53,7 +53,7 @@ COPY --from=build /src/outgui /app/gui
# Copy default configuration files
COPY --from=build /src/config.conf /default-config
COPY --from=build ["/src/OF DL/rules.json", "/default-config"]
COPY --from=build ["/src/OF DL.Cli/rules.json", "/default-config"]
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY docker/entrypoint.sh /app/entrypoint.sh

View File

@ -24,7 +24,7 @@ if [[ " $@ " =~ " --cli " ]]; then
fi
done
/app/cli/OF\ DL "${filtered_args[@]}"
/app/cli/OF\ DL.Cli "${filtered_args[@]}"
else
# GUI mode - start X server and window manager
{