Skip to content

Commit

Permalink
fixing a small bug with GUIDs, not being generated for every new addin
Browse files Browse the repository at this point in the history
  • Loading branch information
salaros committed Jul 17, 2018
1 parent cbae97e commit 2b59095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $srcFiles = Get-ChildItem -Recurse .\src\* -Include *.cs*, *.addin | Where-Objec
foreach ($file in $srcFiles) {
$outfile = ($file | Resolve-Path -Relative).Replace('\src\', '\dist\')
New-Item -ItemType Directory -Force -Path (Split-Path -Path $outfile -Parent) | Out-Null
(Get-Content $file).replace('RevitAddin', '$safeprojectname$') | Set-Content $outfile
(Get-Content $file).Replace('RevitAddin', '$safeprojectname$').Replace('00000000-0000-0000-0000-00000000000', '$guid').Replace('</ClientId', '$</ClientId') | Set-Content $outfile
}

# Copy static files
Expand Down

0 comments on commit 2b59095

Please sign in to comment.