From 1cbcd41b178f198cf45ff402daf357e866e7059b Mon Sep 17 00:00:00 2001 From: vldmr11080 <57061786+vldmr11080@users.noreply.github.com> Date: Thu, 28 May 2020 16:53:16 +0200 Subject: [PATCH] [PowerRename] Move PowerRename module installation into separate folder (#3821) * Move PowerRename module installation into separate folder. * Update build pipeline. * Correct order between modules. --- .pipelines/pipeline.user.windows.yml | 2 +- installer/PowerToysSetup/Product.wxs | 27 +++++++++++-------- .../UWPui/PowerRenameUWPUI.vcxproj | 4 +-- .../powerrename/dll/PowerRenameExt.vcxproj | 4 +-- .../powerrename/lib/PowerRenameLib.vcxproj | 4 +-- .../testapp/PowerRenameTest.vcxproj | 4 +-- .../powerrename/ui/PowerRenameUI.vcxproj | 4 +-- .../unittests/PowerRenameLibUnitTests.vcxproj | 4 +-- src/runner/main.cpp | 1 + 9 files changed, 30 insertions(+), 24 deletions(-) diff --git a/.pipelines/pipeline.user.windows.yml b/.pipelines/pipeline.user.windows.yml index 632c56c998..fc16614874 100644 --- a/.pipelines/pipeline.user.windows.yml +++ b/.pipelines/pipeline.user.windows.yml @@ -102,7 +102,7 @@ build: - 'modules\launcher\Wox.Infrastructure.dll' - 'modules\launcher\Wox.Plugin.dll' - 'modules\Microsoft.Launcher.dll' - - 'modules\PowerRenameExt.dll' + - 'modules\PowerRename\PowerRenameExt.dll' - 'modules\ShortcutGuide\ShortcutGuide.dll' - 'Notifications.dll' - 'os-detection.dll' diff --git a/installer/PowerToysSetup/Product.wxs b/installer/PowerToysSetup/Product.wxs index b19ad0ce0f..517b3344be 100644 --- a/installer/PowerToysSetup/Product.wxs +++ b/installer/PowerToysSetup/Product.wxs @@ -3,6 +3,7 @@ xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" > + @@ -217,6 +218,7 @@ + @@ -405,17 +407,6 @@ - - - - - - - - - - - @@ -571,6 +562,20 @@ + + + + + + + + + + + + + + diff --git a/src/modules/powerrename/UWPui/PowerRenameUWPUI.vcxproj b/src/modules/powerrename/UWPui/PowerRenameUWPUI.vcxproj index 8c62a5a62e..cbdae9861a 100644 --- a/src/modules/powerrename/UWPui/PowerRenameUWPUI.vcxproj +++ b/src/modules/powerrename/UWPui/PowerRenameUWPUI.vcxproj @@ -48,12 +48,12 @@ false - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ true - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ diff --git a/src/modules/powerrename/dll/PowerRenameExt.vcxproj b/src/modules/powerrename/dll/PowerRenameExt.vcxproj index 8c3d809ca1..0dbe7cf6e8 100644 --- a/src/modules/powerrename/dll/PowerRenameExt.vcxproj +++ b/src/modules/powerrename/dll/PowerRenameExt.vcxproj @@ -88,14 +88,14 @@ ..\lib\;..\ui\;$(IncludePath) $(ProjectName) - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\;$(LibraryPath) $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ ..\lib\;..\ui\;$(IncludePath) $(ProjectName) - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\;$(LibraryPath) $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ diff --git a/src/modules/powerrename/lib/PowerRenameLib.vcxproj b/src/modules/powerrename/lib/PowerRenameLib.vcxproj index 385b9c50cb..c1429e8f93 100644 --- a/src/modules/powerrename/lib/PowerRenameLib.vcxproj +++ b/src/modules/powerrename/lib/PowerRenameLib.vcxproj @@ -79,11 +79,11 @@ $(SolutionDir)$(Platform)\$(Configuration)\ - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ diff --git a/src/modules/powerrename/testapp/PowerRenameTest.vcxproj b/src/modules/powerrename/testapp/PowerRenameTest.vcxproj index 6d4a0312be..3cf61eb4e4 100644 --- a/src/modules/powerrename/testapp/PowerRenameTest.vcxproj +++ b/src/modules/powerrename/testapp/PowerRenameTest.vcxproj @@ -81,7 +81,7 @@ true ..\ui\;..\lib\;$(IncludePath) - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ @@ -92,7 +92,7 @@ false ..\ui\;..\lib\;$(IncludePath) - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ diff --git a/src/modules/powerrename/ui/PowerRenameUI.vcxproj b/src/modules/powerrename/ui/PowerRenameUI.vcxproj index 2d4e59b572..9f0169a9d4 100644 --- a/src/modules/powerrename/ui/PowerRenameUI.vcxproj +++ b/src/modules/powerrename/ui/PowerRenameUI.vcxproj @@ -61,7 +61,7 @@ true ..\lib\;$(IncludePath) - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ @@ -73,7 +73,7 @@ false ..\lib\;$(IncludePath) - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ diff --git a/src/modules/powerrename/unittests/PowerRenameLibUnitTests.vcxproj b/src/modules/powerrename/unittests/PowerRenameLibUnitTests.vcxproj index 798ee227fd..7b08b80973 100644 --- a/src/modules/powerrename/unittests/PowerRenameLibUnitTests.vcxproj +++ b/src/modules/powerrename/unittests/PowerRenameLibUnitTests.vcxproj @@ -86,7 +86,7 @@ true ..\lib\;$(IncludePath) - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ @@ -98,7 +98,7 @@ false ..\lib\;$(IncludePath) - $(SolutionDir)$(Platform)\$(Configuration)\modules\ + $(SolutionDir)$(Platform)\$(Configuration)\modules\PowerRename $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ diff --git a/src/runner/main.cpp b/src/runner/main.cpp index d6e3113e51..b7fce02f90 100644 --- a/src/runner/main.cpp +++ b/src/runner/main.cpp @@ -140,6 +140,7 @@ int runner(bool isProcessElevated) L"", L"FileExplorerPreview/", L"FancyZones/", + L"PowerRename/", L"ShortcutGuide/" };