Skip to content

Commit

Permalink
Changes to mount script
Browse files Browse the repository at this point in the history
  • Loading branch information
khalid2831 committed Jan 16, 2020
1 parent 4e3e001 commit fb7fd35
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions Scripts/Mount.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<#
.SYNOPSIS
Helps to mount GitHub repo to your machine
.DESCRIPTION
It creates a symbolic link into Metadata folder of Dynamics 365 for Operations.
.COMPANY
Arbela Technologies Corp.
#>


if (Test-Path -Path K:\AosService)
{
$LocalDeploymentFolder = "K:\AosService"
Expand All @@ -16,10 +26,13 @@ else
}
Write-Host "using $LocalDeploymentFolder as the deployment folder"

$LocalPackagesFolder = Join-Path $LocalDeploymentFolder "PackagesLocalDirectory"
$LocalMetadataFolder = Join-Path -Path $LocalDeploymentFolder -ChildPath "\PackagesLocalDirectory"

Write-Host "using $LocalMetadataFolder as the metadata folder"

# Get the list of models to junction
$ModelsToJunction = Get-ChildItem "..\Metadata\"
$ModelsToJunction = Get-ChildItem "..\Metadata"

Write-Host "Enabling editing of the following models:" $ModelsToJunction

foreach ($Model in $ModelsToJunction)
Expand Down Expand Up @@ -50,4 +63,5 @@ foreach ($Model in $ModelsToJunction)
New-Item -ItemType:SymbolicLink -Path:$LocalSubfolderPath -Value:$RepoSubfolderPath
}
}
}
}
pause
Binary file added Scripts/Mount.ps1 - Run as admin.lnk
Binary file not shown.

0 comments on commit fb7fd35

Please sign in to comment.