This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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