Skip to content

Instantly share code, notes, and snippets.

@iguatemigarin
Created April 14, 2018 02:32
Show Gist options
  • Save iguatemigarin/3ffd3276a6870133b910b0ad5875b209 to your computer and use it in GitHub Desktop.
Save iguatemigarin/3ffd3276a6870133b910b0ad5875b209 to your computer and use it in GitHub Desktop.
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