Skip to content

Commit

Permalink
Merge pull request #140 from icsharpcode/updatecake
Browse files Browse the repository at this point in the history
Build using standard "dotnet tool restore" / "dotnet cake"
  • Loading branch information
christophwille committed Jul 23, 2023
2 parents 8a29f16 + 8d4c96b commit 6aaf445
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 357 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "3.1.0",
"commands": [
"dotnet-cake"
]
}
}
}
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -38,5 +38,5 @@ How to run on Mac:

1. Install dotnet 6 or above from https://dotnet.microsoft.com/en-us/download/dotnet
2. Clone repository : `git clone https://github.com/icsharpcode/AvaloniaILSpy.git`.
3. Run build script: `build.ps1` on Windows and `./build.sh` on Linux and Mac OS.
3. Run build script: `dotnet tool restore` and `dotnet cake`
4. Artifacts will be located in subdirectory `artifacts`.
6 changes: 3 additions & 3 deletions build.cake
Expand Up @@ -32,15 +32,15 @@ var netCoreProject = new {
.IsDependentOn("Clean")
.Does(() =>
{
DotNetCoreRestore(netCoreProject.Path);
DotNetRestore(netCoreProject.Path);
});

Task("Build-NetCore")
.IsDependentOn("Restore-NetCore")
.Does(() =>
{
Information("Building: {0}", netCoreProject.Name);
DotNetCoreBuild(netCoreProject.Path, new DotNetCoreBuildSettings {
DotNetBuild(netCoreProject.Path, new DotNetBuildSettings {
Configuration = configuration
});
});
Expand All @@ -54,7 +54,7 @@ var netCoreProject = new {
var outputDir = artifactsDir.Combine(runtime);
Information("Publishing: {0}, runtime: {1}", netCoreProject.Name, runtime);
DotNetCorePublish(netCoreProject.Path, new DotNetCorePublishSettings {
DotNetPublish(netCoreProject.Path, new DotNetPublishSettings {
Framework = netCoreProject.Framework,
Configuration = configuration,
Runtime = runtime,
Expand Down
236 changes: 0 additions & 236 deletions build.ps1

This file was deleted.

0 comments on commit 6aaf445

Please sign in to comment.