mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-11 03:32:46 +08:00
[ShortcutGuide&Installer] Move Shortcut Guide to separate build and install folder (#3810)
* Move Shortcut Guide to separate build and install folder * Rename shortcut_guide to ShortcutGuide * Propagate change to the pipeline
This commit is contained in:
parent
850d9ee095
commit
5ebd9eb577
@ -103,7 +103,7 @@ build:
|
|||||||
- 'modules\launcher\Wox.Plugin.dll'
|
- 'modules\launcher\Wox.Plugin.dll'
|
||||||
- 'modules\Microsoft.Launcher.dll'
|
- 'modules\Microsoft.Launcher.dll'
|
||||||
- 'modules\PowerRenameExt.dll'
|
- 'modules\PowerRenameExt.dll'
|
||||||
- 'modules\shortcut_guide.dll'
|
- 'modules\ShortcutGuide\ShortcutGuide.dll'
|
||||||
- 'Notifications.dll'
|
- 'Notifications.dll'
|
||||||
- 'os-detection.dll'
|
- 'os-detection.dll'
|
||||||
- 'PowerToys.exe'
|
- 'PowerToys.exe'
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
|
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
|
||||||
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" >
|
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" >
|
||||||
|
|
||||||
|
<?define ShortcutGuideProjectName="ShortcutGuide"?>
|
||||||
|
|
||||||
<?define RepoDir="$(var.ProjectDir)..\..\" ?>
|
<?define RepoDir="$(var.ProjectDir)..\..\" ?>
|
||||||
<?define BinX64Dir="$(var.RepoDir)x64\$(var.Configuration)\" ?>
|
<?define BinX64Dir="$(var.RepoDir)x64\$(var.Configuration)\" ?>
|
||||||
<Product Id="*"
|
<Product Id="*"
|
||||||
@ -215,6 +217,7 @@
|
|||||||
<Directory Id="INSTALLFOLDER" Name="PowerToys">
|
<Directory Id="INSTALLFOLDER" Name="PowerToys">
|
||||||
<Directory Id="SvgsInstallFolder" Name="svgs"/>
|
<Directory Id="SvgsInstallFolder" Name="svgs"/>
|
||||||
<Directory Id="ModulesInstallFolder" Name="modules">
|
<Directory Id="ModulesInstallFolder" Name="modules">
|
||||||
|
<Directory Id="ShortcutGuideInstallFolder" Name="$(var.ShortcutGuideProjectName)"/>
|
||||||
<!-- Resource file directories -->
|
<!-- Resource file directories -->
|
||||||
<?foreach Language in ar;bg;ca;cs;de;es;eu-ES;fr;he;hu;it;nb-NO;nl;pl;pt-BR;ru;sk;tr;zh-Hans?>
|
<?foreach Language in ar;bg;ca;cs;de;es;eu-ES;fr;he;hu;it;nb-NO;nl;pl;pt-BR;ru;sk;tr;zh-Hans?>
|
||||||
<!--NB: Ids can't contain hyphens-->
|
<!--NB: Ids can't contain hyphens-->
|
||||||
@ -402,10 +405,6 @@
|
|||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
|
|
||||||
<DirectoryRef Id="ModulesInstallFolder" FileSource="$(var.BinX64Dir)modules\">
|
<DirectoryRef Id="ModulesInstallFolder" FileSource="$(var.BinX64Dir)modules\">
|
||||||
<Component Id="Module_ShortcutGuide" Guid="CBD0AC09-91D3-428E-B2B3-05745ADF3473" Win64="yes">
|
|
||||||
<File Source="$(var.BinX64Dir)modules\shortcut_guide.dll" KeyPath="yes" />
|
|
||||||
</Component>
|
|
||||||
|
|
||||||
<Component Id="Module_PowerRename" Guid="E4401D08-27FE-4F96-BA17-0C61FD79E684" Win64="yes">
|
<Component Id="Module_PowerRename" Guid="E4401D08-27FE-4F96-BA17-0C61FD79E684" Win64="yes">
|
||||||
<File Source="$(var.BinX64Dir)modules\PowerRenameExt.dll" KeyPath="yes" />
|
<File Source="$(var.BinX64Dir)modules\PowerRenameExt.dll" KeyPath="yes" />
|
||||||
<RegistryKey Root="HKCR" Key="CLSID\{0440049F-D1DC-4E46-B27B-98393D79486B}">
|
<RegistryKey Root="HKCR" Key="CLSID\{0440049F-D1DC-4E46-B27B-98393D79486B}">
|
||||||
@ -572,6 +571,12 @@
|
|||||||
</Component>
|
</Component>
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
|
|
||||||
|
<DirectoryRef Id="ShortcutGuideInstallFolder" FileSource="$(var.BinX64Dir)modules\$(var.ShortcutGuideProjectName)\">
|
||||||
|
<Component Id="Module_ShortcutGuide" Guid="CBD0AC09-91D3-428E-B2B3-05745ADF3473" Win64="yes">
|
||||||
|
<File Source="$(var.BinX64Dir)modules\$(var.ShortcutGuideProjectName)\$(var.ShortcutGuideProjectName).dll" KeyPath="yes" />
|
||||||
|
</Component>
|
||||||
|
</DirectoryRef>
|
||||||
|
|
||||||
<DirectoryRef Id="FileExplorerPreviewInstallFolder" FileSource="$(var.RepoDir)\modules\FileExplorerPreview\">
|
<DirectoryRef Id="FileExplorerPreviewInstallFolder" FileSource="$(var.RepoDir)\modules\FileExplorerPreview\">
|
||||||
<Component Id="Module_PowerPreview" Guid="FF1700D5-1B07-4E07-9A62-4D206645EEA9" Win64="yes">
|
<Component Id="Module_PowerPreview" Guid="FF1700D5-1B07-4E07-9A62-4D206645EEA9" Win64="yes">
|
||||||
<!-- Component to include PowerPreview Module Source dll's -->
|
<!-- Component to include PowerPreview Module Source dll's -->
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>overlaywindow</RootNamespace>
|
<RootNamespace>overlaywindow</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion>
|
||||||
|
<ProjectName>ShortcutGuide</ProjectName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
@ -48,12 +49,12 @@
|
|||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\modules\</OutDir>
|
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\modules\$(ProjectName)\</OutDir>
|
||||||
<IntDir>$(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\</IntDir>
|
<IntDir>$(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\modules\</OutDir>
|
<OutDir>$(SolutionDir)$(Platform)\$(Configuration)\modules\$(ProjectName)\</OutDir>
|
||||||
<IntDir>$(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\</IntDir>
|
<IntDir>$(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\</IntDir>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
@ -126,7 +126,7 @@ int runner(bool isProcessElevated)
|
|||||||
std::wstring baseModuleFolder = L"modules/";
|
std::wstring baseModuleFolder = L"modules/";
|
||||||
|
|
||||||
std::unordered_set<std::wstring> known_dlls = {
|
std::unordered_set<std::wstring> known_dlls = {
|
||||||
L"shortcut_guide.dll",
|
L"ShortcutGuide.dll",
|
||||||
L"fancyzones.dll",
|
L"fancyzones.dll",
|
||||||
L"PowerRenameExt.dll",
|
L"PowerRenameExt.dll",
|
||||||
L"Microsoft.Launcher.dll",
|
L"Microsoft.Launcher.dll",
|
||||||
@ -135,10 +135,12 @@ int runner(bool isProcessElevated)
|
|||||||
L"KeyboardManager.dll"
|
L"KeyboardManager.dll"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO(stefan): When all modules get their OutputDir delete this and simplify "search for .dll logic"
|
||||||
std::unordered_set<std::wstring> module_folders = {
|
std::unordered_set<std::wstring> module_folders = {
|
||||||
L"",
|
L"",
|
||||||
L"FileExplorerPreview/",
|
L"FileExplorerPreview/",
|
||||||
L"FancyZones/"
|
L"FancyZones/",
|
||||||
|
L"ShortcutGuide/"
|
||||||
};
|
};
|
||||||
|
|
||||||
for (std::wstring subfolderName : module_folders)
|
for (std::wstring subfolderName : module_folders)
|
||||||
|
Loading…
Reference in New Issue
Block a user