From bb3e1632dc4ba977880136bb2931e4ae66970928 Mon Sep 17 00:00:00 2001 From: Ashish Aggarwal Date: Fri, 14 Jun 2024 17:11:30 -0400 Subject: [PATCH 1/3] skip install for existing packages --- src/DynamoCoreWpf/DynamoCoreWpf.csproj | 28 +++++++++++++++---- .../LibraryViewExtensionWebView2.csproj | 14 ++++++++-- src/Notifications/Notifications.csproj | 15 ++++++++-- src/pkgexist.ps1 | 15 ++++++++++ 4 files changed, 60 insertions(+), 12 deletions(-) create mode 100644 src/pkgexist.ps1 diff --git a/src/DynamoCoreWpf/DynamoCoreWpf.csproj b/src/DynamoCoreWpf/DynamoCoreWpf.csproj index 642cdd4110a..a5149d3ed4f 100644 --- a/src/DynamoCoreWpf/DynamoCoreWpf.csproj +++ b/src/DynamoCoreWpf/DynamoCoreWpf.csproj @@ -22,13 +22,21 @@ + + 1.0.19 + SplashScreen + + + + + - + - + - + @@ -50,13 +58,21 @@ + + 1.0.14 + DynamoHome + + + + + - + - + - + diff --git a/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj b/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj index 46030703fb0..8a132493ea3 100644 --- a/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj +++ b/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj @@ -16,13 +16,21 @@ + + 1.0.5 + LibrarieJS + + + + + - + - + - + diff --git a/src/Notifications/Notifications.csproj b/src/Notifications/Notifications.csproj index 1fc5a6d090d..948517b8721 100644 --- a/src/Notifications/Notifications.csproj +++ b/src/Notifications/Notifications.csproj @@ -15,13 +15,22 @@ + + 0.0.29 + NotificationCenter + + + + + + - + - + - + diff --git a/src/pkgexist.ps1 b/src/pkgexist.ps1 new file mode 100644 index 00000000000..e8c13d0a953 --- /dev/null +++ b/src/pkgexist.ps1 @@ -0,0 +1,15 @@ +$pkgname=$args[0] +$pkgver=$args[1] + +If (-Not (Test-Path .\Packages\$pkgname)) { + echo true + return +} + +$currver=(Get-Content .\Packages\$pkgname\package.json | ConvertFrom-Json).version +If ($currver -ne $pkgver) { + echo true +} +else { + echo false +} \ No newline at end of file From 33302dda4ad8b0f2062d855dbea85023f22169f0 Mon Sep 17 00:00:00 2001 From: Ashish Aggarwal Date: Fri, 14 Jun 2024 17:14:40 -0400 Subject: [PATCH 2/3] use var --- .../LibraryViewExtensionWebView2.csproj | 2 +- src/Notifications/Notifications.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj b/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj index 8a132493ea3..d649db87cca 100644 --- a/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj +++ b/src/LibraryViewExtensionWebView2/LibraryViewExtensionWebView2.csproj @@ -27,7 +27,7 @@ - + diff --git a/src/Notifications/Notifications.csproj b/src/Notifications/Notifications.csproj index 948517b8721..f01935e780f 100644 --- a/src/Notifications/Notifications.csproj +++ b/src/Notifications/Notifications.csproj @@ -27,7 +27,7 @@ - + From 2d40759c20a152ce44701e4e1ef65526e82d466e Mon Sep 17 00:00:00 2001 From: Ashish Aggarwal Date: Fri, 14 Jun 2024 17:49:32 -0400 Subject: [PATCH 3/3] Update pkgexist.ps1 --- src/pkgexist.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkgexist.ps1 b/src/pkgexist.ps1 index e8c13d0a953..3baf9585a6e 100644 --- a/src/pkgexist.ps1 +++ b/src/pkgexist.ps1 @@ -1,7 +1,7 @@ $pkgname=$args[0] $pkgver=$args[1] -If (-Not (Test-Path .\Packages\$pkgname)) { +If ((-Not (Test-Path .\Packages\$pkgname)) -Or (-Not (Test-Path .\Packages\$pkgname\package.json))) { echo true return }