Skip to content

Commit

Permalink
Enable embedding of project logo into NuGet packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Nov 12, 2020
1 parent f7e1e3c commit d77555a
Show file tree
Hide file tree
Showing 17 changed files with 59 additions and 6 deletions.
8 changes: 8 additions & 0 deletions common/images/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
exports_files([
"selenium_logo_extra_small.png",
"selenium_logo_small.png",
"selenium_logo_medium.png",
"selenium_logo_large.png",
"selenium_logo_extra_large.png",
"selenium_logo_extra_extra_large.png",
])
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common/images/selenium_logo_extra_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common/images/selenium_logo_extra_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common/images/selenium_logo_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions common/images/selenium_logo_mark_green.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common/images/selenium_logo_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common/images/selenium_logo_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions dotnet/src/support/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("//common:defs.bzl", "copy_file")
load("@d2l_rules_csharp//csharp:defs.bzl", "csharp_library")
load(
"//dotnet:defs.bzl",
Expand Down Expand Up @@ -115,6 +116,12 @@ generated_assembly_info(
],
) for standard_version in SUPPORTED_NET_STANDARD_VERSIONS]

copy_file(
name = "logo",
src = "//common/images:selenium_logo_small.png",
out = "icon.png"
)

nuget_package(
name = "package",
src = "WebDriver.Support.nuspec",
Expand All @@ -132,6 +139,7 @@ nuget_package(
":net48",
":netstandard2.0",
":netstandard2.1",
":logo",
],
)

Expand All @@ -151,6 +159,7 @@ nuget_package(
":net48-strongnamed",
":netstandard2.0-strongnamed",
":netstandard2.1-strongnamed",
":logo",
],
)

Expand Down
5 changes: 4 additions & 1 deletion dotnet/src/support/WebDriver.Support.StrongNamed.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<repository url="https://github.com/SeleniumHQ/selenium" />
<license type="expression">Apache-2.0</license>
<iconUrl>https://selenium.dev/images/selenium_logo_square_green.png</iconUrl>
<icon>images\icon.png</icon>
<tags>selenium webdriver support browser automation</tags>
<dependencies>
<group targetFramework=".NETFramework4.5">
Expand All @@ -49,6 +50,8 @@
</frameworkAssemblies>
</metadata>
<files>
<file src="**" target="lib" />
<file src="**/WebDriver.Support.dll" target="lib" />
<file src="**/WebDriver.Support.pdb" target="lib" />
<file src="../icon.png" target="images\"/>
</files>
</package>
5 changes: 4 additions & 1 deletion dotnet/src/support/WebDriver.Support.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<repository url="https://github.com/SeleniumHQ/selenium" />
<license type="expression">Apache-2.0</license>
<iconUrl>https://selenium.dev/images/selenium_logo_square_green.png</iconUrl>
<icon>images\icon.png</icon>
<tags>selenium webdriver support browser automation</tags>
<dependencies>
<group targetFramework=".NETFramework4.5">
Expand All @@ -49,6 +50,8 @@
</frameworkAssemblies>
</metadata>
<files>
<file src="**" target="lib" />
<file src="**/WebDriver.Support.dll" target="lib" />
<file src="**/WebDriver.Support.pdb" target="lib" />
<file src="../icon.png" target="images\"/>
</files>
</package>
8 changes: 8 additions & 0 deletions dotnet/src/webdriver/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("//common:defs.bzl", "copy_file")
load("@d2l_rules_csharp//csharp:defs.bzl", "csharp_library")
load(
"//dotnet:defs.bzl",
Expand Down Expand Up @@ -229,6 +230,12 @@ generated_assembly_info(
],
) for framework in SUPPORTED_NET_FRAMEWORKS]

copy_file(
name = "logo",
src = "//common/images:selenium_logo_small.png",
out = "icon.png"
)

nuget_package(
name = "package",
src = "WebDriver.nuspec",
Expand All @@ -247,6 +254,7 @@ nuget_package(
":net48",
":netstandard2.0",
":netstandard2.1",
":logo",
],
)

