Update repo location

This commit is contained in:
Liza 2023-07-31 02:58:24 +02:00
parent 79ad7fbc39
commit 6260f35b61

View File

@ -13,12 +13,10 @@ internal sealed class RepoVerification
public RepoVerification(ILogger<RepoVerification> logger, DalamudPluginInterface pluginInterface, Chat chat)
{
logger.LogInformation("Install source: {Repo}", pluginInterface.SourceRepository);
if (!pluginInterface.IsDev
&& !pluginInterface.SourceRepository.StartsWith("https://raw.githubusercontent.com/carvelli/")
&& !pluginInterface.SourceRepository.StartsWith("https://github.com/carvelli/"))
if (!pluginInterface.IsDev && pluginInterface.SourceRepository.TrimEnd('/') != "https://plugins.carvel.li")
{
chat.Error(string.Format(Localization.Error_WrongRepository,
"https://github.com/carvelli/Dalamud-Plugins"));
"https://plugins.carvel.li"));
throw new RepoVerificationFailedException();
}
}