view Applications/Samples/get-requirements-windows.ps1 @ 973:38409549db43 toa2019082903

Log with addresses + added fingerprint mechanism to avoid calling zombie objects where: - a message is sent with a receiver - the receiver dies - another receiver with the SAME address is created - the message reply is executed --> execution on the wrong object! (since their "identity" is their address. The fix is to identify them with an UUID stored at creation time)
author Benjamin Golinvaux <bgo@osimis.io>
date Thu, 29 Aug 2019 18:07:55 +0200
parents 4eccf698e52f
children
line wrap: on
line source


if ($true) {

    Write-Error "This script is obsolete. Please work under WSL and run build-wasm.sh"

} else {

    param(
        [IO.DirectoryInfo] $EmsdkRootDir = "C:\Emscripten",
        [bool] $Overwrite = $false
      )
    
    if (Test-Path -Path $EmsdkRootDir) {
        if( $Override) {
            Remove-Item -Path $EmsdkRootDir -Force -Recurse
        } else {
            throw "The `"$EmsdkRootDir`" folder may not exist! Use the Overwrite flag to bypass this check."
        }
    }
    
    # TODO: detect whether git is installed
    # choco install -y git
    
    Write-Host "Will retrieve the Emscripten SDK to the `"$EmsdkRootDir`" folder"
    
    $EmsdkParentDir = split-path -Parent $EmsdkRootDir
    $EmsdkRootName = split-path -Leaf $EmsdkRootDir
    
    Push-Location $EmsdkParentDir
    
    git clone https://github.com/juj/emsdk.git $EmsdkRootName
    cd $EmsdkRootName
    
    git pull
    
    ./emsdk install latest
    
    ./emsdk activate latest
    
    echo "INFO: the ~/.emscripten file has been configured for this installation of Emscripten."
    
    Write-Host "emsdk is now installed in $EmsdkRootDir"
    
    Pop-Location

}