WarpAliases.

Warp(ICakeContext, DirectoryPath, string, FilePath, WarpPlatforms) Method

Summary

Runs the warp packer binary on the specified inputDirectory, and outputs the resulting packed binary to outputFilePath.
Assembly
Cake.Warp.dll
Namespace
Cake.Warp
Containing Type
WarpAliases

Syntax

public static void Warp(this ICakeContext context, DirectoryPath inputDirectory, string executableName, FilePath outputFilePath, WarpPlatforms architecture)

Examples

This example shows a basic call to create the packed binary, by first calling dotnet publish to create the program.
 #addin nuget:?package=Cake.Warp&version=0.1.0

 Task("Create-Warp-Binary")
     .Does(() =>
 {
     DotNetCorePublish("./src/Cake.Warp.Demo", new DotNetCorePublishSettings {
         Framework         = "netcoreapp2.0",
         RuntimeIdentifier = "linux-x64",
         Configuration     = "Release",
         OutputDirectory   = "./artifacts/output"
     });
     Warp("./artifacts/output",
          "Cake.Warp.Demo", // Must include .exe if creating for windows
          "./artifacts/cake-warp-demo",
          WarpPlatforms.LinuxX64
     );
 });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The cake context.
inputDirectory DirectoryPath The directory that should be packed into the resulting binary file.
executableName string The name of the file that should be executed when the packed binary is launched by the user. (Needs to already exist in the inputDirectory).
outputFilePath FilePath The location where the created packed binary file should be created.
architecture WarpPlatforms The architecture/platform to create the binary file for. See WarpPlatforms for valid values.

Return Value

Type Description
void