Created
April 14, 2018 02:32
-
-
Save iguatemigarin/3ffd3276a6870133b910b0ad5875b209 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
open System | |
open System.IO | |
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ | |
if not (Directory.Exists ".paket") then | |
Directory.CreateDirectory ".paket" |> ignore | |
if not (File.Exists ".paket\\paket.exe") then | |
let url = "http://fsprojects.github.io/Paket/stable" | |
use wc = new Net.WebClient() | |
let tmp = Path.GetTempFileName() | |
let stable = wc.DownloadString(url) | |
wc.DownloadFile(stable, tmp) | |
File.Move(tmp, ".paket/paket.exe") | |
let stream = File.CreateText "paket.cmd" | |
stream.WriteLine ".paket\\paket.exe %*" | |
stream.Close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment