Fixed several bugs
This commit is contained in:
parent
35f959ee26
commit
fb5b5ea831
2 changed files with 18 additions and 16 deletions
|
|
@ -8,11 +8,11 @@ ENV BUILDPLATFORM=${BUILDPLATFORM:-linux/amd64}
|
|||
RUN mkdir /appclient
|
||||
WORKDIR /appclient
|
||||
|
||||
COPY ./ .
|
||||
|
||||
RUN apk add --no-cache git python3 py3-pip make g++
|
||||
|
||||
RUN \
|
||||
echo "**** Cloning Source Code ****" && \
|
||||
git clone https://github.com/rogerfar/rdt-client.git . && \
|
||||
cd client && \
|
||||
echo "**** Building Code ****" && \
|
||||
npm ci && \
|
||||
|
|
@ -30,9 +30,9 @@ ENV BUILDPLATFORM=${BUILDPLATFORM:-linux/amd64}
|
|||
RUN mkdir /appserver
|
||||
WORKDIR /appserver
|
||||
|
||||
COPY ./ .
|
||||
|
||||
RUN \
|
||||
echo "**** Cloning Source Code ****" && \
|
||||
git clone https://github.com/rogerfar/rdt-client.git . && \
|
||||
echo "**** Building Source Code for $TARGETPLATFORM on $BUILDPLATFORM ****" && \
|
||||
cd server && \
|
||||
dotnet restore --no-cache RdtClient.sln && dotnet publish --no-restore -c Release -o out ;
|
||||
|
|
|
|||
|
|
@ -37,18 +37,6 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
|
|||
var pathWithoutFileName = path.Replace(fileName, "").TrimEnd(['\\', '/']);
|
||||
var searchPath = Path.Combine(rcloneMountPath, pathWithoutFileName);
|
||||
|
||||
List<String> unWantedExtensions =
|
||||
[
|
||||
".zip",
|
||||
".rar",
|
||||
".tar"
|
||||
];
|
||||
|
||||
if (unWantedExtensions.Any(m => fileExtension == m))
|
||||
{
|
||||
throw new($"Cant handle compressed files with symlink downloader");
|
||||
}
|
||||
|
||||
DownloadProgress?.Invoke(this,
|
||||
new()
|
||||
{
|
||||
|
|
@ -135,6 +123,20 @@ public class SymlinkDownloader(String uri, String destinationPath, String path)
|
|||
|
||||
throw new("Could not find file from rclone mount!");
|
||||
}
|
||||
|
||||
List<String> unWantedExtensions =
|
||||
[
|
||||
".zip",
|
||||
".rar",
|
||||
".tar"
|
||||
];
|
||||
|
||||
if (unWantedExtensions.Any(m => fileExtension == m))
|
||||
{
|
||||
_logger.Debug($"Ignoring file {file}; has unwanted extension");
|
||||
DownloadComplete?.Invoke(this, new());
|
||||
return file;
|
||||
}
|
||||
|
||||
_logger.Debug($"Creating symbolic link from {file} to {destinationPath}");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue