Skip to content

Commit

Permalink
v1.1.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
liesauer committed Oct 22, 2019
1 parent 42d274a commit 10789c8
Show file tree
Hide file tree
Showing 15 changed files with 828 additions and 5,062 deletions.
18 changes: 15 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,21 @@
"env": {},
"cwd": "${workspaceFolder}",
"args": [
"./test/",
"libraries",
]
"--gitcdn",
"https://github.com/nulastudio/HostFXRPatcher",
// "https://gitee.com/liesauer/HostFXRPatcher",
"--loglevel=Info",
"--nopatch=False",
"./test/",
"runtimes",
],
"dlvLoadConfig": {
"followPointers": true,
"maxVariableRecurse": 1,
"maxStringLen": 1024,
"maxArrayValues": 1000,
"maxStructFields": -1
}
}
]
}
17 changes: 0 additions & 17 deletions Gopkg.lock

This file was deleted.

34 changes: 0 additions & 34 deletions Gopkg.toml

This file was deleted.

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ BUILD_FLAGS=-ldflags="-s -w"
build-all: build-win-x86 build-win-x64 build-linux-x64 build-osx-x64

build-win-x86:
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_WIN_X86) ./src/main/beauty.go ./src/main/bindata.go
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_WIN_X86) github.com/nulastudio/NetCoreBeauty/src/main

build-win-x64:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_WIN_X64) ./src/main/beauty.go ./src/main/bindata.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_WIN_X64) github.com/nulastudio/NetCoreBeauty/src/main

build-linux-x64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_LINUX_X64) ./src/main/beauty.go ./src/main/bindata.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_LINUX_X64) github.com/nulastudio/NetCoreBeauty/src/main

build-osx-x64:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_MAC_X64) ./src/main/beauty.go ./src/main/bindata.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_MAC_X64) github.com/nulastudio/NetCoreBeauty/src/main
9 changes: 6 additions & 3 deletions NetCoreBeautyNuget/Beauty.targets
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
<BeautyBinExt Condition="$(IsWindows) == 'True'">.exe</BeautyBinExt>
<BeautyBin>"$(MSBuildThisFileDirectory)../tools/$(RuntimeOS)/ncbeauty$(BeautyBinExt)"</BeautyBin>
<BeautyDir>"$(MSBuildProjectDirectory)/$(PublishDir).HERE/.."</BeautyDir>
<BeautyLibsDir Condition="$(BeautyLibsDir) == ''">libraries</BeautyLibsDir>
<BeautyLibsDir Condition="$(BeautyLibsDir) == ''">runtimes</BeautyLibsDir>
<BeautyAfterTasks>Publish;$(BeautyAfterTasks)</BeautyAfterTasks>
<DisablePatch Condition="$(DisablePatch) == ''">False</DisablePatch>
<GitCDN Condition="$(GitCDN) != ''">--gitcdn $(GitCDN)</GitCDN>
<BeautyLogLevel Condition="$(BeautyLogLevel) != ''">--loglevel $(BeautyLogLevel)</BeautyLogLevel>
<DisablePatch Condition="$(DisablePatch) == 'True'">--nopatch</DisablePatch>
<DisablePatch Condition="$(DisablePatch) != 'True'"></DisablePatch>
</PropertyGroup>

<Target Name="NetCoreBeauty" AfterTargets="$(BeautyAfterTasks)" Condition="$(DisableBeauty) != 'True' And $(RuntimeIdentifier) != ''">
<Exec Command="$(BeautyBin) $(BeautyDir) $(BeautyLibsDir) $(DisablePatch) $(PatchCDN)" />
<Exec Command="$(BeautyBin) $(GitCDN) $(BeautyLogLevel) $(DisablePatch) $(BeautyDir) $(BeautyLibsDir)" />
</Target>
</Project>
2 changes: 1 addition & 1 deletion NetCoreBeautyNuget/NetCoreBeauty.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>nulastudio.NetCoreBeauty</id>
<description>Move a .NET Core app runtime components and dependencies into a sub-directory and make it beauty.</description>
<version>1.0.4</version>
<version>1.1.0</version>
<authors>LiesAuer</authors>
<owners>nulastudio</owners>
<projectUrl>https://github.com/nulastudio/NetCoreBeauty</projectUrl>
Expand Down
10 changes: 6 additions & 4 deletions NetCoreBeautyNugetTest/NetCoreBeautyTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<!-- beauty into sub-directory, default is libs, quote with "" if contains space -->
<BeautyLibsDir>libraries</BeautyLibsDir>
<BeautyLibsDir>runtimes</BeautyLibsDir>
<!-- set to True if you want to disable -->
<DisableBeauty>False</DisableBeauty>
<!-- <BeautyAfterTasks></BeautyAfterTasks> -->
<!-- set to True if you want to disable -->
<DisablePatch>True</DisablePatch>
<DisablePatch>False</DisablePatch>
<!-- valid values: Error|Detail|Log -->
<BeautyLogLevel>Error</BeautyLogLevel>
<!-- set to a repo mirror if you have troble in connecting github -->
<PatchCDN>https://github-like.com/someone/HostFXRPatcherMirror</PatchCDN>
<!-- <GitCDN>https://github-like.com/someone/HostFXRPatcherMirror</GitCDN> -->
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.0.4" />
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.1.0" />
</ItemGroup>

</Project>
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@ your `*.csproj` should be similar like this
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<!-- beauty into sub-directory, default is libs, quote with "" if contains space -->
<BeautyLibsDir>libraries</BeautyLibsDir>
<BeautyLibsDir>runtimes</BeautyLibsDir>
<!-- set to True if you want to disable -->
<DisableBeauty>False</DisableBeauty>
<!-- <BeautyAfterTasks></BeautyAfterTasks> -->
<!-- set to True if you want to disable -->
<DisablePatch>False</DisablePatch>
<!-- valid values: Error|Detail|Log -->
<BeautyLogLevel>Error</BeautyLogLevel>
<!-- set to a repo mirror if you have troble in connecting github -->
<PatchCDN>https://github-like.com/someone/HostFXRPatcherMirror</PatchCDN>
<!-- <GitCDN>https://github-like.com/someone/HostFXRPatcherMirror</GitCDN> -->
</PropertyGroup>

<ItemGroup>
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.0.4" />
<PackageReference Include="nulastudio.NetCoreBeauty" Version="1.1.0" />
</ItemGroup>

</Project>
Expand All @@ -43,7 +45,7 @@ when you run `dotnet publish` , everything is done automatically.
2. Use the binary application if your project has already be published.
```
Usage:
ncbeauty <beautyDir> [<LibsDir>]
ncbeauty [--<gitcdn>] [--<loglevel=Error|Detail|Log>] [--<nopatch=True|False>] <beautyDir> [<libsDir>]
```
for example
```
Expand Down
Loading

0 comments on commit 10789c8

Please sign in to comment.