Skip to content

Commit

Permalink
revert docs change to add retain feature
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusongit committed Jan 29, 2024
1 parent 95c7ee5 commit 5d9eb81
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ <h4>Adding package files</h4>
In either case, the assembly must be tagged as a node library. Currently, for assemblies marked as node library that contain NodeModel or NodeCustomization types, all other types will be ignored. For this reason, it is important to separate NodeModel/NodeViewCustomization types from types you wish to import using ZeroTouch import.
</p>
</p>
<!-- TODO, uncomment after DYN-6589
<p>

<b>Retain folder structure:</b><br />
Expand All @@ -269,7 +268,6 @@ <h4>Adding package files</h4>
When in doubt, toggle the setting off to allow Dynamo to set up the folder structure.
</p>
</p>
-->
<p>
<b>Preview Package Contents:</b><br />
When you are satisfied with your package contents, click Next to see a preview of how the package files will be set up once they are published.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@
</Rectangle>

<!--Toggle-->
<!-- TODO, uncomment after DYN-6589
<StackPanel Orientation="Horizontal"
Grid.Column="1"
Grid.Row="2">
Expand All @@ -610,6 +609,6 @@
Style="{StaticResource GenericToolTipLight}" />
</Rectangle.ToolTip>
</Rectangle>
</StackPanel>-->
</StackPanel>
</Grid>
</Page>
2 changes: 1 addition & 1 deletion src/DynamoPackages/PackageDirectoryBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ internal void CopyFilesIntoRetainedPackageDirectory(IEnumerable<IEnumerable<stri
{
// We expect that files are bundled in root folders
// For single files, just get its folder
var commonPath = files.Count() > 1 ? GetLongestCommonPrefix(files.ToArray()) : Path.GetDirectoryName(files.First());
var commonPath = files.Count() > 1 ? GetLongestCommonPrefix(files.ToArray()) : Path.GetDirectoryName(files.FirstOrDefault());
commonPath = commonPath.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
var commonRootPath = Path.GetDirectoryName(commonPath);
if (commonRootPath == null) commonRootPath = commonPath; // already at the root
Expand Down
6 changes: 5 additions & 1 deletion src/DynamoPackages/PackageManagerClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Dynamo.Graph.Workspaces;
Expand Down Expand Up @@ -273,9 +274,12 @@ internal void Publish(Package package, object files, IEnumerable<string> markdow
packageUploadHandle.Error(ret.message);
return;
}

packageUploadHandle.Done(null);
}
catch (IOException e)
{
packageUploadHandle.Error(DynamoPackages.Properties.Resources.CannotRemovePackageAssemblyTitle + ": " + DynamoPackages.Properties.Resources.CannotRemovePackageAssemblyMessage + "(" + e.Message + ")");
}
catch (Exception e)
{
packageUploadHandle.Error(e.GetType() + ": " + e.Message);
Expand Down
20 changes: 19 additions & 1 deletion src/DynamoPackages/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/DynamoPackages/Properties/Resources.en-US.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CannotRemovePackageAssemblyMessage" xml:space="preserve">
<value>Due to limitations in the .NET framework, it is not possible to update your package assembly while it is already loaded. Please update the assembly while Dynamo is not running and try again.</value>
<comment>The message is shown when a user tries to remove assemblies from a loaded package.</comment>
</data>
<data name="CannotRemovePackageAssemblyTitle" xml:space="preserve">
<value>Cannot update assembly</value>
</data>
<data name="InvalidPackageFolderWarning" xml:space="preserve">
<value>The folder '{0}' does not exist</value>
<comment>This warning message is shown (during start up) when user specifies additional folders in DynamoSettings.xml file but the folders do not exist.</comment>
Expand Down
7 changes: 7 additions & 0 deletions src/DynamoPackages/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CannotRemovePackageAssemblyMessage" xml:space="preserve">
<value>Due to limitations in the .NET framework, it is not possible to update your package assembly while it is already loaded. Please update the assembly while Dynamo is not running and try again.</value>
<comment>The message is shown when a user tries to remove assemblies from a loaded package.</comment>
</data>
<data name="CannotRemovePackageAssemblyTitle" xml:space="preserve">
<value>Cannot update assembly</value>
</data>
<data name="InvalidPackageFolderWarning" xml:space="preserve">
<value>The folder '{0}' does not exist</value>
<comment>This warning message is shown (during start up) when user specifies additional folders in DynamoSettings.xml file but the folders do not exist.</comment>
Expand Down

0 comments on commit 5d9eb81

Please sign in to comment.