Note: This API documentation is for FAKE version 4. The migration API documentation can be found here. The API documentation for the new fake 5 modules can be found here

Appcast

Contains code to configure FAKE for Appcast handling

Nested types and modules

TypeDescription
Appcast

Configuration data for the appcast

AppcastItem

Download details for the appcast

MimeType

Mime type of the download file

Functions and values

Function or valueDescription
writeAppcast path cast
Signature: path:string -> cast:Appcast -> unit

writes an appcast to a file

Parameters

  • path - The file where the appcast should be written

  • cast - The appcast to write

    Sample

    // This target creates the app cast for our app. I contains two version 1.X and 2.X while 2.X requires at least OS X 10.10 Yosemite. Target "CreateAppcast" (fun _ -> let server = "https://example.com/files/" let fileLength file = let info = new System.IO.FileInfo(file) info.Length

    let latestSize = fileLength "build/download-2.0.1.zip" let legacySize = fileLength "build/download-1.1.4.zip"

    { title = "My Awesome App" description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus." language = "en" items = [ { title = "Hawk Nickel Greyhound" pubdate = System.DateTime.Now url = new System.Uri(server + "download-2.0.1.zip") version = "2014" // This our internal build number shortVersion = Some("2.0.1") //This is what we show to the user mimetype = OctetStream minimumSystemVersion = Some("10.10") length = latestSize dsaSignature = None }; { title = "Sparrow Platinum Beagle" pubdate = System.DateTime.Now url = new System.Uri(server + "download-1.1.4.zip") version = "1142" // This our internal build number shortVersion = Some("1.1.4") //This is what we show to the user mimetype = OctetStream length = legacySize minimumSystemVersion = None dsaSignature = None } ] } |> writeAppcast "build/updates.xml" )