Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Added check for Windows builds so copy works (#528)

Chris Plaatjesc8e38240321d
diff --git a/API/API.csproj b/API/API.csproj
index 7d2707e28..c49d3eb28 100644
--- a/API/API.csproj
+++ b/API/API.csproj
@@ -73,7 +73,6 @@
<ItemGroup>
<ProjectReference Include="..\Kavita.Common\Kavita.Common.csproj" />
- <Content Condition=" '$(Configuration)' == 'Release' " Include="appsettings.json" />
</ItemGroup>
diff --git a/Dockerfile b/Dockerfile
index 496db0002..a1d36ee56 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,8 +26,7 @@ RUN apt-get update \
#Creates the data directory
RUN mkdir /kavita/data
-RUN cp /kavita/appsettings.Development.json /kavita/appsettings.json \
- && sed -i 's/Data source=kavita.db/Data source=data\/kavita.db/g' /kavita/appsettings.json
+RUN sed -i 's/Data source=kavita.db/Data source=data\/kavita.db/g' /kavita/appsettings.json
COPY entrypoint.sh /entrypoint.sh
diff --git a/build.sh b/build.sh
index d2ff49006..ccecbd597 100755
--- a/build.sh
+++ b/build.sh
@@ -97,7 +97,13 @@ Package()
cp ../LICENSE "$lOutputFolder"/LICENSE.txt
echo "Renaming API -> Kavita"
- mv "$lOutputFolder"/API "$lOutputFolder"/Kavita
+
+ if [ $runtime == "win-x64" ] || [ $runtime == "win-x86" ]
+ then
+ mv "$lOutputFolder"/API.exe "$lOutputFolder"/Kavita.exe
+ else
+ mv "$lOutputFolder"/API "$lOutputFolder"/Kavita
+ fi
echo "Creating tar"
cd ../$outputFolder/"$runtime"/