From 4f9bb3cda52cdcd4074dfaf091fb99fe77c3c367 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Wed, 25 Oct 2023 17:41:27 -0700 Subject: [PATCH 1/2] Deploy UWP assets to Assets dir using CMake. --- test/CMakeLists.txt | 11 +++++++---- test/uwp/Package.appxmanifest | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 832d658..9d964d6 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,15 +2,18 @@ if(PROXYRES_BUILD_CLI) set(PROXYCLI_SRCS proxycli.c) if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") - list(APPEND PROXYCLI_SRCS + set(PROXYCLI_ASSETS uwp/Square44x44Logo.png uwp/Square150x150Logo.png uwp/StoreLogo.png - uwp/Package.appxmanifest - uwp/Windows_TemporaryKey.pfx) + uwp/Package.appxmanifest) + + set_source_files_properties(${PROXYCLI_ASSETS} PROPERTIES + VS_DEPLOYMENT_CONTENT 1 + VS_DEPLOYMENT_LOCATION "Assets") endif() - add_executable(proxycli ${PROXYCLI_SRCS}) + add_executable(proxycli ${PROXYCLI_SRCS} ${PROXYCLI_ASSETS}) target_link_libraries(proxycli PRIVATE proxyres) if(TARGET CURL::libcurl) diff --git a/test/uwp/Package.appxmanifest b/test/uwp/Package.appxmanifest index f2f53cc..ec60c58 100644 --- a/test/uwp/Package.appxmanifest +++ b/test/uwp/Package.appxmanifest @@ -10,7 +10,7 @@ proxycli CMake - StoreLogo.png + Assets\StoreLogo.png @@ -26,8 +26,8 @@ desktop4:Subsystem="console" desktop4:SupportsMultipleInstances="true"> From 2c646f53f3364a6cc9b86567a69326460e5cdf8f Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Wed, 25 Oct 2023 17:42:03 -0700 Subject: [PATCH 2/2] Remove unused temporary key. CMake generate its own key. --- test/uwp/Package.appxmanifest | 2 +- test/uwp/Windows_TemporaryKey.pfx | Bin 2520 -> 0 bytes 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 test/uwp/Windows_TemporaryKey.pfx diff --git a/test/uwp/Package.appxmanifest b/test/uwp/Package.appxmanifest index ec60c58..6f1f63a 100644 --- a/test/uwp/Package.appxmanifest +++ b/test/uwp/Package.appxmanifest @@ -4,7 +4,7 @@ xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:desktop4="http://schemas.microsoft.com/appx/manifest/desktop/windows10/4" IgnorableNamespaces="uap mp"> - + diff --git a/test/uwp/Windows_TemporaryKey.pfx b/test/uwp/Windows_TemporaryKey.pfx deleted file mode 100644 index 5a975ee0f66577a78d0ee3faf9158ae2bec8c800..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2520 zcmZXVc|6ox8^C|F7~3?FeN1B~Br}$T2$Lihr$${k)&|d_K=P&+~n@^Urw>hRogx20<`n_9Pg)T;k=#ons(Y zP(GPG3`%AXVq$*`nPvTdTr4wCGRq_rk1}Nl#`*6oI0p!vPlj$|$k25R3dZpt%q)(8 zvXMY)D<5J~*uh}dUMLybyXQLkj@vhGJ*TMeq+?v8Y1^{TpsKg3^z4Ew&8N&ZAnE1G z#oQXa5}dJgsYvVxrS&#@Fnx)hQSP{Un3?gqK>y+5j91`(iMZfH)s9C8>A--=_J}%GuQ)BPFwMea2YLzLiC|aSm2>_6i#RN zQh2T3>ec1dGoNzX-C#za{s_8&Km@ygI@PxeK=OeI0h*sYvDjMk$58-KA!wJg!U{yY%*EQ+* zXTPl`L-6oTu7Q)^QH>#nJQ*GXZe#wQC6dzb&zah=Xa;_HVKn!kY?_r6VouBJ7#aO+ zvbs*-4Su!$w(O&V?|jj6{|DoDuE}=2Vey!}3m-7!7CZZZciF=`hS8LZ9fRdHs+F<` zv_|p5cW?_M+DYq-p-ho^Wu`G*Pu*VkUQ3Ep9V96c%`shwvH9-CiFzckMJX}~%d30+ zApy9b7A1m7buUreI4+3I!v{rB^U=zxlp9H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