Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new debug service core runtime nuspec with portable symbols #15548

Merged
merged 3 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading