Fixing the PKGBUILD

This commit is contained in:
Zoe Roux 2021-02-06 01:38:22 +01:00
parent be2d3e324f
commit 9938cb87f4
2 changed files with 3 additions and 1 deletions

View File

@ -170,7 +170,7 @@ namespace Kyoo
app.UseHsts();
}
FileExtensionContentTypeProvider contentTypeProvider = new FileExtensionContentTypeProvider();
FileExtensionContentTypeProvider contentTypeProvider = new();
contentTypeProvider.Mappings[".data"] = "application/octet-stream";
app.UseStaticFiles(new StaticFileOptions {ContentTypeProvider = contentTypeProvider});
if (!env.IsDevelopment())

View File

@ -21,6 +21,8 @@ sha256sums=("SKIP" "SKIP" "SKIP" "SKIP")
prepare() {
# cd "Kyoo-$pkgver"
cd "Kyoo"
# This is necessary since submodules paths are relative and PKGBUILD remote are the local directory.
git remote set-url origin https://github.com/AnonymusRaccoon/Kyoo
git submodule update --init --recursive
}