Exemplo n.º 1
0
        private void DistributeFiles(RelaseRequest request)
        {
            List <string> filesToDistribute = new List <string>
            {
                Path.Combine(request.ReleasePath, Extensions.RELEASE_INFO_FILENAME),
                Path.Combine(request.ReleasePath, Extensions.SETUP_EXE_FILENAME),
                Path.Combine(request.ReleasePath, Extensions.SETUP_MSI_FILENAME),
                Path.Combine(request.ReleasePath, $"{request.AppId}-{request.Version}-full.nupkg"),
            };
            string deltaFile = Path.Combine(request.ReleasePath, $"{request.AppId}-{request.Version}-delta.nupkg");

            if (File.Exists(deltaFile))
            {
                filesToDistribute.Add(deltaFile);
            }
            filesToDistribute.Reverse();
            _distributor.DistributeRelease(filesToDistribute);
        }