Merge remote-tracking branch 'oqtane/dev' into dev
This commit is contained in:
commit
c54a48865b
@ -190,7 +190,7 @@ else
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await PackageService.InstallPackagesAsync();
|
await PackageService.InstallPackagesAsync();
|
||||||
AddModuleMessage(string.Format(Localizer["Success.Translation.Install"], NavigateUrl("admin/system")), MessageType.Success);
|
AddModuleMessage(string.Format(Localizer["Success.Language.Install"], NavigateUrl("admin/system")), MessageType.Success);
|
||||||
_install = false;
|
_install = false;
|
||||||
StateHasChanged();
|
StateHasChanged();
|
||||||
}
|
}
|
||||||
|
@ -30,15 +30,12 @@ namespace Oqtane.Infrastructure
|
|||||||
|
|
||||||
public void InstallPackages()
|
public void InstallPackages()
|
||||||
{
|
{
|
||||||
if (!InstallPackages(_environment.WebRootPath, _environment.ContentRootPath))
|
InstallPackages(_environment.WebRootPath, _environment.ContentRootPath);
|
||||||
{
|
|
||||||
// error installing packages
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool InstallPackages(string webRootPath, string contentRootPath)
|
public static bool InstallPackages(string webRootPath, string contentRootPath)
|
||||||
{
|
{
|
||||||
bool install = false;
|
bool install = true;
|
||||||
string binPath = Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location);
|
string binPath = Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location);
|
||||||
|
|
||||||
string sourceFolder = Path.Combine(contentRootPath, "Packages");
|
string sourceFolder = Path.Combine(contentRootPath, "Packages");
|
||||||
@ -81,6 +78,8 @@ namespace Oqtane.Infrastructure
|
|||||||
|
|
||||||
// iterate through Nuget packages in source folder
|
// iterate through Nuget packages in source folder
|
||||||
foreach (string packagename in Directory.GetFiles(sourceFolder, "*.nupkg"))
|
foreach (string packagename in Directory.GetFiles(sourceFolder, "*.nupkg"))
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
// iterate through files
|
// iterate through files
|
||||||
using (ZipArchive archive = ZipFile.OpenRead(packagename))
|
using (ZipArchive archive = ZipFile.OpenRead(packagename))
|
||||||
@ -170,10 +169,16 @@ namespace Oqtane.Infrastructure
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// problem installing package - logging is not possible as this is a static method
|
||||||
|
Debug.WriteLine($"Oqtane Error: Installing Package {packagename} - {ex}");
|
||||||
|
install = false;
|
||||||
|
}
|
||||||
|
|
||||||
// remove package
|
// remove package
|
||||||
File.Delete(packagename);
|
File.Delete(packagename);
|
||||||
install = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return install;
|
return install;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Latest Release
|
# Latest Release
|
||||||
|
|
||||||
[3.4.1](https://github.com/oqtane/oqtane.framework/releases/tag/v3.4.1) was released on Mar 13, 2023 and is primarily focused on performance, as the permissions system has been overhauled to avoid unnecessary encoding and parsing of custom access control strings. This release also includes enhancements to connection string management, numerous stabilization and user experience improvements, and the ability to dynamically generate an XML sitemap for seach engine indexing. This release includes 62 pull requests by 6 different contributors, pushing the total number of project commits all-time over 3300. The Oqtane framework continues to evolve at a rapid pace to meet the needs of .NET developers.
|
[3.4.2](https://github.com/oqtane/oqtane.framework/releases/tag/v3.4.2) was released on Mar 29, 2023 and is primarily focused on performance, as the permissions system has been overhauled to avoid unnecessary encoding and parsing of custom access control strings. This release also includes enhancements to connection string management, numerous stabilization and user experience improvements, and the ability to dynamically generate an XML sitemap for seach engine indexing. This release includes 62 pull requests by 6 different contributors, pushing the total number of project commits all-time over 3300. The Oqtane framework continues to evolve at a rapid pace to meet the needs of .NET developers.
|
||||||
|
|
||||||
# Oqtane Framework
|
# Oqtane Framework
|
||||||
|
|
||||||
@ -50,6 +50,9 @@ This project is open source, and therefore is a work in progress...
|
|||||||
- [ ] File / New Project experience
|
- [ ] File / New Project experience
|
||||||
- [ ] Folder Providers
|
- [ ] Folder Providers
|
||||||
|
|
||||||
|
[3.4.2](https://github.com/oqtane/oqtane.framework/releases/tag/v3.4.2) ( Mar 29, 2023 )
|
||||||
|
- [x] Stabilization improvements
|
||||||
|
|
||||||
[3.4.1](https://github.com/oqtane/oqtane.framework/releases/tag/v3.4.1) ( Mar 13, 2023 )
|
[3.4.1](https://github.com/oqtane/oqtane.framework/releases/tag/v3.4.1) ( Mar 13, 2023 )
|
||||||
- [x] Stabilization improvements
|
- [x] Stabilization improvements
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user