Updating the pkgbuild & no attachments listing

This commit is contained in:
Zoe Roux 2021-03-30 01:11:36 +02:00
parent 13393927ae
commit 532c422fa2
3 changed files with 6 additions and 3 deletions

View File

@ -51,7 +51,9 @@ namespace Kyoo.Controllers
{
if (path == null)
throw new ArgumentNullException(nameof(path));
return Task.FromResult<ICollection<string>>(Directory.GetFiles(path));
return Task.FromResult<ICollection<string>>(Directory.Exists(path)
? Directory.GetFiles(path)
: Array.Empty<string>());
}
public Task<bool> Exists(string path)

View File

@ -8,8 +8,8 @@ arch=("i686" "x86_64" "armv6h")
url="https://github.com/AnonymusRaccoon/Kyoo"
license=("GPLv3")
groups=()
depends=("dotnet-runtime-bin>=5" "aspnet-runtime-bin>=5" "postgresql")
makedepends=("dotnet-sdk-bin>=5" "cmake" "gcc" "make" "npm" "git")
depends=("dotnet-runtime>=5" "aspnet-runtime>=5" "postgresql")
makedepends=("dotnet-sdk>=5" "cmake" "gcc" "make" "npm" "git")
install="kyoo.install"
source=("git+https://github.com/AnonymusRaccoon/Kyoo" #tag=v${pkgver}
"kyoo.service"

View File

@ -1,3 +1,4 @@
post_install() {
sudo -u postgres dropuser kyoo --if-exist
sudo -u postgres createuser -d kyoo
}