Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#r @"Tools/FAKE/tools/FakeLib.dll"
#load "Tools/build-helpers.fsx"
#load "Tools/hockey-app-helpers-mac.fsx"
open Fake
open System
open System.IO
open System.Linq
open System.Text.RegularExpressions
open BuildHelpers
open Fake.XamarinHelper
open HockeyAppHelper
let hockeyAppApiToken = "YOUHOCKEYAPPTOKEN"
let buildCounter = BuildHelpers.GetBuildCounter TeamCityHelper.TeamCityBuildNumber
let artifactNameIOS = "ArtifactName" + buildCounter + ".ipa"
let slnDirIOS = "YOURAPP.iOS.sln"
let buildConfDebugIOS = "Debug"
let platformConfSimulatorIOS = "iPhoneSimulator"
let buildConfReleaseIOS = "Release"
let platformConfDeviceIOS = "iPhone"
Target "ios-build-debug" (fun () ->
iOSBuild (fun defaults ->
{defaults with
ProjectPath = slnDirIOS
Configuration = buildConfDebugIOS + "|" + platformConfSimulatorIOS
Target = "Build"
})
)
Target "ios-build-release" (fun () ->
iOSBuild (fun defaults ->
{defaults with
ProjectPath = slnDirIOS
Configuration = buildConfReleaseIOS + "|" + platformConfDeviceIOS
Target = "Build"
})
)
Target "ios-publish-hockey" (fun () ->
HockeyAppHelper.Upload hockeyAppApiToken artifactNameIOS buildCounter
)
RunTarget()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.