Skip to content

Instantly share code, notes, and snippets.

@jonathanpeppers
Created April 1, 2015 20:40
Show Gist options
  • Save jonathanpeppers/9c4b181e16dc113bcfa5 to your computer and use it in GitHub Desktop.
Save jonathanpeppers/9c4b181e16dc113bcfa5 to your computer and use it in GitHub Desktop.
Windows / Unity3D / FAKE build targets
let windowsSolution = "Scratch/WinRT/YourGame.sln"
let parameters = [
("Configuration", "Release")
("AppxBundle", "Auto")
("AppxPackage", "True")
("AppxPackageIsForStore", "True")
("AppxPackageDir", "../../../../build/")
("AppxPackageDirWasSpecified", "True")
("AppVersion", versionNumber)
]
Target "winrt-player" (fun () ->
Unity "-executeMethod BuildScript.Windows"
)
Target "winrt" (fun () ->
RestorePackages windowsSolution
MSBuild "" "Build" (("Platform", "x86") :: parameters) [ windowsSolution ] |> ignore
MSBuild "" "Build" (("Platform", "ARM") :: parameters) [ windowsSolution ] |> ignore
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment