Skip to content

Commit

Permalink
add new debug service core runtime nuspec with portable symbols (#15548)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkkirschner authored Oct 16, 2024
1 parent c588a9e commit da45f11
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Config/CS_SDK.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@
<DebugSymbols>true</DebugSymbols>
<SelfContained>false</SelfContained>
</PropertyGroup>
<PropertyGroup>
<DebugType>full</DebugType>
<!--generate windows pdbs on windows and portable pdbs for linux builds - CER currently does not support portable-->
<PropertyGroup Condition="!$(Platform.Contains('Linux'))">
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition="$(Platform.Contains('Linux'))" >
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug' ">
<Optimize>false</Optimize>
Expand Down
13 changes: 12 additions & 1 deletion tools/NuGet/BuildPackages.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
:: PLEASE SOMEONE FIND THE TIME TO REPLACE THIS WITH ANOTHER SCRIPTING LANGUAGE :(

:: Argument %1: path to template folder
:: Argument %2: path to dynamo build directory
::
Expand Down Expand Up @@ -37,6 +39,9 @@ for /f %%f in ('cscript //Nologo ..\install\GetFileVersion.vbs %harvestPath%\Dyn
setlocal DisableDelayedExpansion
set version=%Major%.%Minor%.%Build%-beta%Revision%

for /f %%i in ('git rev-parse HEAD') do set COMMIT=%%i

echo %COMMIT%
:: Get target framework from build.xml
for /f %%f in ('cscript //Nologo .\GetTargetFramework.vbs ..\..\src\build.xml') do (
setlocal EnableDelayedExpansion
Expand All @@ -47,12 +52,18 @@ setlocal DisableDelayedExpansion
:: Clean files generated from the previous run
if exist *.nupkg ( del *.nupkg )

echo %1|find ".nuspec" >nul
if errorlevel 1 (goto :packfolder) else (goto:packsingle_nuspec)

:packsingle_nuspec
nuget pack %1 -basepath %harvestPath% -properties gitcommitid=%COMMIT%;Version=%version%;TargetFramework=%targetFramework%
:packfolder
:: Pack .nupkg files based on each .nuspec in the "nuspec" folder
for %%f in (%1\*.nuspec) do (
:: Check if nuspec file name containing "Symbols"
echo %%f|find "Symbols" >nul
:: When nuget pack symbols, set to release path where the symbol files live
if errorlevel 1 ( nuget pack %%f -basepath %harvestPath% -properties Version=%version%;TargetFramework=%targetFramework%) else (nuget pack %%f -basepath %releasePath% -properties Version=%version%;TargetFramework=%targetFramework%)
if errorlevel 1 ( nuget pack %%f -basepath %harvestPath% -properties gitcommitid=%COMMIT%;Version=%version%;TargetFramework=%targetFramework%) else (nuget pack %%f -basepath %releasePath% -properties Version=%version%;TargetFramework=%targetFramework%)
if not exist %%~nf.%version%.nupkg (
exit /b 1
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>DynamoVisualProgramming.ServiceCoreRuntime-debug</id>
<version>$Version$</version>
<authors>Autodesk</authors>
<owners>Autodesk</owners>
<license type="expression">Apache-2.0</license>
<projectUrl>https://github.com/DynamoDS/Dynamo</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Assemblies required to start a DynamoModel and execute DesignScript code bundled along with their dependencies.
Built targeting linux. </description>
<copyright>Copyright Autodesk 2023</copyright>
<dependencies>
<group targetFramework="$TargetFramework$">
</group>
</dependencies>
<repository type ="git" url="https://github.com/DynamoDS/Dynamo.git" commit="$gitcommitid$"></repository>
</metadata>
<files>
<file src="**"
target="lib\$TargetFramework$\"
exclude="**\*.txt;**\*.rtf;en-US\fallback_docs\*;NodeHelpSharedDocs\*;Open Source Licenses\*;samples\** "/>
</files>
</package>

0 comments on commit da45f11

Please sign in to comment.