File tree 2 files changed +4
-18
lines changed
2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 9
9
[ValidateSet (" All" , " x64" , " x86" )][string ]$Architecture = " All" ,
10
10
[string ]$HomePath = " $env: NR_DEV_HOMEROOT " ,
11
11
[string ]$gpgKeyPath = " " ,
12
- [switch ]$SkipProfilerBuild = $false ,
13
12
[switch ]$KeepNewRelicConfig = $false ,
14
13
[switch ]$SetSystemEnvironment = $false ,
15
14
[switch ]$SetSessionEnvironment = $false
@@ -38,19 +37,6 @@ if (($Type -like "Linux" -or $Type -like "All" -or $Type -like "CoreAll" -or $Ty
38
37
. " $rootDirectory \build\build_functions.ps1"
39
38
$HomePath = Get-HomeRootPath $HomePath
40
39
41
- # #####################################
42
- # Profiler Build (Windows and Linux) #
43
- # #####################################
44
-
45
- if (-Not $SkipProfilerBuild ) {
46
- $profilerBuildScript = " $rootDirectory \src\Agent\NewRelic\Profiler\build\build.ps1"
47
- & $profilerBuildScript
48
- if ($LastExitCode -ne 0 ) {
49
- Write-Host " Error in Profiler build script. Exiting with code: $LastExitCode .."
50
- exit $LastExitCode
51
- }
52
- }
53
-
54
40
# ######################
55
41
# Managed Agent Build #
56
42
# ######################
Original file line number Diff line number Diff line change @@ -156,10 +156,10 @@ function Copy-AgentRoot {
156
156
157
157
if ($Linux ) {
158
158
if ($Architecture -like " x64" ) {
159
- Copy-Item - Path " $RootDirectory \src\Agent\NewRelic\Home\bin\Release \netstandard2.0\profiler\linux_x64\libNewRelicProfiler.so" - Destination " $Destination " - Force
159
+ Copy-Item - Path " $RootDirectory \src\Agent\NewRelic\Home\bin\$Configuration \netstandard2.0\profiler\linux_x64\libNewRelicProfiler.so" - Destination " $Destination " - Force
160
160
}
161
161
if ($Architecture -like " ARM64" ) {
162
- Copy-Item - Path " $RootDirectory \src\Agent\NewRelic\Home\bin\Release \netstandard2.0\profiler\linux_arm64\libNewRelicProfiler.so" - Destination " $Destination " - Force
162
+ Copy-Item - Path " $RootDirectory \src\Agent\NewRelic\Home\bin\$Configuration \netstandard2.0\profiler\linux_arm64\libNewRelicProfiler.so" - Destination " $Destination " - Force
163
163
}
164
164
}
165
165
else {
@@ -170,10 +170,10 @@ function Copy-AgentRoot {
170
170
}
171
171
172
172
if ($Architecture -like " x64" ) {
173
- Copy-Item - Path " $RootDirectory \src\Agent\NewRelic\Home\bin\Release \netstandard2.0\profiler\x64\NewRelic.Profiler.dll" - Destination " $Destination " - Force
173
+ Copy-Item - Path " $RootDirectory \src\Agent\NewRelic\Home\bin\$Configuration \netstandard2.0\profiler\x64\NewRelic.Profiler.dll" - Destination " $Destination " - Force
174
174
}
175
175
else {
176
- Copy-Item - Path " $RootDirectory \src\Agent\NewRelic\Home\bin\Release \netstandard2.0\profiler\x86\NewRelic.Profiler.dll" - Destination " $Destination " - Force
176
+ Copy-Item - Path " $RootDirectory \src\Agent\NewRelic\Home\bin\$Configuration \netstandard2.0\profiler\x86\NewRelic.Profiler.dll" - Destination " $Destination " - Force
177
177
}
178
178
}
179
179
You can’t perform that action at this time.
0 commit comments