Skip to content

Commit eb4064f

Browse files
authored
feat(IP2Region): add data folder (#321)
* chore: bump version 9.0.1 * refactor: 增加数据文件夹 * refactor: 更新自动化部署脚本
1 parent e2b8890 commit eb4064f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/BootstrapBlazor.IP2Region/BootstrapBlazor.IP2Region.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.0</Version>
4+
<Version>9.0.1</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.IP2Region/Build/BootstrapBlazor.IP2Region.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</ItemGroup>
66

77
<Target Name="CopyFiles" AfterTargets="Build">
8-
<Copy SourceFiles="@(Files)" DestinationFolder="$(TargetDir)/%(RecursiveDir)"/>
8+
<Copy SourceFiles="@(Files)" DestinationFolder="$(TargetDir)/ip2region/%(RecursiveDir)"/>
99
</Target>
1010

1111
</Project>

src/components/BootstrapBlazor.IP2Region/Services/IP2RegionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public IP2RegionService(IOptions<BootstrapBlazorOptions> options, IOptions<IP2Re
4949

5050
private void InitSearch()
5151
{
52-
var xdbPath = _ipOptions.Value.XdbPath ?? Path.Combine(AppContext.BaseDirectory, "ip2region.xdb");
52+
var xdbPath = _ipOptions.Value.XdbPath ?? Path.Combine(AppContext.BaseDirectory, "ip2region", "ip2region.xdb");
5353
if (!File.Exists(xdbPath))
5454
{
5555
_logger.LogWarning("IP2Region xdb file not found, please check the file path: {dbPath}", xdbPath);

0 commit comments

Comments
 (0)