Skip to content

Commit

Permalink
Fix deps.json compatibility issue
Browse files Browse the repository at this point in the history
Fix #65
  • Loading branch information
liesauer committed May 21, 2024
1 parent e9df68b commit b7db256
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Common/Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PackageOutputPath>.nupkg</PackageOutputPath>
<Version>2.1.4.4</Version>
<Version>2.1.4.5</Version>

<Company>nulastudio</Company>
<Authors>LiesAuer</Authors>
Expand Down
3 changes: 2 additions & 1 deletion NetBeauty/src/main/beauty.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type patchedAppHost struct {
}

var startupHook = "nbloader"
var startupHookVersion = "1.3.0.0"

var workingDir, _ = os.Getwd()

Expand Down Expand Up @@ -156,7 +157,7 @@ func main() {
log.LogDetail("Use Patch: No")
}

success := manager.AddStartUpHookToDeps(deps.deps, startupHook)
success := manager.AddStartUpHookToDeps(deps.deps, startupHook, startupHookVersion)

usePatch = SCDMode && usePatch

Expand Down
4 changes: 2 additions & 2 deletions NetBeauty/src/main/bindata.go

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions NetBeauty/src/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func PatchAppHost(apphost AppHost, entry string) bool {
}

// AddStartUpHookToDeps 添加nbloader启动时钩子到deps.json
func AddStartUpHookToDeps(deps string, hook string) bool {
func AddStartUpHookToDeps(deps string, hook string, version string) bool {
jsonBytes, err := ioutil.ReadFile(deps)
if err != nil {
log.LogError(fmt.Errorf("can not read deps.json: %s : %s", deps, err.Error()), false)
Expand All @@ -283,14 +283,14 @@ func AddStartUpHookToDeps(deps string, hook string) bool {
json.SetPath([]string{
"targets",
runtimeTarget,
hook,
hook + "/" + version,
"runtime",
hook + ".dll",
}, make(map[string]interface{}))

json.SetPath([]string{
"libraries",
hook,
hook + "/" + version,
}, map[string]interface{}{
"type": "project",
"serviceable": false,
Expand Down
Binary file modified NetBeauty/src/nbloader/nbloader.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.4" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion NetBeautyTest/ChromelyTest/ChromelyTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.4" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion NetBeautyTest/NetFxTest/NetFxTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.4" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
<PackageReference Include="SixLabors.ImageSharp">
<Version>2.1.3</Version>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion NetBeautyTest/SharedRuntimeTest/WsClient/WsClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<ItemGroup>
<PackageReference Include="WatsonWebsocket" Version="2.3.2.5" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.4" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion NetBeautyTest/SharedRuntimeTest/WsServer/WsServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

<ItemGroup>
<PackageReference Include="WatsonWebsocket" Version="2.3.2.5" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.4" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion NetBeautyTest/WPFTest/WPFTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.4" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion NetBeautyTest/WebAppTest/WebAppTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.4" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Your `*.csproj` should be like:
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.4" />
<PackageReference Include="nulastudio.NetBeauty" Version="2.1.4.5" />
</ItemGroup>

</Project>
Expand Down

0 comments on commit b7db256

Please sign in to comment.