Expand Down
5 changes: 4 additions & 1 deletion dotnet/src/webdriver/WebDriver.StrongNamed.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<repository url="https://github.com/SeleniumHQ/selenium" />
<license type="expression">Apache-2.0</license>
<iconUrl>https://selenium.dev/images/selenium_logo_square_green.png</iconUrl>
<icon>images\icon.png</icon>
<tags>selenium webdriver browser automation</tags>
<dependencies>
<group targetFramework=".NETFramework4.5" />
Expand All @@ -41,6 +42,8 @@
</frameworkAssemblies>
</metadata>
<files>
<file src="**" target="lib" />
<file src="**/WebDriver.dll" target="lib" />
<file src="**/WebDriver.pdb" target="lib" />
<file src="../icon.png" target="images\" />
</files>
</package>
5 changes: 4 additions & 1 deletion dotnet/src/webdriver/WebDriver.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<repository url="https://github.com/SeleniumHQ/selenium" />
<license type="expression">Apache-2.0</license>
<iconUrl>https://selenium.dev/images/selenium_logo_square_green.png</iconUrl>
<icon>images\icon.png</icon>
<tags>selenium webdriver browser automation</tags>
<dependencies>
<group targetFramework=".NETFramework4.5" />
Expand All @@ -41,6 +42,8 @@
</frameworkAssemblies>
</metadata>
<files>
<file src="**" target="lib" />
<file src="**/WebDriver.dll" target="lib" />
<file src="**/WebDriver.pdb" target="lib" />
<file src="../icon.png" target="images\" />
</files>
</package>
9 changes: 9 additions & 0 deletions dotnet/src/webdriverbackedselenium/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("//common:defs.bzl", "copy_file")
load("@d2l_rules_csharp//csharp:defs.bzl", "csharp_library")
load(
"//dotnet:defs.bzl",
Expand Down Expand Up @@ -171,6 +172,12 @@ generated_assembly_info(
],
) for standard_version in SUPPORTED_NET_STANDARD_VERSIONS]

copy_file(
name = "logo",
src = "//common/images:selenium_logo_small.png",
out = "icon.png"
)

nuget_package(
name = "package",
src = "Selenium.WebDriverBackedSelenium.nuspec",
Expand All @@ -189,6 +196,7 @@ nuget_package(
":net48",
":netstandard2.0",
":netstandard2.1",
":logo",
],
)

Expand All @@ -209,6 +217,7 @@ nuget_package(
":net48-strongnamed",
":netstandard2.0-strongnamed",
":netstandard2.1-strongnamed",
":logo",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<repository url="https://github.com/SeleniumHQ/selenium" />
<license type="expression">Apache-2.0</license>
<iconUrl>https://selenium.dev/images/selenium_logo_square_green.png</iconUrl>
<icon>images\icon.png</icon>
<tags>selenium webdriver remote control rc browser automation</tags>
<dependencies>
<group targetFramework=".NETFramework4.5">
Expand All @@ -53,6 +54,8 @@
</frameworkAssemblies>
</metadata>
<files>
<file src="**" target="lib" />
<file src="**/Selenium.WebDriverBackedSelenium.dll" target="lib" />
<file src="**/Selenium.WebDriverBackedSelenium.pdb" target="lib" />
<file src="../icon.png" target="images\"/>
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<repository url="https://github.com/SeleniumHQ/selenium" />
<license type="expression">Apache-2.0</license>
<iconUrl>https://selenium.dev/images/selenium_logo_square_green.png</iconUrl>
<icon>images\icon.png</icon>
<tags>selenium webdriver remote control rc browser automation</tags>
<dependencies>
<group targetFramework=".NETFramework4.5">
Expand All @@ -53,6 +54,8 @@
</frameworkAssemblies>
</metadata>
<files>
<file src="**" target="lib" />
<file src="**/Selenium.WebDriverBackedSelenium.dll" target="lib" />
<file src="**/Selenium.WebDriverBackedSelenium.pdb" target="lib" />
<file src="../icon.png" target="images\"/>
</files>
</package>

0 comments on commit d77555a

Please sign in to comment.