Merge branch 'main' into feat/pinyin-next
7
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -7,6 +7,13 @@ body:
|
|||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
value: Please make sure to [search for existing issues](https://github.com/microsoft/PowerToys/issues) before filing a new one!
|
value: Please make sure to [search for existing issues](https://github.com/microsoft/PowerToys/issues) before filing a new one!
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
We are aware of the following high-volume issues and are actively working on them. Please check if your issue is one of these before filing a new bug report:
|
||||||
|
* **PowerToys Run crash related to "Desktop composition is disabled"**: This may appear as `COMException: 0x80263001`. For more details, see issue [#31226](https://github.com/microsoft/PowerToys/issues/31226).
|
||||||
|
* **PowerToys Run crash with `COMException (0xD0000701)`**: For more details, see issue [#30769](https://github.com/microsoft/PowerToys/issues/30769).
|
||||||
|
* **PowerToys Run crash with a "Cyclic reference" error**: This `System.InvalidOperationException` is detailed in issue [#36451](https://github.com/microsoft/PowerToys/issues/36451).
|
||||||
- id: version
|
- id: version
|
||||||
type: input
|
type: input
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
14
.github/actions/spell-check/allow/code.txt
vendored
@@ -95,6 +95,7 @@ OTP
|
|||||||
Yubi
|
Yubi
|
||||||
Yubico
|
Yubico
|
||||||
Perplexity
|
Perplexity
|
||||||
|
Groq
|
||||||
svgl
|
svgl
|
||||||
|
|
||||||
# KEYS
|
# KEYS
|
||||||
@@ -321,3 +322,16 @@ REGSTR
|
|||||||
|
|
||||||
# Misc Win32 APIs and PInvokes
|
# Misc Win32 APIs and PInvokes
|
||||||
INVOKEIDLIST
|
INVOKEIDLIST
|
||||||
|
|
||||||
|
# PowerRename metadata pattern abbreviations (used in tests and regex patterns)
|
||||||
|
DDDD
|
||||||
|
FFF
|
||||||
|
HHH
|
||||||
|
riday
|
||||||
|
YYY
|
||||||
|
|
||||||
|
# GitHub issue/PR commands
|
||||||
|
azp
|
||||||
|
feedbackhub
|
||||||
|
needinfo
|
||||||
|
reportbug
|
||||||
|
|||||||
1
.github/actions/spell-check/excludes.txt
vendored
@@ -105,6 +105,7 @@
|
|||||||
^src/common/notifications/BackgroundActivatorDLL/cpp\.hint$
|
^src/common/notifications/BackgroundActivatorDLL/cpp\.hint$
|
||||||
^src/common/sysinternals/Eula/
|
^src/common/sysinternals/Eula/
|
||||||
^src/modules/cmdpal/doc/initial-sdk-spec/list-elements-mock-002\.pdn$
|
^src/modules/cmdpal/doc/initial-sdk-spec/list-elements-mock-002\.pdn$
|
||||||
|
^src/modules/cmdpal/ext/SamplePagesExtension/Pages/SampleMarkdownImagesPage\.cs$
|
||||||
^src/modules/colorPicker/ColorPickerUI/Shaders/GridShader\.cso$
|
^src/modules/colorPicker/ColorPickerUI/Shaders/GridShader\.cso$
|
||||||
^src/modules/launcher/Plugins/Microsoft\.PowerToys\.Run\.Plugin\.TimeDate/Properties/
|
^src/modules/launcher/Plugins/Microsoft\.PowerToys\.Run\.Plugin\.TimeDate/Properties/
|
||||||
^src/modules/MouseUtils/MouseJumpUI/MainForm\.resx$
|
^src/modules/MouseUtils/MouseJumpUI/MainForm\.resx$
|
||||||
|
|||||||
120
.github/actions/spell-check/expect.txt
vendored
@@ -2,8 +2,8 @@ AAAAs
|
|||||||
abcdefghjkmnpqrstuvxyz
|
abcdefghjkmnpqrstuvxyz
|
||||||
abgr
|
abgr
|
||||||
ABlocked
|
ABlocked
|
||||||
ABOUTBOX
|
|
||||||
ABORTIFHUNG
|
ABORTIFHUNG
|
||||||
|
ABOUTBOX
|
||||||
Abug
|
Abug
|
||||||
Acceleratorkeys
|
Acceleratorkeys
|
||||||
ACCEPTFILES
|
ACCEPTFILES
|
||||||
@@ -22,6 +22,7 @@ ADate
|
|||||||
ADDSTRING
|
ADDSTRING
|
||||||
ADDUNDORECORD
|
ADDUNDORECORD
|
||||||
ADifferent
|
ADifferent
|
||||||
|
adjacents
|
||||||
ADMINS
|
ADMINS
|
||||||
adml
|
adml
|
||||||
admx
|
admx
|
||||||
@@ -34,6 +35,7 @@ AFX
|
|||||||
AGGREGATABLE
|
AGGREGATABLE
|
||||||
AHK
|
AHK
|
||||||
AHybrid
|
AHybrid
|
||||||
|
AIUI
|
||||||
akv
|
akv
|
||||||
ALarger
|
ALarger
|
||||||
ALIGNRIGHT
|
ALIGNRIGHT
|
||||||
@@ -54,6 +56,7 @@ ANull
|
|||||||
AOC
|
AOC
|
||||||
aocfnapldcnfbofgmbbllojgocaelgdd
|
aocfnapldcnfbofgmbbllojgocaelgdd
|
||||||
AOklab
|
AOklab
|
||||||
|
aot
|
||||||
APARTMENTTHREADED
|
APARTMENTTHREADED
|
||||||
APeriod
|
APeriod
|
||||||
apicontract
|
apicontract
|
||||||
@@ -63,6 +66,7 @@ APIIs
|
|||||||
Apm
|
Apm
|
||||||
APPBARDATA
|
APPBARDATA
|
||||||
APPEXECLINK
|
APPEXECLINK
|
||||||
|
appext
|
||||||
APPLICATIONFRAMEHOST
|
APPLICATIONFRAMEHOST
|
||||||
appmanifest
|
appmanifest
|
||||||
APPMODEL
|
APPMODEL
|
||||||
@@ -94,10 +98,10 @@ ASSOCSTR
|
|||||||
ASYNCWINDOWPLACEMENT
|
ASYNCWINDOWPLACEMENT
|
||||||
ASYNCWINDOWPOS
|
ASYNCWINDOWPOS
|
||||||
atl
|
atl
|
||||||
ATX
|
|
||||||
ATRIOX
|
ATRIOX
|
||||||
|
ATX
|
||||||
aumid
|
aumid
|
||||||
Authenticode
|
authenticode
|
||||||
AUTOBUDDY
|
AUTOBUDDY
|
||||||
AUTOCHECKBOX
|
AUTOCHECKBOX
|
||||||
AUTOHIDE
|
AUTOHIDE
|
||||||
@@ -111,10 +115,13 @@ AValid
|
|||||||
AWAYMODE
|
AWAYMODE
|
||||||
azcliversion
|
azcliversion
|
||||||
azman
|
azman
|
||||||
|
azureaiinference
|
||||||
|
azureinference
|
||||||
|
azureopenai
|
||||||
|
backticks
|
||||||
bbwe
|
bbwe
|
||||||
BCIE
|
BCIE
|
||||||
bck
|
bck
|
||||||
backticks
|
|
||||||
BESTEFFORT
|
BESTEFFORT
|
||||||
bezelled
|
bezelled
|
||||||
bhid
|
bhid
|
||||||
@@ -135,7 +142,7 @@ bla
|
|||||||
BLACKFRAME
|
BLACKFRAME
|
||||||
BLENDFUNCTION
|
BLENDFUNCTION
|
||||||
Blockquotes
|
Blockquotes
|
||||||
Blt
|
blt
|
||||||
BLURBEHIND
|
BLURBEHIND
|
||||||
BLURREGION
|
BLURREGION
|
||||||
bmi
|
bmi
|
||||||
@@ -143,6 +150,7 @@ BNumber
|
|||||||
BODGY
|
BODGY
|
||||||
BOklab
|
BOklab
|
||||||
BOOTSTRAPPERINSTALLFOLDER
|
BOOTSTRAPPERINSTALLFOLDER
|
||||||
|
Bootstrappers
|
||||||
BOTTOMALIGN
|
BOTTOMALIGN
|
||||||
boxmodel
|
boxmodel
|
||||||
BPBF
|
BPBF
|
||||||
@@ -176,7 +184,10 @@ Canvascustomlayout
|
|||||||
CAPTUREBLT
|
CAPTUREBLT
|
||||||
CAPTURECHANGED
|
CAPTURECHANGED
|
||||||
CARETBLINKING
|
CARETBLINKING
|
||||||
|
Carlseibert
|
||||||
CAtl
|
CAtl
|
||||||
|
caub
|
||||||
|
CBN
|
||||||
cch
|
cch
|
||||||
CCHDEVICENAME
|
CCHDEVICENAME
|
||||||
CCHFORMNAME
|
CCHFORMNAME
|
||||||
@@ -195,7 +206,6 @@ changecursor
|
|||||||
CHILDACTIVATE
|
CHILDACTIVATE
|
||||||
CHILDWINDOW
|
CHILDWINDOW
|
||||||
CHOOSEFONT
|
CHOOSEFONT
|
||||||
CIBUILD
|
|
||||||
cidl
|
cidl
|
||||||
CIELCh
|
CIELCh
|
||||||
cim
|
cim
|
||||||
@@ -211,6 +221,7 @@ clientside
|
|||||||
CLIPBOARDUPDATE
|
CLIPBOARDUPDATE
|
||||||
CLIPCHILDREN
|
CLIPCHILDREN
|
||||||
CLIPSIBLINGS
|
CLIPSIBLINGS
|
||||||
|
CLITo
|
||||||
closesocket
|
closesocket
|
||||||
clp
|
clp
|
||||||
CLSCTX
|
CLSCTX
|
||||||
@@ -231,6 +242,7 @@ CODENAME
|
|||||||
codereview
|
codereview
|
||||||
Codespaces
|
Codespaces
|
||||||
Coen
|
Coen
|
||||||
|
cognitiveservices
|
||||||
COINIT
|
COINIT
|
||||||
colid
|
colid
|
||||||
colorconv
|
colorconv
|
||||||
@@ -245,12 +257,12 @@ cominterop
|
|||||||
commandnotfound
|
commandnotfound
|
||||||
commandpalette
|
commandpalette
|
||||||
compmgmt
|
compmgmt
|
||||||
|
COMPOSITIONDISABLED
|
||||||
COMPOSITIONFULL
|
COMPOSITIONFULL
|
||||||
CONFIGW
|
CONFIGW
|
||||||
CONFLICTINGMODIFIERKEY
|
CONFLICTINGMODIFIERKEY
|
||||||
CONFLICTINGMODIFIERSHORTCUT
|
CONFLICTINGMODIFIERSHORTCUT
|
||||||
CONOUT
|
CONOUT
|
||||||
coreclr
|
|
||||||
constexpr
|
constexpr
|
||||||
contentdialog
|
contentdialog
|
||||||
contentfiles
|
contentfiles
|
||||||
@@ -262,6 +274,7 @@ copiedcolorrepresentation
|
|||||||
coppied
|
coppied
|
||||||
copyable
|
copyable
|
||||||
COPYPEN
|
COPYPEN
|
||||||
|
coreclr
|
||||||
COREWINDOW
|
COREWINDOW
|
||||||
Corpor
|
Corpor
|
||||||
cotaskmem
|
cotaskmem
|
||||||
@@ -270,9 +283,9 @@ countof
|
|||||||
covrun
|
covrun
|
||||||
cpcontrols
|
cpcontrols
|
||||||
cph
|
cph
|
||||||
cppcoreguidelines
|
|
||||||
cplusplus
|
cplusplus
|
||||||
CPower
|
CPower
|
||||||
|
cppcoreguidelines
|
||||||
cpptools
|
cpptools
|
||||||
cppvsdbg
|
cppvsdbg
|
||||||
cppwinrt
|
cppwinrt
|
||||||
@@ -281,6 +294,7 @@ CREATEPROCESS
|
|||||||
CREATESCHEDULEDTASK
|
CREATESCHEDULEDTASK
|
||||||
CREATESTRUCT
|
CREATESTRUCT
|
||||||
CREATEWINDOWFAILED
|
CREATEWINDOWFAILED
|
||||||
|
creativecommons
|
||||||
CRECT
|
CRECT
|
||||||
CRH
|
CRH
|
||||||
critsec
|
critsec
|
||||||
@@ -300,6 +314,7 @@ CURRENTDIR
|
|||||||
CURSORINFO
|
CURSORINFO
|
||||||
cursorpos
|
cursorpos
|
||||||
CURSORSHOWING
|
CURSORSHOWING
|
||||||
|
CURSORWRAP
|
||||||
customaction
|
customaction
|
||||||
CUSTOMACTIONTEST
|
CUSTOMACTIONTEST
|
||||||
CUSTOMFORMATPLACEHOLDER
|
CUSTOMFORMATPLACEHOLDER
|
||||||
@@ -315,7 +330,6 @@ CYSCREEN
|
|||||||
CYSMICON
|
CYSMICON
|
||||||
CYVIRTUALSCREEN
|
CYVIRTUALSCREEN
|
||||||
Czechia
|
Czechia
|
||||||
cziplib
|
|
||||||
Dac
|
Dac
|
||||||
dacl
|
dacl
|
||||||
DAffine
|
DAffine
|
||||||
@@ -340,7 +354,6 @@ debugbreak
|
|||||||
decryptor
|
decryptor
|
||||||
Dedup
|
Dedup
|
||||||
Deduplicator
|
Deduplicator
|
||||||
Deeplink
|
|
||||||
DEFAULTBOOTSTRAPPERINSTALLFOLDER
|
DEFAULTBOOTSTRAPPERINSTALLFOLDER
|
||||||
DEFAULTCOLOR
|
DEFAULTCOLOR
|
||||||
DEFAULTFLAGS
|
DEFAULTFLAGS
|
||||||
@@ -387,7 +400,6 @@ DISPLAYFREQUENCY
|
|||||||
displayname
|
displayname
|
||||||
DISPLAYORIENTATION
|
DISPLAYORIENTATION
|
||||||
divyan
|
divyan
|
||||||
djwsxzxb
|
|
||||||
Dlg
|
Dlg
|
||||||
DLGFRAME
|
DLGFRAME
|
||||||
DLGMODALFRAME
|
DLGMODALFRAME
|
||||||
@@ -398,6 +410,8 @@ DNLEN
|
|||||||
DONOTROUND
|
DONOTROUND
|
||||||
DONTVALIDATEPATH
|
DONTVALIDATEPATH
|
||||||
dotnet
|
dotnet
|
||||||
|
downsampled
|
||||||
|
downsampling
|
||||||
downscale
|
downscale
|
||||||
DPICHANGED
|
DPICHANGED
|
||||||
DPIs
|
DPIs
|
||||||
@@ -413,7 +427,7 @@ DROPFILES
|
|||||||
DSTINVERT
|
DSTINVERT
|
||||||
DString
|
DString
|
||||||
DSVG
|
DSVG
|
||||||
DTo
|
dto
|
||||||
DUMMYUNIONNAME
|
DUMMYUNIONNAME
|
||||||
dutil
|
dutil
|
||||||
DVASPECT
|
DVASPECT
|
||||||
@@ -447,7 +461,6 @@ EDITKEYBOARD
|
|||||||
EDITSHORTCUTS
|
EDITSHORTCUTS
|
||||||
EDITTEXT
|
EDITTEXT
|
||||||
EFile
|
EFile
|
||||||
ekus
|
|
||||||
eku
|
eku
|
||||||
emojis
|
emojis
|
||||||
ENABLEDELAYEDEXPANSION
|
ENABLEDELAYEDEXPANSION
|
||||||
@@ -516,6 +529,7 @@ FARPROC
|
|||||||
fdx
|
fdx
|
||||||
fesf
|
fesf
|
||||||
FFFF
|
FFFF
|
||||||
|
Figma
|
||||||
FILEEXPLORER
|
FILEEXPLORER
|
||||||
fileexploreraddons
|
fileexploreraddons
|
||||||
fileexplorerpreview
|
fileexplorerpreview
|
||||||
@@ -543,6 +557,7 @@ flac
|
|||||||
flyouts
|
flyouts
|
||||||
FMask
|
FMask
|
||||||
fmtid
|
fmtid
|
||||||
|
FNumber
|
||||||
FOF
|
FOF
|
||||||
FOFX
|
FOFX
|
||||||
FOLDERID
|
FOLDERID
|
||||||
@@ -553,6 +568,7 @@ FORCEMINIMIZE
|
|||||||
FORMATDLGORD
|
FORMATDLGORD
|
||||||
formatetc
|
formatetc
|
||||||
FORPARSING
|
FORPARSING
|
||||||
|
foundrylocal
|
||||||
FRAMECHANGED
|
FRAMECHANGED
|
||||||
frm
|
frm
|
||||||
FROMTOUCH
|
FROMTOUCH
|
||||||
@@ -571,15 +587,16 @@ gdi
|
|||||||
gdiplus
|
gdiplus
|
||||||
GDIPVER
|
GDIPVER
|
||||||
GDISCALED
|
GDISCALED
|
||||||
|
geolocator
|
||||||
GETCLIENTAREAANIMATION
|
GETCLIENTAREAANIMATION
|
||||||
GETCURSEL
|
GETCURSEL
|
||||||
GETDESKWALLPAPER
|
GETDESKWALLPAPER
|
||||||
GETDLGCODE
|
GETDLGCODE
|
||||||
GETDPISCALEDSIZE
|
GETDPISCALEDSIZE
|
||||||
getfilesiginforedist
|
getfilesiginforedist
|
||||||
geolocator
|
|
||||||
GETHOTKEY
|
GETHOTKEY
|
||||||
GETICON
|
GETICON
|
||||||
|
GETLBTEXT
|
||||||
GETMINMAXINFO
|
GETMINMAXINFO
|
||||||
GETNONCLIENTMETRICS
|
GETNONCLIENTMETRICS
|
||||||
GETPROPERTYSTOREFLAGS
|
GETPROPERTYSTOREFLAGS
|
||||||
@@ -587,16 +604,19 @@ GETSCREENSAVERRUNNING
|
|||||||
GETSECKEY
|
GETSECKEY
|
||||||
GETSTICKYKEYS
|
GETSTICKYKEYS
|
||||||
GETTEXTLENGTH
|
GETTEXTLENGTH
|
||||||
gitmodules
|
|
||||||
GHND
|
GHND
|
||||||
|
gitmodules
|
||||||
GMEM
|
GMEM
|
||||||
GNumber
|
GNumber
|
||||||
|
googleai
|
||||||
|
googlegemini
|
||||||
gpedit
|
gpedit
|
||||||
gpo
|
gpo
|
||||||
GPOCA
|
GPOCA
|
||||||
gpp
|
gpp
|
||||||
gpu
|
gpu
|
||||||
gradians
|
gradians
|
||||||
|
grctlext
|
||||||
Gridcustomlayout
|
Gridcustomlayout
|
||||||
GSM
|
GSM
|
||||||
gtm
|
gtm
|
||||||
@@ -694,6 +714,7 @@ HTCLIENT
|
|||||||
hthumbnail
|
hthumbnail
|
||||||
HTOUCHINPUT
|
HTOUCHINPUT
|
||||||
HTTRANSPARENT
|
HTTRANSPARENT
|
||||||
|
hutchinsoniana
|
||||||
HVal
|
HVal
|
||||||
HValue
|
HValue
|
||||||
Hvci
|
Hvci
|
||||||
@@ -708,9 +729,9 @@ HWNDPARENT
|
|||||||
HWNDPREV
|
HWNDPREV
|
||||||
hyjiacan
|
hyjiacan
|
||||||
IAI
|
IAI
|
||||||
icf
|
|
||||||
ICONERROR
|
ICONERROR
|
||||||
ICONLOCATION
|
ICONLOCATION
|
||||||
|
icf
|
||||||
IDCANCEL
|
IDCANCEL
|
||||||
IDD
|
IDD
|
||||||
idk
|
idk
|
||||||
@@ -724,9 +745,11 @@ ietf
|
|||||||
IEXPLORE
|
IEXPLORE
|
||||||
IFACEMETHOD
|
IFACEMETHOD
|
||||||
IFACEMETHODIMP
|
IFACEMETHODIMP
|
||||||
|
ifd
|
||||||
IGNOREUNKNOWN
|
IGNOREUNKNOWN
|
||||||
IGo
|
IGo
|
||||||
iid
|
iid
|
||||||
|
IIM
|
||||||
Iindex
|
Iindex
|
||||||
Ijwhost
|
Ijwhost
|
||||||
ILD
|
ILD
|
||||||
@@ -750,7 +773,8 @@ INITDIALOG
|
|||||||
INITGUID
|
INITGUID
|
||||||
INITTOLOGFONTSTRUCT
|
INITTOLOGFONTSTRUCT
|
||||||
INLINEPREFIX
|
INLINEPREFIX
|
||||||
Inlines
|
inlines
|
||||||
|
Inno
|
||||||
INPC
|
INPC
|
||||||
inproc
|
inproc
|
||||||
INPUTHARDWARE
|
INPUTHARDWARE
|
||||||
@@ -767,7 +791,6 @@ INSTALLFOLDERTOPREVIOUSINSTALLFOLDER
|
|||||||
INSTALLLOCATION
|
INSTALLLOCATION
|
||||||
INSTALLMESSAGE
|
INSTALLMESSAGE
|
||||||
INSTALLPROPERTY
|
INSTALLPROPERTY
|
||||||
installscopeperuser
|
|
||||||
INSTALLSTARTMENUSHORTCUT
|
INSTALLSTARTMENUSHORTCUT
|
||||||
INSTALLSTATE
|
INSTALLSTATE
|
||||||
Inste
|
Inste
|
||||||
@@ -780,6 +803,7 @@ invokecommand
|
|||||||
ipcmanager
|
ipcmanager
|
||||||
IPREVIEW
|
IPREVIEW
|
||||||
ipreviewhandlervisualssetfont
|
ipreviewhandlervisualssetfont
|
||||||
|
IPTC
|
||||||
irow
|
irow
|
||||||
irprops
|
irprops
|
||||||
isbi
|
isbi
|
||||||
@@ -823,15 +847,14 @@ keyvault
|
|||||||
KILLFOCUS
|
KILLFOCUS
|
||||||
killrunner
|
killrunner
|
||||||
kmph
|
kmph
|
||||||
ksa
|
|
||||||
kvp
|
kvp
|
||||||
Kybd
|
Kybd
|
||||||
LARGEICON
|
LARGEICON
|
||||||
lastcodeanalysissucceeded
|
lastcodeanalysissucceeded
|
||||||
LASTEXITCODE
|
LASTEXITCODE
|
||||||
LAYOUTRTL
|
LAYOUTRTL
|
||||||
LCh
|
|
||||||
lbl
|
lbl
|
||||||
|
LCh
|
||||||
lcid
|
lcid
|
||||||
LCIDTo
|
LCIDTo
|
||||||
lcl
|
lcl
|
||||||
@@ -847,10 +870,10 @@ LExit
|
|||||||
lhwnd
|
lhwnd
|
||||||
LIBFUZZER
|
LIBFUZZER
|
||||||
LIBID
|
LIBID
|
||||||
|
lightswitch
|
||||||
LIMITSIZE
|
LIMITSIZE
|
||||||
LIMITTEXT
|
LIMITTEXT
|
||||||
lindex
|
lindex
|
||||||
lightswitch
|
|
||||||
linkid
|
linkid
|
||||||
LINKOVERLAY
|
LINKOVERLAY
|
||||||
LINQTo
|
LINQTo
|
||||||
@@ -861,6 +884,7 @@ LLKH
|
|||||||
llkhf
|
llkhf
|
||||||
LMEM
|
LMEM
|
||||||
LMENU
|
LMENU
|
||||||
|
lng
|
||||||
LOADFROMFILE
|
LOADFROMFILE
|
||||||
LOBYTE
|
LOBYTE
|
||||||
localappdata
|
localappdata
|
||||||
@@ -870,16 +894,14 @@ LOCATIONCHANGE
|
|||||||
LOCKTYPE
|
LOCKTYPE
|
||||||
LOGFONT
|
LOGFONT
|
||||||
LOGFONTW
|
LOGFONTW
|
||||||
logon
|
|
||||||
LOGMSG
|
LOGMSG
|
||||||
|
logon
|
||||||
LOGPIXELSX
|
LOGPIXELSX
|
||||||
LOGPIXELSY
|
LOGPIXELSY
|
||||||
lng
|
|
||||||
lon
|
lon
|
||||||
longdate
|
longdate
|
||||||
LONGNAMES
|
LONGNAMES
|
||||||
lowlevel
|
lowlevel
|
||||||
lquadrant
|
|
||||||
LOWORD
|
LOWORD
|
||||||
lparam
|
lparam
|
||||||
LPBITMAPINFOHEADER
|
LPBITMAPINFOHEADER
|
||||||
@@ -913,6 +935,7 @@ lpv
|
|||||||
LPW
|
LPW
|
||||||
lpwcx
|
lpwcx
|
||||||
lpwndpl
|
lpwndpl
|
||||||
|
lquadrant
|
||||||
LReader
|
LReader
|
||||||
LRESULT
|
LRESULT
|
||||||
LSTATUS
|
LSTATUS
|
||||||
@@ -939,6 +962,7 @@ MAKELONG
|
|||||||
MAKELPARAM
|
MAKELPARAM
|
||||||
makepri
|
makepri
|
||||||
MAKEWPARAM
|
MAKEWPARAM
|
||||||
|
Malware
|
||||||
manifestdependency
|
manifestdependency
|
||||||
MAPPEDTOSAMEKEY
|
MAPPEDTOSAMEKEY
|
||||||
MAPTOSAMESHORTCUT
|
MAPTOSAMESHORTCUT
|
||||||
@@ -961,6 +985,7 @@ MENUITEMINFO
|
|||||||
MENUITEMINFOW
|
MENUITEMINFOW
|
||||||
MERGECOPY
|
MERGECOPY
|
||||||
MERGEPAINT
|
MERGEPAINT
|
||||||
|
metadatamatters
|
||||||
Metadatas
|
Metadatas
|
||||||
metafile
|
metafile
|
||||||
mfc
|
mfc
|
||||||
@@ -1007,9 +1032,6 @@ mousepointer
|
|||||||
mouseutils
|
mouseutils
|
||||||
MOVESIZEEND
|
MOVESIZEEND
|
||||||
MOVESIZESTART
|
MOVESIZESTART
|
||||||
muxx
|
|
||||||
muxxc
|
|
||||||
muxxh
|
|
||||||
MRM
|
MRM
|
||||||
MRT
|
MRT
|
||||||
mru
|
mru
|
||||||
@@ -1029,6 +1051,7 @@ msiexec
|
|||||||
MSIFASTINSTALL
|
MSIFASTINSTALL
|
||||||
MSIHANDLE
|
MSIHANDLE
|
||||||
MSIRESTARTMANAGERCONTROL
|
MSIRESTARTMANAGERCONTROL
|
||||||
|
MSIs
|
||||||
msixbundle
|
msixbundle
|
||||||
MSIXCA
|
MSIXCA
|
||||||
MSLLHOOKSTRUCT
|
MSLLHOOKSTRUCT
|
||||||
@@ -1037,16 +1060,21 @@ msrc
|
|||||||
msstore
|
msstore
|
||||||
msvcp
|
msvcp
|
||||||
MT
|
MT
|
||||||
|
mstsc
|
||||||
MTND
|
MTND
|
||||||
MULTIPLEUSE
|
MULTIPLEUSE
|
||||||
multizone
|
multizone
|
||||||
muxc
|
muxc
|
||||||
|
muxx
|
||||||
|
muxxc
|
||||||
|
muxxh
|
||||||
MVPs
|
MVPs
|
||||||
mvvm
|
mvvm
|
||||||
MVVMTK
|
MVVMTK
|
||||||
MWBEx
|
MWBEx
|
||||||
MYICON
|
MYICON
|
||||||
NAMECHANGE
|
NAMECHANGE
|
||||||
|
Notavailable
|
||||||
namespaceanddescendants
|
namespaceanddescendants
|
||||||
nao
|
nao
|
||||||
NCACTIVATE
|
NCACTIVATE
|
||||||
@@ -1151,6 +1179,7 @@ nowarn
|
|||||||
NOZORDER
|
NOZORDER
|
||||||
NPH
|
NPH
|
||||||
npmjs
|
npmjs
|
||||||
|
NPU
|
||||||
NResize
|
NResize
|
||||||
NTAPI
|
NTAPI
|
||||||
ntdll
|
ntdll
|
||||||
@@ -1158,8 +1187,8 @@ ntfs
|
|||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTSYSAPI
|
NTSYSAPI
|
||||||
NULLCURSOR
|
NULLCURSOR
|
||||||
nullref
|
|
||||||
nullonfailure
|
nullonfailure
|
||||||
|
nullref
|
||||||
numberbox
|
numberbox
|
||||||
nwc
|
nwc
|
||||||
ocr
|
ocr
|
||||||
@@ -1175,13 +1204,18 @@ oldpath
|
|||||||
oldtheme
|
oldtheme
|
||||||
oleaut
|
oleaut
|
||||||
OLECHAR
|
OLECHAR
|
||||||
|
ollama
|
||||||
onebranch
|
onebranch
|
||||||
|
onnx
|
||||||
OOBEUI
|
OOBEUI
|
||||||
openas
|
openas
|
||||||
opencode
|
opencode
|
||||||
OPENFILENAME
|
OPENFILENAME
|
||||||
|
openrdp
|
||||||
opensource
|
opensource
|
||||||
openxmlformats
|
openxmlformats
|
||||||
|
ollama
|
||||||
|
onnx
|
||||||
OPTIMIZEFORINVOKE
|
OPTIMIZEFORINVOKE
|
||||||
ORPHANEDDIALOGTITLE
|
ORPHANEDDIALOGTITLE
|
||||||
ORSCANS
|
ORSCANS
|
||||||
@@ -1254,6 +1288,7 @@ pguid
|
|||||||
phbm
|
phbm
|
||||||
phbmp
|
phbmp
|
||||||
phicon
|
phicon
|
||||||
|
Photoshop
|
||||||
phwnd
|
phwnd
|
||||||
pici
|
pici
|
||||||
pidl
|
pidl
|
||||||
@@ -1372,6 +1407,7 @@ QDC
|
|||||||
qit
|
qit
|
||||||
QITAB
|
QITAB
|
||||||
QITABENT
|
QITABENT
|
||||||
|
QNN
|
||||||
qoi
|
qoi
|
||||||
Quarternary
|
Quarternary
|
||||||
QUERYENDSESSION
|
QUERYENDSESSION
|
||||||
@@ -1381,8 +1417,8 @@ quickaccent
|
|||||||
QUNS
|
QUNS
|
||||||
RAII
|
RAII
|
||||||
RAlt
|
RAlt
|
||||||
RAquadrant
|
|
||||||
randi
|
randi
|
||||||
|
RAquadrant
|
||||||
rasterization
|
rasterization
|
||||||
Rasterize
|
Rasterize
|
||||||
RAWINPUTDEVICE
|
RAWINPUTDEVICE
|
||||||
@@ -1392,6 +1428,8 @@ RAWPATH
|
|||||||
rbhid
|
rbhid
|
||||||
rclsid
|
rclsid
|
||||||
RCZOOMIT
|
RCZOOMIT
|
||||||
|
remotedesktop
|
||||||
|
rdp
|
||||||
RDW
|
RDW
|
||||||
READMODE
|
READMODE
|
||||||
READOBJECTS
|
READOBJECTS
|
||||||
@@ -1409,9 +1447,7 @@ regfile
|
|||||||
REGISTERCLASSFAILED
|
REGISTERCLASSFAILED
|
||||||
REGISTRYHEADER
|
REGISTRYHEADER
|
||||||
REGISTRYPREVIEWEXT
|
REGISTRYPREVIEWEXT
|
||||||
registryroot
|
|
||||||
regkey
|
regkey
|
||||||
regroot
|
|
||||||
regsvr
|
regsvr
|
||||||
REINSTALLMODE
|
REINSTALLMODE
|
||||||
releaseblog
|
releaseblog
|
||||||
@@ -1464,7 +1500,6 @@ rstringalpha
|
|||||||
rstringdigit
|
rstringdigit
|
||||||
rtb
|
rtb
|
||||||
RTLREADING
|
RTLREADING
|
||||||
rtm
|
|
||||||
runas
|
runas
|
||||||
rundll
|
rundll
|
||||||
rungameid
|
rungameid
|
||||||
@@ -1478,6 +1513,7 @@ sacl
|
|||||||
safeprojectname
|
safeprojectname
|
||||||
SAMEKEYPREVIOUSLYMAPPED
|
SAMEKEYPREVIOUSLYMAPPED
|
||||||
SAMESHORTCUTPREVIOUSLYMAPPED
|
SAMESHORTCUTPREVIOUSLYMAPPED
|
||||||
|
samsung
|
||||||
sancov
|
sancov
|
||||||
SAVEFAILED
|
SAVEFAILED
|
||||||
scanled
|
scanled
|
||||||
@@ -1520,8 +1556,8 @@ SETRULES
|
|||||||
SETSCREENSAVEACTIVE
|
SETSCREENSAVEACTIVE
|
||||||
SETSTICKYKEYS
|
SETSTICKYKEYS
|
||||||
SETTEXT
|
SETTEXT
|
||||||
settingscard
|
|
||||||
SETTINGCHANGE
|
SETTINGCHANGE
|
||||||
|
settingscard
|
||||||
SETTINGSCHANGED
|
SETTINGSCHANGED
|
||||||
settingsheader
|
settingsheader
|
||||||
settingshotkeycontrol
|
settingshotkeycontrol
|
||||||
@@ -1596,6 +1632,7 @@ SKIPOWNPROCESS
|
|||||||
sku
|
sku
|
||||||
SLGP
|
SLGP
|
||||||
sln
|
sln
|
||||||
|
slnx
|
||||||
SMALLICON
|
SMALLICON
|
||||||
smartphone
|
smartphone
|
||||||
smileys
|
smileys
|
||||||
@@ -1666,6 +1703,7 @@ stringtable
|
|||||||
stringval
|
stringval
|
||||||
Strm
|
Strm
|
||||||
strret
|
strret
|
||||||
|
STRSAFE
|
||||||
stscanf
|
stscanf
|
||||||
sttngs
|
sttngs
|
||||||
Stubless
|
Stubless
|
||||||
@@ -1677,7 +1715,6 @@ sublang
|
|||||||
SUBMODULEUPDATE
|
SUBMODULEUPDATE
|
||||||
subresource
|
subresource
|
||||||
Superbar
|
Superbar
|
||||||
suntimes
|
|
||||||
sut
|
sut
|
||||||
svchost
|
svchost
|
||||||
SVGIn
|
SVGIn
|
||||||
@@ -1711,7 +1748,6 @@ SYSTEMMODAL
|
|||||||
SYSTEMTIME
|
SYSTEMTIME
|
||||||
TARG
|
TARG
|
||||||
TARGETAPPHEADER
|
TARGETAPPHEADER
|
||||||
TARGETDIR
|
|
||||||
targetentrypoint
|
targetentrypoint
|
||||||
TARGETHEADER
|
TARGETHEADER
|
||||||
targetver
|
targetver
|
||||||
@@ -1741,10 +1777,10 @@ textextractor
|
|||||||
TEXTINCLUDE
|
TEXTINCLUDE
|
||||||
tfopen
|
tfopen
|
||||||
tgz
|
tgz
|
||||||
|
THEMECHANGED
|
||||||
themeresources
|
themeresources
|
||||||
THH
|
THH
|
||||||
THICKFRAME
|
THICKFRAME
|
||||||
THEMECHANGED
|
|
||||||
THISCOMPONENT
|
THISCOMPONENT
|
||||||
throughs
|
throughs
|
||||||
TILEDWINDOW
|
TILEDWINDOW
|
||||||
@@ -1816,6 +1852,7 @@ UNCPRIORITY
|
|||||||
UNDNAME
|
UNDNAME
|
||||||
UNICODETEXT
|
UNICODETEXT
|
||||||
unins
|
unins
|
||||||
|
Uninstaller
|
||||||
uninstalls
|
uninstalls
|
||||||
Uniquifies
|
Uniquifies
|
||||||
unitconverter
|
unitconverter
|
||||||
@@ -1832,6 +1869,7 @@ UPDATENOW
|
|||||||
UPDATEREGISTRY
|
UPDATEREGISTRY
|
||||||
updown
|
updown
|
||||||
UPGRADINGPRODUCTCODE
|
UPGRADINGPRODUCTCODE
|
||||||
|
upscaling
|
||||||
Uptool
|
Uptool
|
||||||
urld
|
urld
|
||||||
Usb
|
Usb
|
||||||
@@ -1913,6 +1951,7 @@ Wca
|
|||||||
WCE
|
WCE
|
||||||
wcex
|
wcex
|
||||||
WClass
|
WClass
|
||||||
|
WCRAPI
|
||||||
wcsicmp
|
wcsicmp
|
||||||
wcsncpy
|
wcsncpy
|
||||||
wcsnicmp
|
wcsnicmp
|
||||||
@@ -1930,6 +1969,7 @@ wgpocpl
|
|||||||
WHEREID
|
WHEREID
|
||||||
wic
|
wic
|
||||||
wifi
|
wifi
|
||||||
|
wikimedia
|
||||||
wikipedia
|
wikipedia
|
||||||
WIL
|
WIL
|
||||||
winapi
|
winapi
|
||||||
@@ -1943,6 +1983,7 @@ WINDOWPLACEMENT
|
|||||||
WINDOWPOSCHANGED
|
WINDOWPOSCHANGED
|
||||||
WINDOWPOSCHANGING
|
WINDOWPOSCHANGING
|
||||||
WINDOWSBUILDNUMBER
|
WINDOWSBUILDNUMBER
|
||||||
|
windowsml
|
||||||
windowssearch
|
windowssearch
|
||||||
windowssettings
|
windowssettings
|
||||||
WINDOWSTYLES
|
WINDOWSTYLES
|
||||||
@@ -1958,6 +1999,7 @@ Winhook
|
|||||||
WINL
|
WINL
|
||||||
winlogon
|
winlogon
|
||||||
winmd
|
winmd
|
||||||
|
winml
|
||||||
WINNT
|
WINNT
|
||||||
winres
|
winres
|
||||||
winrt
|
winrt
|
||||||
@@ -2020,18 +2062,21 @@ WTSAT
|
|||||||
Wubi
|
Wubi
|
||||||
WUX
|
WUX
|
||||||
Wwanpp
|
Wwanpp
|
||||||
|
xap
|
||||||
XAxis
|
XAxis
|
||||||
XButton
|
XButton
|
||||||
xclip
|
xclip
|
||||||
xcopy
|
xcopy
|
||||||
XDeployment
|
XDeployment
|
||||||
xdf
|
xdf
|
||||||
|
XDimension
|
||||||
XDocument
|
XDocument
|
||||||
XElement
|
XElement
|
||||||
xfd
|
xfd
|
||||||
XFile
|
XFile
|
||||||
XIncrement
|
XIncrement
|
||||||
XLoc
|
XLoc
|
||||||
|
xmp
|
||||||
XNamespace
|
XNamespace
|
||||||
Xoshiro
|
Xoshiro
|
||||||
XPels
|
XPels
|
||||||
@@ -2048,6 +2093,7 @@ XVIRTUALSCREEN
|
|||||||
xxxxxx
|
xxxxxx
|
||||||
YAxis
|
YAxis
|
||||||
ycombinator
|
ycombinator
|
||||||
|
YDimension
|
||||||
YIncrement
|
YIncrement
|
||||||
yinle
|
yinle
|
||||||
yinyue
|
yinyue
|
||||||
@@ -2055,8 +2101,8 @@ YPels
|
|||||||
YPos
|
YPos
|
||||||
YResolution
|
YResolution
|
||||||
YSpeed
|
YSpeed
|
||||||
YTimer
|
|
||||||
YStr
|
YStr
|
||||||
|
YTimer
|
||||||
YVIRTUALSCREEN
|
YVIRTUALSCREEN
|
||||||
ZEROINIT
|
ZEROINIT
|
||||||
zonability
|
zonability
|
||||||
|
|||||||
2
.github/actions/spell-check/patterns.txt
vendored
@@ -253,7 +253,7 @@ _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING
|
|||||||
|
|
||||||
# hit-count: 1 file-count: 1
|
# hit-count: 1 file-count: 1
|
||||||
# Amazon
|
# Amazon
|
||||||
\bamazon\.com/[-\w]+/(?:dp/[0-9A-Z]+|)[^"'\s]+
|
\bamazon\.com/[-\w]+/(?:dp/[0-9A-Z]+|)
|
||||||
|
|
||||||
# hit-count: 3 file-count: 3
|
# hit-count: 3 file-count: 3
|
||||||
# imgur
|
# imgur
|
||||||
|
|||||||
1
.github/pull_request_template.md
vendored
@@ -5,6 +5,7 @@
|
|||||||
## PR Checklist
|
## PR Checklist
|
||||||
|
|
||||||
- [ ] Closes: #xxx
|
- [ ] Closes: #xxx
|
||||||
|
<!-- - [ ] Closes: #yyy (add separate lines for additional resolved issues) -->
|
||||||
- [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
|
- [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
|
||||||
- [ ] **Tests:** Added/updated and all pass
|
- [ ] **Tests:** Added/updated and all pass
|
||||||
- [ ] **Localization:** All end-user-facing strings can be localized
|
- [ ] **Localization:** All end-user-facing strings can be localized
|
||||||
|
|||||||
2
.github/workflows/dependency-review.yml
vendored
@@ -21,6 +21,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout Repository'
|
- name: 'Checkout Repository'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
- name: 'Dependency Review'
|
- name: 'Dependency Review'
|
||||||
uses: actions/dependency-review-action@v4
|
uses: actions/dependency-review-action@v4
|
||||||
@@ -27,7 +27,7 @@ jobs:
|
|||||||
issue: ${{ fromJson(github.event.inputs.issue_numbers) }}
|
issue: ${{ fromJson(github.event.inputs.issue_numbers) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Run GenAI Issue Deduplicator
|
- name: Run GenAI Issue Deduplicator
|
||||||
uses: pelikhan/action-genai-issue-dedup@v0
|
uses: pelikhan/action-genai-issue-dedup@v0
|
||||||
|
|||||||
2
.github/workflows/msstore-submissions.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
|||||||
echo powerToysInstallerArm64Url=$(jq -n "$powerToysSetup" | jq -r '[.[]|select(.name | contains("arm64"))][0].browser_download_url') >> $GITHUB_OUTPUT
|
echo powerToysInstallerArm64Url=$(jq -n "$powerToysSetup" | jq -r '[.[]|select(.name | contains("arm64"))][0].browser_download_url') >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Setup .NET 9.0
|
- name: Setup .NET 9.0
|
||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v5
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.x'
|
dotnet-version: '9.0.x'
|
||||||
|
|
||||||
|
|||||||
3
.gitignore
vendored
@@ -349,10 +349,7 @@ src/common/Telemetry/*.etl
|
|||||||
/src/modules/powerrename/ui/RCb24464
|
/src/modules/powerrename/ui/RCb24464
|
||||||
|
|
||||||
# Generated installer file for Monaco source files.
|
# Generated installer file for Monaco source files.
|
||||||
/installer/PowerToysSetup/MonacoSRC.wxs
|
|
||||||
/installer/PowerToysSetup/DscResources.wxs
|
|
||||||
/installer/PowerToysSetupVNext/MonacoSRC.wxs
|
/installer/PowerToysSetupVNext/MonacoSRC.wxs
|
||||||
/installer/PowerToysSetupVNext/DscResources.wxs
|
|
||||||
|
|
||||||
# MSBuildCache
|
# MSBuildCache
|
||||||
/MSBuildCacheLogs/
|
/MSBuildCacheLogs/
|
||||||
|
|||||||
3
.gitmodules
vendored
@@ -4,6 +4,3 @@
|
|||||||
[submodule "deps/expected-lite"]
|
[submodule "deps/expected-lite"]
|
||||||
path = deps/expected-lite
|
path = deps/expected-lite
|
||||||
url = https://github.com/martinmoene/expected-lite.git
|
url = https://github.com/martinmoene/expected-lite.git
|
||||||
[submodule "deps/cziplib"]
|
|
||||||
path = deps/cziplib
|
|
||||||
url = https://github.com/kuba--/zip.git
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
{
|
{
|
||||||
"MatchedPath": [
|
"MatchedPath": [
|
||||||
"*.resources.dll",
|
"*.resources.dll",
|
||||||
|
|
||||||
"WinUI3Apps\\Assets\\Settings\\Scripts\\*.ps1",
|
"WinUI3Apps\\Assets\\Settings\\Scripts\\*.ps1",
|
||||||
|
|
||||||
"PowerToys.ActionRunner.exe",
|
"PowerToys.ActionRunner.exe",
|
||||||
@@ -27,6 +26,7 @@
|
|||||||
"PowerToys.GPOWrapper.dll",
|
"PowerToys.GPOWrapper.dll",
|
||||||
"PowerToys.GPOWrapperProjection.dll",
|
"PowerToys.GPOWrapperProjection.dll",
|
||||||
"PowerToys.AllExperiments.dll",
|
"PowerToys.AllExperiments.dll",
|
||||||
|
"LanguageModelProvider.dll",
|
||||||
|
|
||||||
"Common.Search.dll",
|
"Common.Search.dll",
|
||||||
|
|
||||||
@@ -181,6 +181,7 @@
|
|||||||
"PowerToys.MousePointerCrosshairs.dll",
|
"PowerToys.MousePointerCrosshairs.dll",
|
||||||
"PowerToys.MouseJumpUI.dll",
|
"PowerToys.MouseJumpUI.dll",
|
||||||
"PowerToys.MouseJumpUI.exe",
|
"PowerToys.MouseJumpUI.exe",
|
||||||
|
"PowerToys.CursorWrap.dll",
|
||||||
|
|
||||||
"PowerToys.MouseWithoutBorders.dll",
|
"PowerToys.MouseWithoutBorders.dll",
|
||||||
"PowerToys.MouseWithoutBorders.exe",
|
"PowerToys.MouseWithoutBorders.exe",
|
||||||
@@ -290,6 +291,7 @@
|
|||||||
"Mono.Cecil.Rocks.dll",
|
"Mono.Cecil.Rocks.dll",
|
||||||
"Newtonsoft.Json.dll",
|
"Newtonsoft.Json.dll",
|
||||||
"CommunityToolkit.WinUI.Controls.TitleBar.dll",
|
"CommunityToolkit.WinUI.Controls.TitleBar.dll",
|
||||||
|
"CommunityToolkit.WinUI.Controls.OpacityMaskView.dll",
|
||||||
|
|
||||||
"NLog.dll",
|
"NLog.dll",
|
||||||
"HtmlAgilityPack.dll",
|
"HtmlAgilityPack.dll",
|
||||||
@@ -346,6 +348,8 @@
|
|||||||
"Testably.Abstractions.FileSystem.Interface.dll",
|
"Testably.Abstractions.FileSystem.Interface.dll",
|
||||||
"WinUI3Apps\\Testably.Abstractions.FileSystem.Interface.dll",
|
"WinUI3Apps\\Testably.Abstractions.FileSystem.Interface.dll",
|
||||||
"ColorCode.Core.dll",
|
"ColorCode.Core.dll",
|
||||||
|
"Microsoft.SemanticKernel.Connectors.Ollama.dll",
|
||||||
|
"OllamaSharp.dll",
|
||||||
|
|
||||||
"UnitsNet.dll",
|
"UnitsNet.dll",
|
||||||
"UtfUnknown.dll",
|
"UtfUnknown.dll",
|
||||||
|
|||||||
@@ -1,53 +0,0 @@
|
|||||||
{
|
|
||||||
"Version": "1.0.0",
|
|
||||||
"UseMinimatch": false,
|
|
||||||
"SignBatches": [
|
|
||||||
{
|
|
||||||
"MatchedPath": [
|
|
||||||
"PowerToysSetupCustomActionsVNext.dll",
|
|
||||||
"SilentFilesInUseBAFunction.dll",
|
|
||||||
"PowerToys*Setup-*.exe",
|
|
||||||
"PowerToys*Setup-*.msi"
|
|
||||||
],
|
|
||||||
"SigningInfo": {
|
|
||||||
"Operations": [
|
|
||||||
{
|
|
||||||
"KeyCode": "CP-230012",
|
|
||||||
"OperationSetCode": "SigntoolSign",
|
|
||||||
"Parameters": [
|
|
||||||
{
|
|
||||||
"parameterName": "OpusName",
|
|
||||||
"parameterValue": "Microsoft"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"parameterName": "OpusInfo",
|
|
||||||
"parameterValue": "http://www.microsoft.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"parameterName": "FileDigest",
|
|
||||||
"parameterValue": "/fd \"SHA256\""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"parameterName": "PageHash",
|
|
||||||
"parameterValue": "/NPH"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"parameterName": "TimeStamp",
|
|
||||||
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ToolName": "sign",
|
|
||||||
"ToolVersion": "1.0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"KeyCode": "CP-230012",
|
|
||||||
"OperationSetCode": "SigntoolVerify",
|
|
||||||
"Parameters": [],
|
|
||||||
"ToolName": "sign",
|
|
||||||
"ToolVersion": "1.0"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -65,21 +65,28 @@ if (-not (Test-Path $outputDir)) {
|
|||||||
New-Item -Path $outputDir -ItemType Directory -Force | Out-Null
|
New-Item -Path $outputDir -ItemType Directory -Force | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "DSC manifests will be generated to: '$outputDir'"
|
# DSC v3 manifests go to DSCModules subfolder
|
||||||
|
$dscOutputDir = Join-Path $outputDir 'DSCModules'
|
||||||
|
if (-not (Test-Path $dscOutputDir)) {
|
||||||
|
Write-Host "Creating DSCModules subfolder at '$dscOutputDir'."
|
||||||
|
New-Item -Path $dscOutputDir -ItemType Directory -Force | Out-Null
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "Cleaning previously generated DSC manifest files from '$outputDir'."
|
Write-Host "DSC manifests will be generated to: '$dscOutputDir'"
|
||||||
Get-ChildItem -Path $outputDir -Filter 'microsoft.powertoys.*.settings.dsc.resource.json' -ErrorAction SilentlyContinue | Remove-Item -Force
|
|
||||||
|
|
||||||
$arguments = @('manifest', '--resource', 'settings', '--outputDir', $outputDir)
|
Write-Host "Cleaning previously generated DSC manifest files from '$dscOutputDir'."
|
||||||
|
Get-ChildItem -Path $dscOutputDir -Filter 'microsoft.powertoys.*.settings.dsc.resource.json' -ErrorAction SilentlyContinue | Remove-Item -Force
|
||||||
|
|
||||||
|
$arguments = @('manifest', '--resource', 'settings', '--outputDir', $dscOutputDir)
|
||||||
Write-Host "Invoking DSC manifest generator: '$exePath' $($arguments -join ' ')"
|
Write-Host "Invoking DSC manifest generator: '$exePath' $($arguments -join ' ')"
|
||||||
& $exePath @arguments
|
& $exePath @arguments
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
throw "PowerToys.DSC.exe exited with code $LASTEXITCODE"
|
throw "PowerToys.DSC.exe exited with code $LASTEXITCODE"
|
||||||
}
|
}
|
||||||
|
|
||||||
$generatedFiles = Get-ChildItem -Path $outputDir -Filter 'microsoft.powertoys.*.settings.dsc.resource.json' -ErrorAction Stop
|
$generatedFiles = Get-ChildItem -Path $dscOutputDir -Filter 'microsoft.powertoys.*.settings.dsc.resource.json' -ErrorAction Stop
|
||||||
if ($generatedFiles.Count -eq 0) {
|
if ($generatedFiles.Count -eq 0) {
|
||||||
throw "No DSC manifest files were generated in '$outputDir'."
|
throw "No DSC manifest files were generated in '$dscOutputDir'."
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Generated $($generatedFiles.Count) DSC manifest file(s):"
|
Write-Host "Generated $($generatedFiles.Count) DSC manifest file(s):"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Microsoft.PowerToys.Telemetry" version="2.0.3" />
|
<package id="Microsoft.PowerToys.Telemetry" version="2.0.4" />
|
||||||
</packages>
|
</packages>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ parameters:
|
|||||||
- name: enableMsBuildCaching
|
- name: enableMsBuildCaching
|
||||||
type: boolean
|
type: boolean
|
||||||
displayName: "Enable MSBuild Caching"
|
displayName: "Enable MSBuild Caching"
|
||||||
default: true
|
default: false
|
||||||
- name: runTests
|
- name: runTests
|
||||||
type: boolean
|
type: boolean
|
||||||
displayName: "Run Tests"
|
displayName: "Run Tests"
|
||||||
|
|||||||
@@ -52,8 +52,6 @@ extends:
|
|||||||
name: SHINE-INT-S
|
name: SHINE-INT-S
|
||||||
${{ if eq(parameters.useVSPreview, true) }}:
|
${{ if eq(parameters.useVSPreview, true) }}:
|
||||||
demands: ImageOverride -equals SHINE-VS17-Preview
|
demands: ImageOverride -equals SHINE-VS17-Preview
|
||||||
${{ else }}:
|
|
||||||
image: SHINE-VS17-Latest
|
|
||||||
os: windows
|
os: windows
|
||||||
sdl:
|
sdl:
|
||||||
tsa:
|
tsa:
|
||||||
@@ -75,7 +73,6 @@ extends:
|
|||||||
name: SHINE-INT-L
|
name: SHINE-INT-L
|
||||||
demands:
|
demands:
|
||||||
# Our INT agents have a large disk mounted at P:\
|
# Our INT agents have a large disk mounted at P:\
|
||||||
- WorkFolder -equals P:\_work
|
|
||||||
- ${{ if eq(parameters.useVSPreview, true) }}:
|
- ${{ if eq(parameters.useVSPreview, true) }}:
|
||||||
- ImageOverride -equals SHINE-VS17-Preview
|
- ImageOverride -equals SHINE-VS17-Preview
|
||||||
os: windows
|
os: windows
|
||||||
@@ -126,7 +123,6 @@ extends:
|
|||||||
parameters:
|
parameters:
|
||||||
pool:
|
pool:
|
||||||
name: SHINE-INT-L
|
name: SHINE-INT-L
|
||||||
image: SHINE-VS17-Latest
|
|
||||||
os: windows
|
os: windows
|
||||||
official: true
|
official: true
|
||||||
codeSign: true
|
codeSign: true
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ jobs:
|
|||||||
${{ else }}:
|
${{ else }}:
|
||||||
OutputBuildPlatform: ${{ platform }}
|
OutputBuildPlatform: ${{ platform }}
|
||||||
variables:
|
variables:
|
||||||
|
NUGET_PACKAGES: 'C:\NuGetPackages' # Some of our build steps cache these here... and it was apparently part of the global environment
|
||||||
MakeAppxPath: 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x86\MakeAppx.exe'
|
MakeAppxPath: 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x86\MakeAppx.exe'
|
||||||
# Azure DevOps abhors a vacuum
|
# Azure DevOps abhors a vacuum
|
||||||
# If these are blank, expansion will fail later on... which will result in direct substitution of the variable *names*
|
# If these are blank, expansion will fail later on... which will result in direct substitution of the variable *names*
|
||||||
@@ -139,6 +140,10 @@ jobs:
|
|||||||
- output: pipelineArtifact
|
- output: pipelineArtifact
|
||||||
artifactName: $(JobOutputArtifactName)
|
artifactName: $(JobOutputArtifactName)
|
||||||
targetPath: $(Build.ArtifactStagingDirectory)
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
- output: pipelineArtifact
|
||||||
|
artifactName: $(JobOutputArtifactName)-failure-$(System.JobAttempt)
|
||||||
|
targetPath: $(LogOutputDirectory)
|
||||||
|
condition: or(failed(), canceled())
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
clean: true
|
clean: true
|
||||||
@@ -187,14 +192,14 @@ jobs:
|
|||||||
displayName: Verify XAML formatting
|
displayName: Verify XAML formatting
|
||||||
|
|
||||||
- pwsh: |-
|
- pwsh: |-
|
||||||
& '.pipelines/verifyNugetPackages.ps1' -solution '$(build.sourcesdirectory)\PowerToys.sln'
|
& '.pipelines/verifyNugetPackages.ps1' -solution '$(build.sourcesdirectory)\PowerToys.slnx'
|
||||||
displayName: Verify Nuget package versions for PowerToys.sln
|
displayName: Verify Nuget package versions for PowerToys.slnx
|
||||||
|
|
||||||
- pwsh: |-
|
- pwsh: |-
|
||||||
& '.pipelines/verifyArm64Configuration.ps1' -solution '$(build.sourcesdirectory)\PowerToys.sln'
|
& '.pipelines/verifyArm64Configuration.ps1' -solution '$(build.sourcesdirectory)\PowerToys.slnx'
|
||||||
& '.pipelines/verifyArm64Configuration.ps1' -solution '$(build.sourcesdirectory)\tools\BugReportTool\BugReportTool.sln'
|
& '.pipelines/verifyArm64Configuration.ps1' -solution '$(build.sourcesdirectory)\tools\BugReportTool\BugReportTool.sln'
|
||||||
& '.pipelines/verifyArm64Configuration.ps1' -solution '$(build.sourcesdirectory)\tools\StylesReportTool\StylesReportTool.sln'
|
& '.pipelines/verifyArm64Configuration.ps1' -solution '$(build.sourcesdirectory)\tools\StylesReportTool\StylesReportTool.sln'
|
||||||
& '.pipelines/verifyArm64Configuration.ps1' -solution '$(build.sourcesdirectory)\installer\PowerToysSetup.sln'
|
& '.pipelines/verifyArm64Configuration.ps1' -solution '$(build.sourcesdirectory)\installer\PowerToysSetup.slnx'
|
||||||
displayName: Verify ARM64 configurations
|
displayName: Verify ARM64 configurations
|
||||||
|
|
||||||
- ${{ if eq(parameters.enablePackageCaching, true) }}:
|
- ${{ if eq(parameters.enablePackageCaching, true) }}:
|
||||||
@@ -247,7 +252,7 @@ jobs:
|
|||||||
${{ else }}:
|
${{ else }}:
|
||||||
displayName: Build PowerToys main project
|
displayName: Build PowerToys main project
|
||||||
inputs:
|
inputs:
|
||||||
solution: 'PowerToys.sln'
|
solution: 'PowerToys.slnx'
|
||||||
vsVersion: 17.0
|
vsVersion: 17.0
|
||||||
msbuildArgs: >-
|
msbuildArgs: >-
|
||||||
-restore -graph
|
-restore -graph
|
||||||
@@ -266,6 +271,26 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
|
||||||
|
|
||||||
|
- task: VSBuild@1
|
||||||
|
displayName: Generate DSC artifacts for ARM64
|
||||||
|
condition: and(succeeded(), eq(variables['BuildPlatform'], 'arm64'))
|
||||||
|
inputs:
|
||||||
|
solution: PowerToys.slnx
|
||||||
|
vsVersion: 17.0
|
||||||
|
msbuildArgs: >-
|
||||||
|
-restore
|
||||||
|
/p:Configuration=$(BuildConfiguration)
|
||||||
|
/p:Platform=x64
|
||||||
|
/t:DSC\PowerToys_Settings_DSC_Schema_Generator
|
||||||
|
/bl:$(LogOutputDirectory)\build-dsc-generator.binlog
|
||||||
|
${{ parameters.additionalBuildOptions }}
|
||||||
|
$(MSBuildCacheParameters)
|
||||||
|
$(RestoreAdditionalProjectSourcesArg)
|
||||||
|
platform: x64
|
||||||
|
configuration: $(BuildConfiguration)
|
||||||
|
msbuildArchitecture: x64
|
||||||
|
maximumCpuCount: true
|
||||||
|
|
||||||
# Build PowerToys.DSC.exe for ARM64 (x64 uses existing binary from previous build)
|
# Build PowerToys.DSC.exe for ARM64 (x64 uses existing binary from previous build)
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
displayName: Build PowerToys.DSC.exe (x64 for generating manifests)
|
displayName: Build PowerToys.DSC.exe (x64 for generating manifests)
|
||||||
@@ -375,7 +400,7 @@ jobs:
|
|||||||
### HACK: On ARM64 builds, building an app with Windows App SDK copies the x64 WebView2 dll instead of the ARM64 one. This task makes sure the right dll is used.
|
### HACK: On ARM64 builds, building an app with Windows App SDK copies the x64 WebView2 dll instead of the ARM64 one. This task makes sure the right dll is used.
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: HACK Copy core WebView2 ARM64 dll to output directory
|
displayName: HACK Copy core WebView2 ARM64 dll to output directory
|
||||||
condition: eq(variables['BuildPlatform'],'arm64')
|
condition: and(succeeded(), eq(variables['BuildPlatform'], 'arm64'))
|
||||||
inputs:
|
inputs:
|
||||||
contents: packages/Microsoft.Web.WebView2.1.0.2903.40/runtimes/win-ARM64/native_uap/Microsoft.Web.WebView2.Core.dll
|
contents: packages/Microsoft.Web.WebView2.1.0.2903.40/runtimes/win-ARM64/native_uap/Microsoft.Web.WebView2.Core.dll
|
||||||
targetFolder: $(Build.SourcesDirectory)/ARM64/Release/WinUI3Apps/
|
targetFolder: $(Build.SourcesDirectory)/ARM64/Release/WinUI3Apps/
|
||||||
@@ -414,11 +439,11 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
testResultsFormat: VSTest
|
testResultsFormat: VSTest
|
||||||
testResultsFiles: '**/*.trx'
|
testResultsFiles: '**/*.trx'
|
||||||
condition: ne(variables['BuildPlatform'],'arm64')
|
condition: and(succeeded(), ne(variables['BuildPlatform'], 'arm64'))
|
||||||
|
|
||||||
# Native dlls
|
# Native dlls
|
||||||
- task: VSTest@2
|
- task: VSTest@2
|
||||||
condition: ne(variables['BuildPlatform'],'arm64') # No arm64 agents to run the tests.
|
condition: and(succeeded(), ne(variables['BuildPlatform'], 'arm64')) # No arm64 agents to run the tests.
|
||||||
displayName: 'Native Tests'
|
displayName: 'Native Tests'
|
||||||
inputs:
|
inputs:
|
||||||
platform: '$(BuildPlatform)'
|
platform: '$(BuildPlatform)'
|
||||||
@@ -512,14 +537,6 @@ jobs:
|
|||||||
versionNumber: ${{ parameters.versionNumber }}
|
versionNumber: ${{ parameters.versionNumber }}
|
||||||
additionalBuildOptions: ${{ parameters.additionalBuildOptions }}
|
additionalBuildOptions: ${{ parameters.additionalBuildOptions }}
|
||||||
|
|
||||||
- template: steps-build-installer-vnext.yml
|
|
||||||
parameters:
|
|
||||||
codeSign: ${{ parameters.codeSign }}
|
|
||||||
signingIdentity: ${{ parameters.signingIdentity }}
|
|
||||||
versionNumber: ${{ parameters.versionNumber }}
|
|
||||||
additionalBuildOptions: ${{ parameters.additionalBuildOptions }}
|
|
||||||
buildUserInstaller: true # NOTE: This is the distinction between the above and below rules
|
|
||||||
|
|
||||||
# This saves ~1GiB per architecture. We won't need these later.
|
# This saves ~1GiB per architecture. We won't need these later.
|
||||||
# Removes:
|
# Removes:
|
||||||
# - All .pdb files from any static libs .libs (which were only used during linking)
|
# - All .pdb files from any static libs .libs (which were only used during linking)
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
command: restore
|
command: restore
|
||||||
feedsToUse: config
|
feedsToUse: config
|
||||||
configPath: nuget.config
|
configPath: nuget.config
|
||||||
restoreSolution: PowerToys.sln
|
restoreSolution: PowerToys.slnx
|
||||||
restoreDirectory: '$(Build.SourcesDirectory)\packages'
|
restoreDirectory: '$(Build.SourcesDirectory)\packages'
|
||||||
|
|
||||||
# Build all UI test projects if no specific modules are specified
|
# Build all UI test projects if no specific modules are specified
|
||||||
|
|||||||
@@ -2,9 +2,6 @@ parameters:
|
|||||||
- name: versionNumber
|
- name: versionNumber
|
||||||
type: string
|
type: string
|
||||||
default: "0.0.1"
|
default: "0.0.1"
|
||||||
- name: buildUserInstaller
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
- name: codeSign
|
- name: codeSign
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
@@ -25,43 +22,26 @@ steps:
|
|||||||
arguments: 'install --global wix --version 5.0.2'
|
arguments: 'install --global wix --version 5.0.2'
|
||||||
|
|
||||||
- pwsh: |-
|
- pwsh: |-
|
||||||
& git clean -xfd -e *exe -- .\installer\
|
Write-Host "##vso[task.setvariable variable=InstallerMachineRoot]installer\PowerToysSetupVNext\$(BuildPlatform)\$(BuildConfiguration)\MachineSetup"
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Clean installer to reduce cross-contamination
|
Write-Host "##vso[task.setvariable variable=InstallerUserRoot]installer\PowerToysSetupVNext\$(BuildPlatform)\$(BuildConfiguration)\UserSetup"
|
||||||
|
Write-Host "##vso[task.setvariable variable=InstallerMachineBasename]PowerToysSetup-${{ parameters.versionNumber }}-$(BuildPlatform)"
|
||||||
- pwsh: |-
|
Write-Host "##vso[task.setvariable variable=InstallerUserBasename]PowerToysUserSetup-${{ parameters.versionNumber }}-$(BuildPlatform)"
|
||||||
# Determine whether this is a per-user build
|
displayName: Prepare Installer variables
|
||||||
$IsPerUser = $${{ parameters.buildUserInstaller }}
|
|
||||||
|
|
||||||
# Build slug used to locate the artifacts
|
|
||||||
$InstallerBuildSlug = if ($IsPerUser) { 'UserSetup' } else { 'MachineSetup' }
|
|
||||||
|
|
||||||
# VNext bundle folder; base name intentionally omits the VNext suffix
|
|
||||||
$InstallerFolder = 'PowerToysSetupVNext'
|
|
||||||
if ($IsPerUser) {
|
|
||||||
$InstallerBasename = "PowerToysUserSetup-${{ parameters.versionNumber }}-$(BuildPlatform)"
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$InstallerBasename = "PowerToysSetup-${{ parameters.versionNumber }}-$(BuildPlatform)"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Export variables for downstream steps
|
|
||||||
Write-Host "##vso[task.setvariable variable=InstallerBuildSlug]$InstallerBuildSlug"
|
|
||||||
Write-Host "##vso[task.setvariable variable=InstallerRelativePath]$(BuildPlatform)\$(BuildConfiguration)\$InstallerBuildSlug"
|
|
||||||
Write-Host "##vso[task.setvariable variable=InstallerBasename]$InstallerBasename"
|
|
||||||
Write-Host "##vso[task.setvariable variable=InstallerFolder]$InstallerFolder"
|
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Prepare Installer variables
|
|
||||||
|
|
||||||
# This dll needs to be built and signed before building the MSI.
|
# This dll needs to be built and signed before building the MSI.
|
||||||
|
# The Custom Actions project contains a pre-build event that prepares the .wxs files
|
||||||
|
# by filling them out with all our components. We pass RunBuildEvents=true to force
|
||||||
|
# that logic to run.
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Build PowerToysSetupCustomActionsVNext
|
displayName: Build Shared Support DLLs
|
||||||
inputs:
|
inputs:
|
||||||
solution: "**/installer/PowerToysSetup.sln"
|
solution: "**/installer/PowerToysSetup.slnx"
|
||||||
vsVersion: 17.0
|
vsVersion: 17.0
|
||||||
msbuildArgs: >-
|
msbuildArgs: >-
|
||||||
/t:PowerToysSetupCustomActionsVNext
|
/t:PowerToysSetupCustomActionsVNext;SilentFilesInUseBAFunction
|
||||||
/p:RunBuildEvents=true;PerUser=${{parameters.buildUserInstaller}};RestorePackagesConfig=true;CIBuild=true
|
/p:RunBuildEvents=true;RestorePackagesConfig=true;CIBuild=true
|
||||||
-restore -graph
|
-restore -graph
|
||||||
/bl:$(LogOutputDirectory)\installer-$(InstallerBuildSlug)-actions.binlog
|
/bl:$(LogOutputDirectory)\installer-actions.binlog
|
||||||
${{ parameters.additionalBuildOptions }}
|
${{ parameters.additionalBuildOptions }}
|
||||||
platform: $(BuildPlatform)
|
platform: $(BuildPlatform)
|
||||||
configuration: $(BuildConfiguration)
|
configuration: $(BuildConfiguration)
|
||||||
@@ -70,28 +50,53 @@ steps:
|
|||||||
maximumCpuCount: true
|
maximumCpuCount: true
|
||||||
|
|
||||||
- ${{ if eq(parameters.codeSign, true) }}:
|
- ${{ if eq(parameters.codeSign, true) }}:
|
||||||
- template: steps-esrp-signing.yml
|
- template: steps-esrp-sign-files-authenticode.yml
|
||||||
parameters:
|
parameters:
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Sign PowerToysSetupCustomActionsVNext
|
displayName: Sign Shared Support DLLs
|
||||||
signingIdentity: ${{ parameters.signingIdentity }}
|
signingIdentity: ${{ parameters.signingIdentity }}
|
||||||
inputs:
|
folder: 'installer'
|
||||||
FolderPath: 'installer/PowerToysSetupCustomActionsVNext/$(InstallerRelativePath)'
|
pattern: |-
|
||||||
signType: batchSigning
|
**/PowerToysSetupCustomActionsVNext.dll
|
||||||
batchSignPolicyFile: '$(build.sourcesdirectory)\.pipelines\ESRPSigning_installer.json'
|
**/SilentFilesInUseBAFunction.dll
|
||||||
ciPolicyFile: '$(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
|
|
||||||
|
|
||||||
## INSTALLER START
|
## INSTALLER START
|
||||||
#### MSI BUILDING AND SIGNING
|
#### MSI BUILDING AND SIGNING
|
||||||
|
#
|
||||||
|
# The MSI build contains code that reverts the .wxs files to their in-tree versions.
|
||||||
|
# This is only supposed to happen during local builds. Since this build system is
|
||||||
|
# supposed to run side by side--machine and then user--we do NOT want to destroy
|
||||||
|
# the .wxs files. Therefore, we pass RunBuildEvents=false to suppress all of that
|
||||||
|
# logic.
|
||||||
|
#
|
||||||
|
# We pass BuildProjectReferences=false so that it does not recompile the DLLs we just built.
|
||||||
|
# We only pass -restore on the first one because the second run should already have all
|
||||||
|
# of the dependencies.
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Build VNext MSI
|
displayName: 💻 Build VNext MSI
|
||||||
inputs:
|
inputs:
|
||||||
solution: "**/installer/PowerToysSetup.sln"
|
solution: "**/installer/PowerToysSetup.slnx"
|
||||||
vsVersion: 17.0
|
vsVersion: 17.0
|
||||||
msbuildArgs: >-
|
msbuildArgs: >-
|
||||||
-restore
|
-restore
|
||||||
/t:PowerToysInstallerVNext
|
/t:PowerToysInstallerVNext
|
||||||
/p:RunBuildEvents=false;PerUser=${{parameters.buildUserInstaller}};BuildProjectReferences=false;CIBuild=true
|
/p:RunBuildEvents=false;PerUser=false;BuildProjectReferences=false;CIBuild=true
|
||||||
/bl:$(LogOutputDirectory)\installer-$(InstallerBuildSlug)-msi.binlog
|
/bl:$(LogOutputDirectory)\installer-machine-msi.binlog
|
||||||
|
${{ parameters.additionalBuildOptions }}
|
||||||
|
platform: $(BuildPlatform)
|
||||||
|
configuration: $(BuildConfiguration)
|
||||||
|
clean: false # don't undo our hard work above by deleting the CustomActions dll
|
||||||
|
msbuildArchitecture: x64
|
||||||
|
maximumCpuCount: true
|
||||||
|
|
||||||
|
- task: VSBuild@1
|
||||||
|
displayName: 👤 Build VNext MSI
|
||||||
|
inputs:
|
||||||
|
solution: "**/installer/PowerToysSetup.slnx"
|
||||||
|
vsVersion: 17.0
|
||||||
|
msbuildArgs: >-
|
||||||
|
/t:PowerToysInstallerVNext
|
||||||
|
/p:RunBuildEvents=false;PerUser=true;BuildProjectReferences=false;CIBuild=true
|
||||||
|
/bl:$(LogOutputDirectory)\installer-user-msi.binlog
|
||||||
${{ parameters.additionalBuildOptions }}
|
${{ parameters.additionalBuildOptions }}
|
||||||
platform: $(BuildPlatform)
|
platform: $(BuildPlatform)
|
||||||
configuration: $(BuildConfiguration)
|
configuration: $(BuildConfiguration)
|
||||||
@@ -100,77 +105,66 @@ steps:
|
|||||||
maximumCpuCount: true
|
maximumCpuCount: true
|
||||||
|
|
||||||
- script: |-
|
- script: |-
|
||||||
wix msi decompile installer\$(InstallerFolder)\$(InstallerRelativePath)\$(InstallerBasename).msi -x $(build.sourcesdirectory)\extractedMsi
|
wix msi decompile $(InstallerMachineRoot)\$(InstallerMachineBasename).msi -x $(build.sourcesdirectory)\extractedMachineMsi
|
||||||
dir $(build.sourcesdirectory)\extractedMsi
|
wix msi decompile $(InstallerUserRoot)\$(InstallerUserBasename).msi -x $(build.sourcesdirectory)\extractedUserMsi
|
||||||
displayName: "${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} WiX5: Extract and verify MSI"
|
dir $(build.sourcesdirectory)\extractedMachineMsi
|
||||||
|
dir $(build.sourcesdirectory)\extractedUserMsi
|
||||||
|
displayName: "WiX5: Extract and verify MSIs"
|
||||||
|
|
||||||
# Check if deps.json files don't reference different dll versions.
|
# Check if deps.json files don't reference different dll versions.
|
||||||
- pwsh: |-
|
- pwsh: |-
|
||||||
& '.pipelines/verifyDepsJsonLibraryVersions.ps1' -targetDir '$(build.sourcesdirectory)\extractedMsi\File'
|
& '.pipelines/verifyDepsJsonLibraryVersions.ps1' -targetDir '$(build.sourcesdirectory)\extractedMachineMsi\File'
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Audit deps.json in MSI extracted files
|
& '.pipelines/verifyDepsJsonLibraryVersions.ps1' -targetDir '$(build.sourcesdirectory)\extractedUserMsi\File'
|
||||||
|
displayName: Audit deps.json in MSI extracted files
|
||||||
|
|
||||||
- ${{ if eq(parameters.codeSign, true) }}:
|
- ${{ if eq(parameters.codeSign, true) }}:
|
||||||
- pwsh: |-
|
- pwsh: |-
|
||||||
& .pipelines/versionAndSignCheck.ps1 -targetDir '$(build.sourcesdirectory)\extractedMsi\File'
|
& .pipelines/versionAndSignCheck.ps1 -targetDir '$(build.sourcesdirectory)\extractedMachineMsi\File'
|
||||||
& .pipelines/versionAndSignCheck.ps1 -targetDir '$(build.sourcesdirectory)\extractedMsi\Binary'
|
& .pipelines/versionAndSignCheck.ps1 -targetDir '$(build.sourcesdirectory)\extractedMachineMsi\Binary'
|
||||||
git clean -xfd ./extractedMsi
|
& .pipelines/versionAndSignCheck.ps1 -targetDir '$(build.sourcesdirectory)\extractedUserMsi\File'
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Verify all binaries are signed and versioned
|
& .pipelines/versionAndSignCheck.ps1 -targetDir '$(build.sourcesdirectory)\extractedUserMsi\Binary'
|
||||||
|
git clean -xfd ./extractedMachineMsi ./extractedUserMsi
|
||||||
|
displayName: Verify all binaries are signed and versioned
|
||||||
|
|
||||||
- template: steps-esrp-signing.yml
|
- template: steps-esrp-sign-files-authenticode.yml
|
||||||
parameters:
|
parameters:
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Sign VNext MSI
|
displayName: Sign VNext MSIs
|
||||||
signingIdentity: ${{ parameters.signingIdentity }}
|
signingIdentity: ${{ parameters.signingIdentity }}
|
||||||
inputs:
|
folder: 'installer'
|
||||||
FolderPath: 'installer/$(InstallerFolder)/$(InstallerRelativePath)'
|
pattern: '**/PowerToys*Setup-*.msi'
|
||||||
signType: batchSigning
|
|
||||||
batchSignPolicyFile: '$(build.sourcesdirectory)\.pipelines\ESRPSigning_installer.json'
|
|
||||||
ciPolicyFile: '$(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
|
|
||||||
|
|
||||||
#### END MSI
|
#### END MSI
|
||||||
|
|
||||||
#### BUILDING AND SIGNING SilentFilesInUseBAFunction DLL
|
|
||||||
- task: VSBuild@1
|
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Build SilentFilesInUseBAFunction
|
|
||||||
inputs:
|
|
||||||
solution: "**/installer/PowerToysSetup.sln"
|
|
||||||
vsVersion: 17.0
|
|
||||||
msbuildArgs: >-
|
|
||||||
/t:SilentFilesInUseBAFunction
|
|
||||||
/p:RunBuildEvents=true;PerUser=${{parameters.buildUserInstaller}};RestorePackagesConfig=true;CIBuild=true
|
|
||||||
-restore -graph
|
|
||||||
/bl:$(LogOutputDirectory)\installer-$(InstallerBuildSlug)-SilentFilesInUseBAFunction.binlog
|
|
||||||
${{ parameters.additionalBuildOptions }}
|
|
||||||
platform: $(BuildPlatform)
|
|
||||||
configuration: $(BuildConfiguration)
|
|
||||||
clean: false # don't undo our hard work above by deleting the msi
|
|
||||||
msbuildArchitecture: x64
|
|
||||||
maximumCpuCount: true
|
|
||||||
|
|
||||||
- ${{ if eq(parameters.codeSign, true) }}:
|
|
||||||
- template: steps-esrp-signing.yml
|
|
||||||
parameters:
|
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Sign SilentFilesInUseBAFunction
|
|
||||||
signingIdentity: ${{ parameters.signingIdentity }}
|
|
||||||
inputs:
|
|
||||||
FolderPath: 'installer/$(BuildPlatform)/$(BuildConfiguration)'
|
|
||||||
signType: batchSigning
|
|
||||||
batchSignPolicyFile: '$(build.sourcesdirectory)\.pipelines\ESRPSigning_installer.json'
|
|
||||||
ciPolicyFile: '$(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
|
|
||||||
|
|
||||||
#### END BUILDING AND SIGNING SilentFilesInUseBAFunction DLL
|
|
||||||
|
|
||||||
#### BOOTSTRAP BUILDING AND SIGNING
|
#### BOOTSTRAP BUILDING AND SIGNING
|
||||||
|
# We pass BuildProjectReferences=false so that it does not recompile the DLLs we just built.
|
||||||
|
# We only pass -restore on the first one because the second run should already have all
|
||||||
|
# of the dependencies.
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Build VNext Bootstrapper
|
displayName: 💻 Build VNext Bootstrapper
|
||||||
inputs:
|
inputs:
|
||||||
solution: "**/installer/PowerToysSetup.sln"
|
solution: "**/installer/PowerToysSetup.slnx"
|
||||||
vsVersion: 17.0
|
vsVersion: 17.0
|
||||||
msbuildArgs: >-
|
msbuildArgs: >-
|
||||||
-restore
|
-restore
|
||||||
/t:PowerToysBootstrapperVNext
|
/t:PowerToysBootstrapperVNext
|
||||||
/p:PerUser=${{parameters.buildUserInstaller}};CIBuild=true
|
/p:PerUser=false;BuildProjectReferences=false;CIBuild=true
|
||||||
/bl:$(LogOutputDirectory)\installer-$(InstallerBuildSlug)-bootstrapper.binlog
|
/bl:$(LogOutputDirectory)\installer-machine-bootstrapper.binlog
|
||||||
-restore -graph
|
${{ parameters.additionalBuildOptions }}
|
||||||
|
platform: $(BuildPlatform)
|
||||||
|
configuration: $(BuildConfiguration)
|
||||||
|
clean: false # don't undo our hard work above by deleting the MSI nor SilentFilesInUseBAFunction
|
||||||
|
msbuildArchitecture: x64
|
||||||
|
maximumCpuCount: true
|
||||||
|
|
||||||
|
- task: VSBuild@1
|
||||||
|
displayName: 👤 Build VNext Bootstrapper
|
||||||
|
inputs:
|
||||||
|
solution: "**/installer/PowerToysSetup.slnx"
|
||||||
|
vsVersion: 17.0
|
||||||
|
msbuildArgs: >-
|
||||||
|
/t:PowerToysBootstrapperVNext
|
||||||
|
/p:PerUser=true;BuildProjectReferences=false;CIBuild=true
|
||||||
|
/bl:$(LogOutputDirectory)\installer-user-bootstrapper.binlog
|
||||||
${{ parameters.additionalBuildOptions }}
|
${{ parameters.additionalBuildOptions }}
|
||||||
platform: $(BuildPlatform)
|
platform: $(BuildPlatform)
|
||||||
configuration: $(BuildConfiguration)
|
configuration: $(BuildConfiguration)
|
||||||
@@ -181,54 +175,41 @@ steps:
|
|||||||
# The entirety of bundle unpacking/re-packing is unnecessary if we are not code signing it.
|
# The entirety of bundle unpacking/re-packing is unnecessary if we are not code signing it.
|
||||||
- ${{ if eq(parameters.codeSign, true) }}:
|
- ${{ if eq(parameters.codeSign, true) }}:
|
||||||
- script: |-
|
- script: |-
|
||||||
wix burn detach installer\$(InstallerFolder)\$(InstallerRelativePath)\$(InstallerBasename).exe -engine installer\engine.exe
|
wix burn detach $(InstallerMachineRoot)\$(InstallerMachineBasename).exe -engine installer\machine-engine.exe
|
||||||
displayName: "${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} WiX5: Extract Engine from Bundle"
|
wix burn detach $(InstallerUserRoot)\$(InstallerUserBasename).exe -engine installer\user-engine.exe
|
||||||
|
displayName: "WiX5: Extract Engines from Bundles"
|
||||||
|
|
||||||
- template: steps-esrp-signing.yml
|
- template: steps-esrp-sign-files-authenticode.yml
|
||||||
parameters:
|
parameters:
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Sign WiX Engine
|
displayName: Sign WiX Engines
|
||||||
signingIdentity: ${{ parameters.signingIdentity }}
|
signingIdentity: ${{ parameters.signingIdentity }}
|
||||||
inputs:
|
folder: "installer"
|
||||||
FolderPath: "installer"
|
pattern: '*-engine.exe'
|
||||||
Pattern: engine.exe
|
|
||||||
signConfigType: inlineSignParams
|
|
||||||
inlineOperation: |
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"KeyCode": "CP-230012",
|
|
||||||
"OperationCode": "SigntoolSign",
|
|
||||||
"Parameters": {
|
|
||||||
"OpusName": "Microsoft",
|
|
||||||
"OpusInfo": "http://www.microsoft.com",
|
|
||||||
"FileDigest": "/fd \"SHA256\"",
|
|
||||||
"PageHash": "/NPH",
|
|
||||||
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
|
|
||||||
},
|
|
||||||
"ToolName": "sign",
|
|
||||||
"ToolVersion": "1.0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"KeyCode": "CP-230012",
|
|
||||||
"OperationCode": "SigntoolVerify",
|
|
||||||
"Parameters": {},
|
|
||||||
"ToolName": "sign",
|
|
||||||
"ToolVersion": "1.0"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
- script: |-
|
- script: |-
|
||||||
wix burn reattach installer\$(InstallerFolder)\$(InstallerRelativePath)\$(InstallerBasename).exe -engine installer\engine.exe -o installer\$(InstallerFolder)\$(InstallerRelativePath)\$(InstallerBasename).exe
|
wix burn reattach $(InstallerMachineRoot)\$(InstallerMachineBasename).exe -engine installer\machine-engine.exe -o $(InstallerMachineRoot)\$(InstallerMachineBasename).exe
|
||||||
displayName: "${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} WiX5: Reattach Engine to Bundle"
|
wix burn reattach $(InstallerUserRoot)\$(InstallerUserBasename).exe -engine installer\user-engine.exe -o $(InstallerUserRoot)\$(InstallerUserBasename).exe
|
||||||
|
displayName: "WiX5: Reattach Engines to Bundles"
|
||||||
|
|
||||||
- template: steps-esrp-signing.yml
|
- pwsh: |-
|
||||||
|
& wix burn extract -oba installer\ba\m "$(InstallerMachineRoot)\$(InstallerMachineBasename).exe"
|
||||||
|
& wix burn extract -oba installer\ba\u "$(InstallerUserRoot)\$(InstallerUserBasename).exe"
|
||||||
|
Get-ChildItem installer\ba -Recurse -Include *.exe,*.dll | Get-AuthenticodeSignature | ForEach-Object {
|
||||||
|
If ($_.Status -Ne "Valid") {
|
||||||
|
Write-Error $_.StatusMessage
|
||||||
|
} Else {
|
||||||
|
Write-Host $_.StatusMessage
|
||||||
|
}
|
||||||
|
}
|
||||||
|
& git clean -fdx installer\ba
|
||||||
|
displayName: "WiX5: Verify Bootstrapper content is signed"
|
||||||
|
|
||||||
|
- template: steps-esrp-sign-files-authenticode.yml
|
||||||
parameters:
|
parameters:
|
||||||
displayName: ${{replace(replace(parameters.buildUserInstaller,'True','👤'),'False','💻')}} Sign Final Bootstrapper
|
displayName: Sign Final Bootstrappers
|
||||||
signingIdentity: ${{ parameters.signingIdentity }}
|
signingIdentity: ${{ parameters.signingIdentity }}
|
||||||
inputs:
|
folder: 'installer'
|
||||||
FolderPath: 'installer/$(InstallerFolder)/$(InstallerRelativePath)'
|
pattern: '**/PowerToys*Setup-*.exe'
|
||||||
signType: batchSigning
|
|
||||||
batchSignPolicyFile: '$(build.sourcesdirectory)\.pipelines\ESRPSigning_installer.json'
|
|
||||||
ciPolicyFile: '$(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
|
|
||||||
|
|
||||||
#### END BOOTSTRAP
|
#### END BOOTSTRAP
|
||||||
## END INSTALLER
|
## END INSTALLER
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
parameters:
|
||||||
|
- name: displayName
|
||||||
|
type: string
|
||||||
|
default: Sign Specific Files
|
||||||
|
- name: folder
|
||||||
|
type: string
|
||||||
|
- name: pattern
|
||||||
|
type: string
|
||||||
|
- name: signingIdentity
|
||||||
|
type: object
|
||||||
|
default: {}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- template: steps-esrp-signing.yml
|
||||||
|
parameters:
|
||||||
|
displayName: ${{ parameters.displayName }}
|
||||||
|
signingIdentity: ${{ parameters.signingIdentity }}
|
||||||
|
inputs:
|
||||||
|
FolderPath: ${{ parameters.folder }}
|
||||||
|
Pattern: ${{ parameters.pattern }}
|
||||||
|
UseMinimatch: true
|
||||||
|
signConfigType: inlineSignParams
|
||||||
|
inlineOperation: |-
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"KeyCode": "CP-230012",
|
||||||
|
"OperationCode": "SigntoolSign",
|
||||||
|
"Parameters": {
|
||||||
|
"OpusName": "Microsoft",
|
||||||
|
"OpusInfo": "http://www.microsoft.com",
|
||||||
|
"FileDigest": "/fd \"SHA256\"",
|
||||||
|
"PageHash": "/NPH",
|
||||||
|
"TimeStamp": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
|
||||||
|
},
|
||||||
|
"ToolName": "sign",
|
||||||
|
"ToolVersion": "1.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"KeyCode": "CP-230012",
|
||||||
|
"OperationCode": "SigntoolVerify",
|
||||||
|
"Parameters": {},
|
||||||
|
"ToolName": "sign",
|
||||||
|
"ToolVersion": "1.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -55,3 +55,12 @@ steps:
|
|||||||
nugetConfigPath: '$(build.sourcesdirectory)\nuget.config'
|
nugetConfigPath: '$(build.sourcesdirectory)\nuget.config'
|
||||||
restoreSolution: '$(build.sourcesdirectory)\**\*.sln'
|
restoreSolution: '$(build.sourcesdirectory)\**\*.sln'
|
||||||
includeNuGetOrg: false
|
includeNuGetOrg: false
|
||||||
|
|
||||||
|
- task: NuGetCommand@2
|
||||||
|
displayName: 'Restore NuGet packages (slnx)'
|
||||||
|
inputs:
|
||||||
|
command: 'restore'
|
||||||
|
feedsToUse: 'config'
|
||||||
|
nugetConfigPath: '$(build.sourcesdirectory)\nuget.config'
|
||||||
|
restoreSolution: '$(build.sourcesdirectory)\**\*.slnx'
|
||||||
|
includeNuGetOrg: false
|
||||||
|
|||||||
13
.vscode/launch.json
vendored
@@ -38,6 +38,17 @@
|
|||||||
"env": {},
|
"env": {},
|
||||||
"console": "internalConsole",
|
"console": "internalConsole",
|
||||||
"stopAtEntry": false
|
"stopAtEntry": false
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"name": "Run AdvancedPaste (managed, no build, ARCH configurable)",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}\\${input:arch}\\Debug\\WinUI3Apps\\PowerToys.AdvancedPaste.exe",
|
||||||
|
"args": [],
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"env": {},
|
||||||
|
"console": "internalConsole",
|
||||||
|
"stopAtEntry": false
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
<PropertyGroup Condition="'$(SkipCppCodeAnalysis)' == ''">
|
<PropertyGroup Condition="'$(SkipCppCodeAnalysis)' == ''">
|
||||||
<RunCodeAnalysis>true</RunCodeAnalysis>
|
<RunCodeAnalysis>true</RunCodeAnalysis>
|
||||||
<CodeAnalysisRuleSet>$(MsbuildThisFileDirectory)\CppRuleSet.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>$(MsbuildThisFileDirectory)\CppRuleSet.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<CAExcludePath>$(MSBuildThisFileDirectory)deps;$(MSBuildThisFileDirectory)packages;$(CAExcludePath)</CAExcludePath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- C++ source compile-specific things for all configurations -->
|
<!-- C++ source compile-specific things for all configurations -->
|
||||||
@@ -34,7 +35,7 @@
|
|||||||
<PreferredToolArchitecture Condition="'$(PROCESSOR_ARCHITECTURE)' == 'ARM64' or '$(PROCESSOR_ARCHITEW6432)' == 'ARM64'">arm64</PreferredToolArchitecture>
|
<PreferredToolArchitecture Condition="'$(PROCESSOR_ARCHITECTURE)' == 'ARM64' or '$(PROCESSOR_ARCHITEW6432)' == 'ARM64'">arm64</PreferredToolArchitecture>
|
||||||
<VcpkgEnabled>false</VcpkgEnabled>
|
<VcpkgEnabled>false</VcpkgEnabled>
|
||||||
<ReplaceWildcardsInProjectItems>true</ReplaceWildcardsInProjectItems>
|
<ReplaceWildcardsInProjectItems>true</ReplaceWildcardsInProjectItems>
|
||||||
<ExternalIncludePath>$(MSBuildThisFileFullPath)\..\deps\;$(MSBuildThisFileFullPath)\..\packages\;$(ExternalIncludePath)</ExternalIncludePath>
|
<ExternalIncludePath>$(MSBuildThisFileDirectory)deps;$(MSBuildThisFileDirectory)packages;$(ExternalIncludePath)</ExternalIncludePath>
|
||||||
<!-- Enable control flow guard for C++ projects that don't consume any C++ files -->
|
<!-- Enable control flow guard for C++ projects that don't consume any C++ files -->
|
||||||
<!-- This covers the case where a .dll exports a .lib, but doesn't have any ClCompile entries. -->
|
<!-- This covers the case where a .dll exports a .lib, but doesn't have any ClCompile entries. -->
|
||||||
<LinkControlFlowGuard>Guard</LinkControlFlowGuard>
|
<LinkControlFlowGuard>Guard</LinkControlFlowGuard>
|
||||||
|
|||||||
@@ -147,6 +147,18 @@ _If you want to find diagnostic data events in the source code, these two links
|
|||||||
<td>Microsoft.PowerToys.AdvancedPasteSemanticKernelFormatEvent</td>
|
<td>Microsoft.PowerToys.AdvancedPasteSemanticKernelFormatEvent</td>
|
||||||
<td>Triggered when Advanced Paste leverages the Semantic Kernel.</td>
|
<td>Triggered when Advanced Paste leverages the Semantic Kernel.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.AdvancedPasteSemanticKernelErrorEvent</td>
|
||||||
|
<td>Occurs when the Semantic Kernel workflow encounters an error.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.AdvancedPasteEndpointUsageEvent</td>
|
||||||
|
<td>Logs the AI provider, model, and processing duration for each endpoint call.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.AdvancedPasteCustomActionErrorEvent</td>
|
||||||
|
<td>Records provider, model, and status details when a custom action fails.</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
### Always on Top
|
### Always on Top
|
||||||
@@ -231,6 +243,10 @@ _If you want to find diagnostic data events in the source code, these two links
|
|||||||
<th>Event Name</th>
|
<th>Event Name</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdNotFound_EnableCmdNotFound</td>
|
||||||
|
<td>Triggered when Command Not Found is enabled or disabled.</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Microsoft.PowerToys.CmdNotFoundInstallEvent</td>
|
<td>Microsoft.PowerToys.CmdNotFoundInstallEvent</td>
|
||||||
<td>Triggered when a Command Not Found is installed.</td>
|
<td>Triggered when a Command Not Found is installed.</td>
|
||||||
@@ -245,6 +261,62 @@ _If you want to find diagnostic data events in the source code, these two links
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
### Command Palette
|
||||||
|
<table style="width:100%">
|
||||||
|
<tr>
|
||||||
|
<th>Event Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPal_BeginInvoke</td>
|
||||||
|
<td>Triggered when the Command Palette is launched by the user.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPal_ColdLaunch</td>
|
||||||
|
<td>Occurs when Command Palette starts for the first time (cold start).</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPal_OpenPage</td>
|
||||||
|
<td>Triggered when a page is opened within the Command Palette, tracking navigation depth.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPal_OpenUri</td>
|
||||||
|
<td>Occurs when a URI is opened through the Command Palette, including whether it's a web URL.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPal_ReactivateInstance</td>
|
||||||
|
<td>Triggered when an existing Command Palette instance is reactivated.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPal_RunCommand</td>
|
||||||
|
<td>Logs when a command is executed through the Command Palette, including admin elevation status.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPal_RunQuery</td>
|
||||||
|
<td>Triggered when a search query is performed, including result count and duration.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPalDismissedOnEsc</td>
|
||||||
|
<td>Occurs when the Command Palette is dismissed by pressing the Escape key.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPalDismissedOnLostFocus</td>
|
||||||
|
<td>Triggered when the Command Palette is dismissed due to losing focus.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPalHotkeySummoned</td>
|
||||||
|
<td>Logs when the Command Palette is summoned via hotkey, distinguishing between global and context-specific hotkeys.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPalInvokeResult</td>
|
||||||
|
<td>Records the result type of a Command Palette invocation.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.CmdPalProcessStarted</td>
|
||||||
|
<td>Triggered when the Command Palette process is started.</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
### Crop And Lock
|
### Crop And Lock
|
||||||
<table style="width:100%">
|
<table style="width:100%">
|
||||||
<tr>
|
<tr>
|
||||||
@@ -723,6 +795,10 @@ _If you want to find diagnostic data events in the source code, these two links
|
|||||||
<th>Event Name</th>
|
<th>Event Name</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.NewPlus_ChangedTemplateLocation</td>
|
||||||
|
<td>Triggered when the template folder location is changed.</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Microsoft.PowerToys.NewPlus_EventCopyTemplate</td>
|
<td>Microsoft.PowerToys.NewPlus_EventCopyTemplate</td>
|
||||||
<td>Triggered when an item from New+ is created (copied to the current directory).</td>
|
<td>Triggered when an item from New+ is created (copied to the current directory).</td>
|
||||||
@@ -731,6 +807,10 @@ _If you want to find diagnostic data events in the source code, these two links
|
|||||||
<td>Microsoft.PowerToys.NewPlus_EventCopyTemplateResult</td>
|
<td>Microsoft.PowerToys.NewPlus_EventCopyTemplateResult</td>
|
||||||
<td>Logs the success of item creation (copying).</td>
|
<td>Logs the success of item creation (copying).</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Microsoft.PowerToys.NewPlus_EventOpenTemplates</td>
|
||||||
|
<td>Triggered when the templates folder is opened.</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Microsoft.PowerToys.NewPlus_EventShowTemplateItems</td>
|
<td>Microsoft.PowerToys.NewPlus_EventShowTemplateItems</td>
|
||||||
<td>Triggered when the New+ context menu flyout is displayed.</td>
|
<td>Triggered when the New+ context menu flyout is displayed.</td>
|
||||||
@@ -916,12 +996,8 @@ _If you want to find diagnostic data events in the source code, these two links
|
|||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Microsoft.PowerToys.ShortcutGuide_EnableGuide</td>
|
<td>Microsoft.PowerToys.ShortcutGuide_GuideSession</td>
|
||||||
<td>Triggered when Shortcut Guide is enabled.</td>
|
<td>Logs a Shortcut Guide session including duration and how it was closed.</td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>Microsoft.PowerToys.ShortcutGuide_HideGuide</td>
|
|
||||||
<td>Occurs when Shortcut Guide is hidden from view.</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Microsoft.PowerToys.ShortcutGuide_Settings</td>
|
<td>Microsoft.PowerToys.ShortcutGuide_Settings</td>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
|
||||||
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
|
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
|
||||||
@@ -7,9 +7,9 @@
|
|||||||
<PackageVersion Include="AdaptiveCards.ObjectModel.WinUI3" Version="2.0.0-beta" />
|
<PackageVersion Include="AdaptiveCards.ObjectModel.WinUI3" Version="2.0.0-beta" />
|
||||||
<PackageVersion Include="AdaptiveCards.Rendering.WinUI3" Version="2.1.0-beta" />
|
<PackageVersion Include="AdaptiveCards.Rendering.WinUI3" Version="2.1.0-beta" />
|
||||||
<PackageVersion Include="AdaptiveCards.Templating" Version="2.0.5" />
|
<PackageVersion Include="AdaptiveCards.Templating" Version="2.0.5" />
|
||||||
|
<PackageVersion Include="CommunityToolkit.Labs.WinUI.Controls.OpacityMaskView" Version="0.1.251101-build.2372" />
|
||||||
<PackageVersion Include="Microsoft.Bot.AdaptiveExpressions.Core" Version="4.23.0" />
|
<PackageVersion Include="Microsoft.Bot.AdaptiveExpressions.Core" Version="4.23.0" />
|
||||||
<PackageVersion Include="Appium.WebDriver" Version="4.4.5" />
|
<PackageVersion Include="Appium.WebDriver" Version="4.4.5" />
|
||||||
<PackageVersion Include="Azure.AI.OpenAI" Version="1.0.0-beta.17" />
|
|
||||||
<PackageVersion Include="CoenM.ImageSharp.ImageHash" Version="1.3.6" />
|
<PackageVersion Include="CoenM.ImageSharp.ImageHash" Version="1.3.6" />
|
||||||
<PackageVersion Include="CommunityToolkit.Common" Version="8.4.0" />
|
<PackageVersion Include="CommunityToolkit.Common" Version="8.4.0" />
|
||||||
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
||||||
@@ -35,23 +35,33 @@
|
|||||||
<!-- Including MessagePack to force version, since it's used by StreamJsonRpc but contains vulnerabilities. After StreamJsonRpc updates the version of MessagePack, we can upgrade StreamJsonRpc instead. -->
|
<!-- Including MessagePack to force version, since it's used by StreamJsonRpc but contains vulnerabilities. After StreamJsonRpc updates the version of MessagePack, we can upgrade StreamJsonRpc instead. -->
|
||||||
<PackageVersion Include="MessagePack" Version="3.1.3" />
|
<PackageVersion Include="MessagePack" Version="3.1.3" />
|
||||||
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" />
|
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" />
|
||||||
<PackageVersion Include="Microsoft.Data.Sqlite" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Data.Sqlite" Version="9.0.10" />
|
||||||
<!-- Including Microsoft.Bcl.AsyncInterfaces to force version, since it's used by Microsoft.SemanticKernel. -->
|
<!-- Including Microsoft.Bcl.AsyncInterfaces to force version, since it's used by Microsoft.SemanticKernel. -->
|
||||||
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.10" />
|
||||||
<PackageVersion Include="Microsoft.Windows.CppWinRT" Version="2.0.240111.5" />
|
<PackageVersion Include="Microsoft.Windows.CppWinRT" Version="2.0.240111.5" />
|
||||||
<PackageVersion Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="3.1.16" />
|
<PackageVersion Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="3.1.16" />
|
||||||
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Extensions.AI" Version="9.9.1" />
|
||||||
<PackageVersion Include="Microsoft.Extensions.Logging" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Extensions.AI.OpenAI" Version="9.9.1-preview.1.25474.6" />
|
||||||
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Extensions.Caching.Abstractions" Version="9.0.10" />
|
||||||
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="9.0.10" />
|
||||||
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.10" />
|
||||||
<PackageVersion Include="Microsoft.SemanticKernel" Version="1.15.0" />
|
<PackageVersion Include="Microsoft.Extensions.Logging" Version="9.0.10" />
|
||||||
|
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.10" />
|
||||||
|
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="9.0.10" />
|
||||||
|
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="9.0.10" />
|
||||||
|
<PackageVersion Include="Microsoft.AI.Foundry.Local" Version="0.3.0" />
|
||||||
|
<PackageVersion Include="Microsoft.SemanticKernel" Version="1.66.0" />
|
||||||
|
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.OpenAI" Version="1.66.0" />
|
||||||
|
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.AzureAIInference" Version="1.66.0-beta" />
|
||||||
|
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Google" Version="1.66.0-alpha" />
|
||||||
|
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.MistralAI" Version="1.66.0-alpha" />
|
||||||
|
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.Ollama" Version="1.66.0-alpha" />
|
||||||
<PackageVersion Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.2" />
|
<PackageVersion Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.2" />
|
||||||
<PackageVersion Include="Microsoft.Web.WebView2" Version="1.0.3179.45" />
|
<PackageVersion Include="Microsoft.Web.WebView2" Version="1.0.3179.45" />
|
||||||
<!-- Package Microsoft.Win32.SystemEvents added as a hack for being able to exclude the runtime assets so they don't conflict with 8.0.1. This is a dependency of System.Drawing.Common but the 8.0.1 version wasn't published to nuget. -->
|
<!-- Package Microsoft.Win32.SystemEvents added as a hack for being able to exclude the runtime assets so they don't conflict with 8.0.1. This is a dependency of System.Drawing.Common but the 8.0.1 version wasn't published to nuget. -->
|
||||||
<PackageVersion Include="Microsoft.Win32.SystemEvents" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Win32.SystemEvents" Version="9.0.10" />
|
||||||
<PackageVersion Include="Microsoft.WindowsPackageManager.ComInterop" Version="1.10.340" />
|
<PackageVersion Include="Microsoft.WindowsPackageManager.ComInterop" Version="1.10.340" />
|
||||||
<PackageVersion Include="Microsoft.Windows.Compatibility" Version="9.0.8" />
|
<PackageVersion Include="Microsoft.Windows.Compatibility" Version="9.0.10" />
|
||||||
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.183" />
|
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.183" />
|
||||||
<!-- CsWinRT version needs to be set to have a WinRT.Runtime.dll at the same version contained inside the NET SDK we're currently building on CI. -->
|
<!-- CsWinRT version needs to be set to have a WinRT.Runtime.dll at the same version contained inside the NET SDK we're currently building on CI. -->
|
||||||
<!--
|
<!--
|
||||||
@@ -59,7 +69,7 @@
|
|||||||
This is present due to a bug in CsWinRT where WPF projects cause the analyzer to fail.
|
This is present due to a bug in CsWinRT where WPF projects cause the analyzer to fail.
|
||||||
-->
|
-->
|
||||||
<PackageVersion Include="Microsoft.Windows.CsWinRT" Version="2.2.0" />
|
<PackageVersion Include="Microsoft.Windows.CsWinRT" Version="2.2.0" />
|
||||||
<PackageVersion Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.4948" />
|
<PackageVersion Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.6901" />
|
||||||
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="1.8.250907003" />
|
<PackageVersion Include="Microsoft.WindowsAppSDK" Version="1.8.250907003" />
|
||||||
<PackageVersion Include="Microsoft.WindowsAppSDK.AI" Version="1.8.37" />
|
<PackageVersion Include="Microsoft.WindowsAppSDK.AI" Version="1.8.37" />
|
||||||
<PackageVersion Include="Microsoft.WindowsAppSDK.Runtime" Version="1.8.250907003" />
|
<PackageVersion Include="Microsoft.WindowsAppSDK.Runtime" Version="1.8.250907003" />
|
||||||
@@ -74,7 +84,7 @@
|
|||||||
<PackageVersion Include="NLog" Version="5.2.8" />
|
<PackageVersion Include="NLog" Version="5.2.8" />
|
||||||
<PackageVersion Include="NLog.Extensions.Logging" Version="5.3.8" />
|
<PackageVersion Include="NLog.Extensions.Logging" Version="5.3.8" />
|
||||||
<PackageVersion Include="NLog.Schema" Version="5.2.8" />
|
<PackageVersion Include="NLog.Schema" Version="5.2.8" />
|
||||||
<PackageVersion Include="OpenAI" Version="2.0.0" />
|
<PackageVersion Include="OpenAI" Version="2.5.0" />
|
||||||
<PackageVersion Include="ReverseMarkdown" Version="4.1.0" />
|
<PackageVersion Include="ReverseMarkdown" Version="4.1.0" />
|
||||||
<PackageVersion Include="RtfPipe" Version="2.0.7677.4303" />
|
<PackageVersion Include="RtfPipe" Version="2.0.7677.4303" />
|
||||||
<PackageVersion Include="ScipBe.Common.Office.OneNote" Version="3.0.1" />
|
<PackageVersion Include="ScipBe.Common.Office.OneNote" Version="3.0.1" />
|
||||||
@@ -84,28 +94,29 @@
|
|||||||
<PackageVersion Include="StreamJsonRpc" Version="2.21.69" />
|
<PackageVersion Include="StreamJsonRpc" Version="2.21.69" />
|
||||||
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
|
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
|
||||||
<!-- Package System.CodeDom added as a hack for being able to exclude the runtime assets so they don't conflict with 8.0.1. This is a dependency of System.Management but the 8.0.1 version wasn't published to nuget. -->
|
<!-- Package System.CodeDom added as a hack for being able to exclude the runtime assets so they don't conflict with 8.0.1. This is a dependency of System.Management but the 8.0.1 version wasn't published to nuget. -->
|
||||||
<PackageVersion Include="System.CodeDom" Version="9.0.8" />
|
<PackageVersion Include="System.CodeDom" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
|
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
|
||||||
<PackageVersion Include="System.ComponentModel.Composition" Version="9.0.8" />
|
<PackageVersion Include="System.ComponentModel.Composition" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="9.0.8" />
|
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.Data.OleDb" Version="9.0.8" />
|
<PackageVersion Include="System.Data.OleDb" Version="9.0.10" />
|
||||||
<!-- Package System.Data.SqlClient added to force it as a dependency of Microsoft.Windows.Compatibility to the latest version available at this time. -->
|
<!-- Package System.Data.SqlClient added to force it as a dependency of Microsoft.Windows.Compatibility to the latest version available at this time. -->
|
||||||
<PackageVersion Include="System.Data.SqlClient" Version="4.9.0" />
|
<PackageVersion Include="System.Data.SqlClient" Version="4.9.0" />
|
||||||
<!-- Package System.Diagnostics.EventLog added as a hack for being able to exclude the runtime assets so they don't conflict with 8.0.1. This is a dependency of System.Data.OleDb but the 8.0.1 version wasn't published to nuget. -->
|
<!-- Package System.Diagnostics.EventLog added as a hack for being able to exclude the runtime assets so they don't conflict with 8.0.1. This is a dependency of System.Data.OleDb but the 8.0.1 version wasn't published to nuget. -->
|
||||||
<PackageVersion Include="System.Diagnostics.EventLog" Version="9.0.8" />
|
<PackageVersion Include="System.Diagnostics.EventLog" Version="9.0.10" />
|
||||||
<!-- Package System.Diagnostics.PerformanceCounter added as a hack for being able to exclude the runtime assets so they don't conflict with 8.0.11. -->
|
<!-- Package System.Diagnostics.PerformanceCounter added as a hack for being able to exclude the runtime assets so they don't conflict with 8.0.11. -->
|
||||||
<PackageVersion Include="System.Diagnostics.PerformanceCounter" Version="9.0.8" />
|
<PackageVersion Include="System.Diagnostics.PerformanceCounter" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.Drawing.Common" Version="9.0.8" />
|
<PackageVersion Include="System.ClientModel" Version="1.7.0" />
|
||||||
|
<PackageVersion Include="System.Drawing.Common" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.IO.Abstractions" Version="22.0.13" />
|
<PackageVersion Include="System.IO.Abstractions" Version="22.0.13" />
|
||||||
<PackageVersion Include="System.IO.Abstractions.TestingHelpers" Version="22.0.13" />
|
<PackageVersion Include="System.IO.Abstractions.TestingHelpers" Version="22.0.13" />
|
||||||
<PackageVersion Include="System.Management" Version="9.0.8" />
|
<PackageVersion Include="System.Management" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
|
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
|
||||||
<PackageVersion Include="System.Private.Uri" Version="4.3.2" />
|
<PackageVersion Include="System.Private.Uri" Version="4.3.2" />
|
||||||
<PackageVersion Include="System.Reactive" Version="6.0.1" />
|
<PackageVersion Include="System.Reactive" Version="6.0.1" />
|
||||||
<PackageVersion Include="System.Runtime.Caching" Version="9.0.8" />
|
<PackageVersion Include="System.Runtime.Caching" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.ServiceProcess.ServiceController" Version="9.0.8" />
|
<PackageVersion Include="System.ServiceProcess.ServiceController" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.Text.Encoding.CodePages" Version="9.0.8" />
|
<PackageVersion Include="System.Text.Encoding.CodePages" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.Text.Json" Version="9.0.8" />
|
<PackageVersion Include="System.Text.Json" Version="9.0.10" />
|
||||||
<PackageVersion Include="System.Text.RegularExpressions" Version="4.3.1" />
|
<PackageVersion Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||||
<PackageVersion Include="ToolGood.Words.Pinyin" Version="3.1.0.3" />
|
<PackageVersion Include="ToolGood.Words.Pinyin" Version="3.1.0.3" />
|
||||||
<PackageVersion Include="UnicodeInformation" Version="2.6.0" />
|
<PackageVersion Include="UnicodeInformation" Version="2.6.0" />
|
||||||
|
|||||||
@@ -1526,10 +1526,10 @@ SOFTWARE.
|
|||||||
- AdaptiveCards.Rendering.WinUI3
|
- AdaptiveCards.Rendering.WinUI3
|
||||||
- AdaptiveCards.Templating
|
- AdaptiveCards.Templating
|
||||||
- Appium.WebDriver
|
- Appium.WebDriver
|
||||||
- Azure.AI.OpenAI
|
|
||||||
- CoenM.ImageSharp.ImageHash
|
- CoenM.ImageSharp.ImageHash
|
||||||
- CommunityToolkit.Common
|
- CommunityToolkit.Common
|
||||||
- CommunityToolkit.Labs.WinUI.Controls.MarkdownTextBlock
|
- CommunityToolkit.Labs.WinUI.Controls.MarkdownTextBlock
|
||||||
|
- CommunityToolkit.Labs.WinUI.Controls.OpacityMaskView
|
||||||
- CommunityToolkit.Mvvm
|
- CommunityToolkit.Mvvm
|
||||||
- CommunityToolkit.WinUI.Animations
|
- CommunityToolkit.WinUI.Animations
|
||||||
- CommunityToolkit.WinUI.Collections
|
- CommunityToolkit.WinUI.Collections
|
||||||
|
|||||||
3352
PowerToys.sln
1041
PowerToys.slnx
Normal file
286
README.md
@@ -7,19 +7,23 @@
|
|||||||
<h1 align="center">
|
<h1 align="center">
|
||||||
<span>Microsoft PowerToys</span>
|
<span>Microsoft PowerToys</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
<p align="center">
|
||||||
|
<span align="center">Microsoft PowerToys is a collection of utilities that help you customize Windows and streamline everyday tasks.</span>
|
||||||
|
</p>
|
||||||
<h3 align="center">
|
<h3 align="center">
|
||||||
<a href="#-installation">Installation</a>
|
<a href="#-installation">Installation</a>
|
||||||
<span> . </span>
|
<span> · </span>
|
||||||
<a href="https://aka.ms/powertoys-docs">Documentation</a>
|
<a href="https://aka.ms/powertoys-docs">Documentation</a>
|
||||||
<span> . </span>
|
<span> · </span>
|
||||||
<a href="https://aka.ms/powertoys-releaseblog">Blog</a>
|
<a href="https://aka.ms/powertoys-releaseblog">Blog</a>
|
||||||
<span> . </span>
|
<span> · </span>
|
||||||
<a href="#-whats-new">Release notes</a>
|
<a href="#-whats-new">Release notes</a>
|
||||||
</h3>
|
</h3>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
Microsoft PowerToys is a collection of utilities that help you customize Windows and streamline everyday tasks.
|
|
||||||
<br/><br/>
|
## 🔨 Utilities
|
||||||
|
|
||||||
|
PowerToys includes over 25 utilities to help you customize and optimize your Windows experience:
|
||||||
|
|
||||||
| | | |
|
| | | |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
@@ -37,41 +41,35 @@ Microsoft PowerToys is a collection of utilities that help you customize Windows
|
|||||||
|
|
||||||
## 📋 Installation
|
## 📋 Installation
|
||||||
|
|
||||||
For detailed installation instructions, visit the [installation docs](https://learn.microsoft.com/windows/powertoys/install).
|
For detailed installation instructions and system requirements, visit the [installation docs](https://learn.microsoft.com/windows/powertoys/install).
|
||||||
|
|
||||||
Before you begin, make sure your device meets the system requirements:
|
|
||||||
|
|
||||||
> [!NOTE]
|
|
||||||
> - Windows 11 or Windows 10 version 2004 (20H1 / build 19041) or newer
|
|
||||||
> - 64-bit processor: x64 or ARM64
|
|
||||||
> - Latest stable version of [Microsoft Edge WebView2 Runtime](https://go.microsoft.com/fwlink/p/?LinkId=2124703) is installed via the bootstrapper during setup
|
|
||||||
|
|
||||||
Choose one of the installation methods below:
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Download .exe from GitHub</summary>
|
|
||||||
|
|
||||||
|
But to get started quickly, choose one of the installation methods below:
|
||||||
|
<br/><br/>
|
||||||
|
<details open>
|
||||||
|
<summary><strong>Download .exe from GitHub</strong></summary>
|
||||||
|
<br/>
|
||||||
Go to the [PowerToys GitHub releases][github-release-link], click Assets to reveal the downloads, and choose the installer that matches your architecture and install scope. For most devices, that's the x64 per-user installer.
|
Go to the [PowerToys GitHub releases][github-release-link], click Assets to reveal the downloads, and choose the installer that matches your architecture and install scope. For most devices, that's the x64 per-user installer.
|
||||||
|
|
||||||
<!-- items that need to be updated release to release -->
|
<!-- items that need to be updated release to release -->
|
||||||
[github-next-release-work]: https://github.com/microsoft/PowerToys/issues?q=is%3Aissue+milestone%3A%22PowerToys+0.96%22
|
[github-next-release-work]: https://github.com/microsoft/PowerToys/issues?q=is%3Aissue+milestone%3A%22PowerToys+0.97%22
|
||||||
[github-current-release-work]: https://github.com/microsoft/PowerToys/issues?q=is%3Aissue+milestone%3A%22PowerToys+0.95%22
|
[github-current-release-work]: https://github.com/microsoft/PowerToys/issues?q=is%3Aissue+milestone%3A%22PowerToys+0.96%22
|
||||||
[ptUserX64]: https://github.com/microsoft/PowerToys/releases/download/v0.95.0/PowerToysUserSetup-0.95.0-x64.exe
|
[ptUserX64]: https://github.com/microsoft/PowerToys/releases/download/v0.96.1/PowerToysUserSetup-0.96.1-x64.exe
|
||||||
[ptUserArm64]: https://github.com/microsoft/PowerToys/releases/download/v0.95.0/PowerToysUserSetup-0.95.0-arm64.exe
|
[ptUserArm64]: https://github.com/microsoft/PowerToys/releases/download/v0.96.1/PowerToysUserSetup-0.96.1-arm64.exe
|
||||||
[ptMachineX64]: https://github.com/microsoft/PowerToys/releases/download/v0.95.0/PowerToysSetup-0.95.0-x64.exe
|
[ptMachineX64]: https://github.com/microsoft/PowerToys/releases/download/v0.96.1/PowerToysSetup-0.96.1-x64.exe
|
||||||
[ptMachineArm64]: https://github.com/microsoft/PowerToys/releases/download/v0.95.0/PowerToysSetup-0.95.0-arm64.exe
|
[ptMachineArm64]: https://github.com/microsoft/PowerToys/releases/download/v0.96.1/PowerToysSetup-0.96.1-arm64.exe
|
||||||
|
|
||||||
| Description | Filename |
|
| Description | Filename |
|
||||||
|----------------|----------|
|
|----------------|----------|
|
||||||
| Per user - x64 | [PowerToysUserSetup-0.95.0-x64.exe][ptUserX64] |
|
| Per user - x64 | [PowerToysUserSetup-0.96.1-x64.exe][ptUserX64] |
|
||||||
| Per user - ARM64 | [PowerToysUserSetup-0.95.0-arm64.exe][ptUserArm64] |
|
| Per user - ARM64 | [PowerToysUserSetup-0.96.1-arm64.exe][ptUserArm64] |
|
||||||
| Machine wide - x64 | [PowerToysSetup-0.95.0-x64.exe][ptMachineX64] |
|
| Machine wide - x64 | [PowerToysSetup-0.96.1-x64.exe][ptMachineX64] |
|
||||||
| Machine wide - ARM64 | [PowerToysSetup-0.95.0-arm64.exe][ptMachineArm64] |
|
| Machine wide - ARM64 | [PowerToysSetup-0.96.1-arm64.exe][ptMachineArm64] |
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Microsoft Store</summary>
|
<summary><strong>Microsoft Store</strong></summary>
|
||||||
|
<br/>
|
||||||
You can easily install PowerToys from the Microsoft Store:
|
You can easily install PowerToys from the Microsoft Store:
|
||||||
<p>
|
<p>
|
||||||
<a style="text-decoration:none" href="https://aka.ms/getPowertoys">
|
<a style="text-decoration:none" href="https://aka.ms/getPowertoys">
|
||||||
@@ -82,10 +80,9 @@ You can easily install PowerToys from the Microsoft Store:
|
|||||||
</p>
|
</p>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>WinGet</summary>
|
<summary><strong>WinGet</strong></summary>
|
||||||
|
<br/>
|
||||||
Download PowerToys from [WinGet][winget-link]. Updating PowerToys via winget will respect the current PowerToys installation scope. To install PowerToys, run the following command from the command line / PowerShell:
|
Download PowerToys from [WinGet][winget-link]. Updating PowerToys via winget will respect the current PowerToys installation scope. To install PowerToys, run the following command from the command line / PowerShell:
|
||||||
|
|
||||||
*User scope installer [default]*
|
*User scope installer [default]*
|
||||||
@@ -100,162 +97,137 @@ winget install --scope machine Microsoft.PowerToys -s winget
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Other methods</summary>
|
<summary><strong>Other methods</strong></summary>
|
||||||
|
<br/>
|
||||||
There are [community driven install methods](./doc/unofficialInstallMethods.md) such as Chocolatey and Scoop. If these are your preferred install solutions, you can find the install instructions there.
|
There are [community driven install methods](./doc/unofficialInstallMethods.md) such as Chocolatey and Scoop. If these are your preferred install solutions, you can find the install instructions there.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## ✨ What's new
|
## ✨ What's new
|
||||||
**Version 0.95 (October 2025)**
|
**Version 0.96 (November 2025)**
|
||||||
|
|
||||||
For an in-depth look at the latest changes, visit the [Windows Command Line blog](https://aka.ms/powertoys-releaseblog).
|
For an in-depth look at the latest changes, visit the [Windows Command Line blog](https://aka.ms/powertoys-releaseblog).
|
||||||
|
|
||||||
**✨ Highlights**
|
**✨ Highlights**
|
||||||
- **NEW:** The **Light Switch** utility in PowerToys allows you to automatically switch between light and dark themes in Windows based on the time of day.
|
- Advanced Paste now supports multiple online and on-device AI model providers: Azure OpenAI, OpenAI, Google Gemini, Mistral, Foundry Local and Ollama.
|
||||||
- Command Palette delivered major search performance gains (new fuzzy matcher and smarter fallbacks) improving relevance and speed.
|
- Command Palette received extensive improvements including file search filters, better clipboard history metadata, context-menu styling, and dozens of bug fixes and enhancements.
|
||||||
- Peek can now be activated using just the Spacebar!
|
- PowerRename can now extract and use photo metadata (EXIF, XMP) in renaming patterns like `%Camera`, `%Lens`, and `%ExposureTime`.
|
||||||
- Find My Mouse added transparent spotlight with independent backdrop opacity, boosting focus and accessibility.
|
|
||||||
- Settings now lets you delete shortcuts entirely and ignore conflicts.
|
### Advanced Paste
|
||||||
- Mouse Pointer Crosshairs gained orientation options (vertical / horizontal / both) for customizable accessibility. Thanks [@mikehall-ms](https://github.com/mikehall-ms)!
|
- Advanced Paste now lets you connect to multiple AI providers instead of being limited to a single OpenAI provider. See [Advanced Paste documentation](https://learn.microsoft.com/windows/powertoys/advanced-paste) for usage.
|
||||||
- PowerRename fixed enumeration counter skipping ensuring reliable batch renames. Thanks [@daverayment](https://github.com/daverayment)!
|
|
||||||
- ZoomIt restored legacy draw and snipping behaviors, and fixed recording issues, improving reliability. Thanks [@chakrik73](https://github.com/chakrik73)!
|
### Awake
|
||||||
|
- The Awake countdown timer now stays accurate over long periods. Thanks [@daverayment](https://github.com/daverayment)!
|
||||||
|
- Fixed Awake context menu positioning. The fix removed the conversion of the mouse cursor from screen to client-window coordinates, instead using the raw screen coordinates returned by GetCursorPos; the context menu now appears at the correct screen position. Thanks [@lzandman](https://github.com/lzandman)!
|
||||||
|
|
||||||
### Command Palette
|
### Command Palette
|
||||||
- Applied conditional margin for icon-only tags to tighten layout. Thanks [@samrueby](https://github.com/samrueby)
|
- The search field in context menus now matches the look of the Command Palette, with a smoke backdrop and improved padding.
|
||||||
- Improved the reliability of accessing Command Palette settings through PowerToys Settings and executing other x-cmdpal:// protocol commands. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Fallback items such as math calculations or the Run command now appear in results more quickly. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Enabled AOT by default for improved performance while simplifying publish configs.
|
- Ensured the command bar updates correctly after navigating to another page and commands are displayed correctly. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Replaced service state color dots with play/pause/stop icons for enhanced accessibility. Thanks [@samrueby](https://github.com/samrueby)
|
- The Command Palette settings page has been reorganized. Activation-key options are grouped under an expander and extension settings are framed for improved readability.
|
||||||
- Fixed filter dropdown sync and crash by binding SelectedValue and raising UI-thread notifications. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- When you modify a command, its alias, hotkey, and tags now update in the top-level list, keeping the displayed information in sync. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Ensured long links wrap correctly in details view.
|
- Press `Ctrl + ,` to open Command Palette settings from anywhere. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Removed animation and enforced minimum width on filter dropdown for clarity. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- You can use `Page Up` and `Page Down` to navigate the list while focus is in the search box. Thanks [@samrueby](https://github.com/samrueby)!
|
||||||
- Restored focus to More button after ESC closes context menu, improving keyboard flow. Thanks [@chatasweetie](https://github.com/chatasweetie)
|
- Fixed an issue where the search box could disappear when navigating pages. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Marked main and toast windows as tool windows to keep them out of Alt+Tab while preserving style. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Ensured search text is selected when *Go home when activated* and *Highlight search on activate* are both enabled. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Fixed AOT template and theming issues for filter separators. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Fixed an issue where Command Palette window occasionally appeared on the taskbar under certain Windows settings. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Introduced grid layouts (small, medium, gallery) for richer page presentation.
|
- Ensured that labels and icons of list items and menu items update when they change. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Materialized result lists to avoid rescoring overhead.
|
- Fixed visibility of list filters when navigating to a content page. Thanks [@DevLGuilherme](https://github.com/DevLGuilherme)!
|
||||||
- Disabled problematic selection TextToSuggest behind environment flag.
|
- Added search to the extension list and a link to extensions on the Microsoft Store. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Major search performance improvements (new fuzzy matcher, smarter fallbacks, fewer exceptions).
|
- Added options to open the Command Palette window at its last position or re-center it.
|
||||||
- Added context menu "Show Details" command when details pane is hidden.
|
- The Command Palette now remembers its window size after restarting.
|
||||||
- Reduced window flicker by avoiding unnecessary cloaking. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Added a global error handler that logs fatal errors and provides feedback when unexpected failures force Command Palette to close. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Restored EmptyContent rendering for blank states. Thanks [@DevLGuilherme](https://github.com/DevLGuilherme)
|
- Fixed forms and extension settings not showing on some machines due to a missing VC++ runtime.
|
||||||
- Saved new state even if prior app state file was corrupt (better resilience). Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Restored ranking of fallback commands for built-in extensions (Sleep, Shutdown, Windows settings, Web search, etc.). Thanks [@jiripolasek](https://github.com/jiripolasek).
|
||||||
- Migrated settings window to WinUI TitleBar control. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Improved and unified labels and texts across the application!
|
||||||
- Prevented crash on duplicate keybindings and simplified matching. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Maintainance: Resolved numerous build warnings in Command Palette projects; no user-visible impact. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Hotkeys now always respect the “Ignore shortcut in fullscreen” setting. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Maintainance: Fixed a logging issue so exception messages are properly recorded instead of placeholder text, improving troubleshooting. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Hid search box on content pages, improving focus and accessibility, and added Home title. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Blocked Ctrl+I from inserting stray tabs in search box.
|
|
||||||
- Logged HRESULT codes in error logs for deeper diagnostics. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Advanced font and emoji icon classification and alignment improvements. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Ensured that fallback command icons are visible on the extension settings page. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Fixed breadcrumb margin misalignment (visual polish). Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Truncated overly long command labels with ellipsis to prevent overflow.
|
|
||||||
- Added a setting to configure the page transition animation.
|
|
||||||
- Collection of small improvements and nits for Run Commands.
|
|
||||||
- Improved bookmarks performance and experience. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Added Ctrl+O shortcut in Clipboard History to open links directly.
|
|
||||||
- Resolved conflict with external software that blocked Command Palette from hiding.
|
|
||||||
- Updated context menu items to reflect name and icon changes, and ensured application icons are displayed correctly. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Added Alt+Home shortcut to return immediately to the Command Palette home page. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Fixed a crash when displaying code blocks in markdown on detail or content pages. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Fixed an issue where the search bar icon and title were not updated when rapidly switching pages. Thanks [@jiripolasek](https://github.com/jiripolasek)
|
|
||||||
- Improved the appearance of the search box in the context menu.
|
|
||||||
|
|
||||||
|
|
||||||
### Command Palette Extensions
|
### Command Palette Extensions
|
||||||
- Replaced localized WebSearch setting keys with stable literals and numeric history count. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
- Bookmarks: Added hints about bookmark placeholders to the Add/Edit Bookmark form. — Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Enabled advanced markdown tables and emphasis extensions. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
- Bookmarks: Improved migration of bookmarks from older versions and fixed an issue where aliases or keyboard shortcuts could be lost after restart. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Added setting to choose Clipboard History primary action (Paste vs Copy). Thanks [@jiripolasek](https://github.com/jiripolasek)
|
- Clipboard history: Items shown in Command Palette’s clipboard history now include helpful metadata. For example, image items show dimensions, text files show names and sizes, web links include page titles, and text entries display word counts. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Added actionable empty-state hints for File Search (search PC / open indexing settings). Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
- File search: Added filter buttons to show *all items*, *files only*, or *folders only*. Selecting a filter adds `kind:folders` or `kind:not folders` to narrow results.
|
||||||
- Ensured all WinGet extension assets copy reliably to output. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
- System commands: Replaced the `:red_circle:` placeholder with an actual red-circle emoji so the correct icon appears in the UI. Thanks [@samrueby](https://github.com/samrueby)!
|
||||||
- Improved Run command line parsing for paths with spaces; sped up related tests.
|
- WinGet: Search performance feels more responsive because typed input is now processed via a task queue rather than complex cancellation tokens!
|
||||||
- Updated WebSearch extension icon set for enhanced clarity and contrast. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
- Window Walker: UWP apps no longer show a "not responding" label when suspended. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Added Terminal profile sort order setting including MRU tracking. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
- Window Walker: Now displays the actual icon of each window rather than using the process icon, improving recognition of PWAs and Python GUIs. Thanks [@Lee-WonJun](https://github.com/Lee-WonJun)!
|
||||||
- Added Uninstall Application command (UWP direct, Win32 via Settings). Thanks [@mKpwnz](https://github.com/mKpwnz)!
|
- Windows Terminal profiles: Fixed a rare crash in the Windows Terminal extension when the `LOCALAPPDATA` environment variable was missing. The path is now retrieved via a reliable API. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Deferred WinGet details loading and added timing logs.
|
|
||||||
- Removed LINQ from All Apps extension for performance.
|
|
||||||
- Added standardized key chord system + shortcuts to File Search commands. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
|
||||||
- Added Terminal channel filter & remembered selection option. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
|
||||||
- Enabled loading local/data/app images in markdown with sizing hints. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
|
||||||
- Added external extension reload via x-cmdpal://reload (configurable). Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
|
||||||
- Instant WebSearch history updates with in-memory store & events. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
|
||||||
- Added keep-after-paste option and safe delete with confirmation for Clipboard History. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
|
||||||
|
|
||||||
### Environment Variables
|
|
||||||
- Replaced custom window chrome with WinUI TitleBar for cleaner, maintainable Environment Variables UI.
|
|
||||||
|
|
||||||
### File Locksmith
|
|
||||||
- Adopted WinUI TitleBar to simplify window chrome while preserving appearance.
|
|
||||||
|
|
||||||
### Find My Mouse
|
### Find My Mouse
|
||||||
- Added transparent spotlight support with separate backdrop opacity; migrated to Windows App SDK composition APIs.
|
- Activating Find My Mouse no longer makes the cursor change to the busy (hourglass) icon or steals focus from your active application.
|
||||||
|
|
||||||
### Hosts File Editor
|
### Hosts File Editor
|
||||||
- Migrated to native WinUI TitleBar for cleaner, maintainable window chrome.
|
- Added customizable backup settings allowing users to configure backup frequency, location, and auto-deletion policies. Thanks [@davidegiacometti](https://github.com/davidegiacometti)!
|
||||||
|
|
||||||
|
### Image Resizer
|
||||||
|
- Fixed settings consistency during batch resize operations by capturing settings once before processing. Thanks [@daverayment](https://github.com/daverayment)!
|
||||||
|
|
||||||
### Light Switch
|
### Light Switch
|
||||||
- Introduced as a brand-new PowerToy module.
|
- Introduced new UI to allow users to manually enter their latitude and longitude in Sunrise to Sunset mode.
|
||||||
- Automatically switches between light and dark themes.
|
- Refactored service with cleaner state management for stability.
|
||||||
- Supports time-based scheduling or location-based sunrise/sunset switching.
|
- Removed logs from every tick, only logging key events to largely reduce log size.
|
||||||
- Supports using a keyboard shortcut to force a change.
|
|
||||||
- Supports filtering changes for Apps and/or System Theme.
|
|
||||||
|
|
||||||
### Mouse Pointer Crosshairs
|
### Mouse Pointer Crosshairs
|
||||||
- Added Esc key to cancel active gliding cursor sequence. Thanks [@mikehall-ms](https://github.com/mikehall-ms)!
|
- Enabled switching between Mouse Pointer Crosshairs and Gliding Cursor modes. Thanks [@mikehall-ms](https://github.com/mikehall-ms)!
|
||||||
- Added orientation option (vertical / horizontal / both) for crosshairs customization. Thanks [@mikehall-ms](https://github.com/mikehall-ms)!
|
|
||||||
|
|
||||||
### Mouse Without Borders
|
### Mouse Without Borders
|
||||||
- Continued Common class refactor (part 5/7) by extracting clipboard and init/cleanup logic into focused classes. Thanks [@mikeclayton](https://github.com/mikeclayton)!
|
- Added horizontal scrolling support. Thanks [@MasonBergstrom](https://github.com/MasonBergstrom)!
|
||||||
|
|
||||||
- Fix connection failures caused by conflicting MachineId across machines. Thanks [@noraa-junker](https://github.com/noraa-junker) for troubleshooting!
|
|
||||||
|
|
||||||
### Peek
|
### Peek
|
||||||
- Added the option to activate Peek with just the Spacebar.
|
- Fixed media files remaining locked after preview window closes. Thanks [@daverayment](https://github.com/daverayment)!
|
||||||
|
- Added a command-line interface for file previewing. See the [Peek documentation](https://learn.microsoft.com/windows/powertoys/peek) for usage. Thanks [@prochan2](https://github.com/prochan2)!
|
||||||
|
|
||||||
### PowerRename
|
### PowerRename
|
||||||
- Fixed enumeration counter skipping when regex replacement equals original filename (counters now advance reliably). Thanks [@daverayment](https://github.com/daverayment)!
|
- PowerRename no longer crashes due to a missing resources file.
|
||||||
|
- Added photo metadata extraction support using EXIF and XMP for pattern-based renaming with camera info, GPS coordinates, and date taken. See [PowerRename Documentation](https://learn.microsoft.com/en-us/windows/powertoys/powerrename).
|
||||||
|
|
||||||
### Quick Accent
|
### PowerToys Run
|
||||||
- Expanded Welsh layout with acute, grave, and dieresis variants for vowels (consistent ordering). Thanks [@PesBandi](https://github.com/PesBandi)!
|
- Added retry logic with exponential backoff to handle DWM composition errors during theme changes. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
|
- Updated OneNote icons to reflect new Microsoft 365 design. Thanks [@trevorNgo](https://github.com/trevorNgo)!
|
||||||
|
|
||||||
### Registry Preview
|
### Quick Accent
|
||||||
- Migrated to native TitleBar and AppWindow APIs for cleaner window chrome.
|
- Added diameter symbol (⌀) for Shift+O in Special Characters mode, thanks to [@anselumjuju](https://github.com/anselumjuju)!
|
||||||
|
|
||||||
### Screen Ruler
|
### Zoomit
|
||||||
- Fixed ARM64 crash by aligning cursor position structure to 8-byte boundary.
|
- Smoothed out zoom-animation in ZoomIt by coalescing mouse-move and timer events, thanks to [@foxmsft](https://github.com/foxmsft)!
|
||||||
|
- Enabled GIF support for ZoomIt, thanks to [@MarioHewardt](https://github.com/MarioHewardt)!
|
||||||
|
- Fixed spelling mistakes, and refactored some literal strings to string constants, thanks to [@lzandman](https://github.com/lzandman)!
|
||||||
|
- Fixed inaccurate "actual size" screenshots in ZoomIt and resolves a GDI handle leak, improving capture fidelity and long-session stability. thanks to [@daverayment](https://github.com/daverayment)!
|
||||||
|
|
||||||
### Settings
|
### Settings
|
||||||
- Added ability to ignore specific hotkey conflicts to reduce noise.
|
- Fixed title bar overlapping issue at smaller window sizes.
|
||||||
- Stopped creating backup directory during dry-run status checks (cleaner first-run).
|
- Refined shortcut control visual design with improved consistency and spacing.
|
||||||
- Standardized casing and localization for ZoomIt and modules header.
|
- Added dashboard utilities sorting by name or status.
|
||||||
- Improved search results page accessibility and conditional module grouping.
|
- Made update notification InfoBar in flyout clickable for direct navigation to update page.
|
||||||
|
- Expanded installation instructions by default in README.
|
||||||
|
- Improved accessibility for shortcut conflict button with static resource-based automation properties.
|
||||||
|
- Added ScrollViewer to Command Palette page in PowerToys Settings. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
|
- Fixed module list glitches and Sort Status checkmark issue. Thanks [@daverayment](https://github.com/daverayment)!
|
||||||
|
|
||||||
### ZoomIt
|
### Development
|
||||||
- Updated resource file to reflect standalone v9.01 and current copyright year. Thanks [@foxmsft](https://github.com/foxmsft)!
|
- Fixed accessibility by associating controls with labels for screen readers.
|
||||||
- Restored legacy draw/snipping behaviors and fixed recording race conditions. Thanks [@chakrik73](https://github.com/chakrik73)!
|
- Added accessible name to Shortcut Conflicts button for screen readers.
|
||||||
- Added smooth image option for improved zoom quality using GDI+ for static zoom and Magnifier API for live zoom. Thanks [@markrussinovich](https://github.com/markrussinovich)!
|
- Excluded TitleBars from tab navigation across multiple utilities. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
|
- Migrated build infrastructure from Windows Server 2019 to Server 2022 with improved failure logging and predictable NuGet package paths.
|
||||||
### Documentation
|
- Configured build agents to use larger P: drive for release builds to address disk space constraints.
|
||||||
- New Microsoft Learn documentation for the Light Switch module.
|
- Enhanced DSC v3 support by organizing resource manifests in a dedicated subfolder with PATH configuration.
|
||||||
- New dev docs for the Light Switch module.
|
- Reduced installer bundle size by 6-7MB through centralized Hybrid CRT configuration across all C++ projects.
|
||||||
|
- Updated .NET packages to version 9.0.10 for security fixes. Thanks [@snickler](https://github.com/snickler)!
|
||||||
### Development (Area-Build & Area-Tests)
|
- Fixed spell check dictionary entries for consistency.
|
||||||
- Allowed debug launches to continue when modules fail to load, speeding developer iteration.
|
- Restored accidentally deleted NuGet configuration file for Command Palette extensions.
|
||||||
- Fixed spell checker dictionary entry (advapi) to eliminate false error.
|
- Fixed package identity build by updating AppxManifest entry points to use PowerShell Core.
|
||||||
- Added VS Code development guide and launch configs to streamline cross-editor workflows.
|
- Optimized CI pipeline by replacing file copy operations with hard links and moves, reducing build time and disk usage by 10-15GB.
|
||||||
- Upgraded Windows App SDK and related dependencies to 1.8 for newer platform features.
|
- Updated Copilot guidance and PR prompt workflow.
|
||||||
- Rewrote YAML comment to resolve new spell checker forbidden pattern. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
- Included high-volume bugs in issue template header. Thanks [@daverayment](https://github.com/daverayment)!
|
||||||
- Corrected solution structure by returning misplaced Common project, reducing build confusion.
|
- Fixed incorrect HRESULT logging for inner exceptions. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Modernized build scripts with shared helpers and VS environment autodetection for simpler CLI builds.
|
- Introduced shared sparse package identity for PowerToys Win32 components to enable access to Windows platform APIs.
|
||||||
- Standardized build scripts and platform detection to improve reliability and reuse.
|
- Consolidated installer builds to produce both machine and user installers simultaneously, reducing build time and complexity.
|
||||||
- Added missing Command Palette version bump to align module release cadence.
|
- Migrated exclusively to WiX v5 installer infrastructure, removing legacy WiX v3 support.
|
||||||
- Added EXECUTEDEFAULT term to dictionary to prevent regression build failures. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
- Temporarily removed PowerToys installer path from PATH environment variable to prevent application crashes.
|
||||||
- Introduced nightly pre-warm pipeline and configurable MSBuild cache mode to improve CI performance.
|
- Added complete OCR UI test coverage with automated tests for activation, settings, language selection, and text extraction.
|
||||||
- Resolved CI forbidden pattern spelling complaint to keep pipelines green.
|
- Fixed test input for drive path normalization in bookmark resolver unit tests.
|
||||||
- Added AI contributor instruction set to clarify code area expectations.
|
- Fixed Peek UI tests by restoring Ctrl+Space activation shortcut for test scenarios.
|
||||||
- Added accessibility IDs to settings and FancyZones toggles, stabilizing UI tests.
|
- Hided apps in PowerToys.SpareApps package from Start Menu. Thanks [@jiripolasek](https://github.com/jiripolasek)!
|
||||||
- Added automatic log collection on UI test failures to speed root cause analysis.
|
|
||||||
- Stabilized Mouse Utils tests by switching to AccessibilityId selectors.
|
|
||||||
- Added Screen Ruler UI test coverage to validate core measurement workflows.
|
|
||||||
|
|
||||||
## 🛣️ Roadmap
|
## 🛣️ Roadmap
|
||||||
We are planning some nice new features and improvements for the next releases – a revamped Keyboard Manager UI, custom endpoint and local model support for Advanced Paste, Command Palette improvements and a brand-new Shortcut Guide experience! Stay tuned for [v0.96][github-next-release-work]!
|
We are planning some nice new features and improvements for the next releases – a revamped Keyboard Manager UI, custom endpoint and local model support for Advanced Paste, Command Palette improvements and a brand-new Shortcut Guide experience! Stay tuned for [v0.96][github-next-release-work]!
|
||||||
|
|||||||
1
deps/cziplib
vendored
34
doc/devdocs/commands.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Issue/PR commands
|
||||||
|
|
||||||
|
The PowerToys repository uses some special keywords to help manage issues and pull requests. Here is a list of the most important commands you can use in issue and PR descriptions or comments.
|
||||||
|
|
||||||
|
| Command | Description |
|
||||||
|
|---------|-------------|
|
||||||
|
| `/azp run` | Triggers the Azure Pipelines CI build for the current PR. Useful if you want to re-run the build without creating a new commit. |
|
||||||
|
| `/bugreport` / `/reportbug` | Adds a comment with a manual for the Bug Report Tool, which helps users collect logs and system information for debugging purposes. It requests to upload this file and adds the `Needs-Author-Feedback` label. |
|
||||||
|
| `/feedbackhub` | Adds a comment with a link to the Feedback Hub app on Windows, where users can submit feedback about PowerToys. Closes the issue and adds the `Resolution-Please File on Feedback Hub` label. |
|
||||||
|
| `/dup #...` / `/duplicate #...` / `/dup https://...` / `/duplicate https://...` | Marks the current issue as a duplicate of another issue. It closes the current issue and applies the `Resolution-Duplicate` label. Replace `#...` with the issue number or a link to the issue. |
|
||||||
|
| `/needinfo` | Adds the `Needs-Author-Feedback` label to the issue or PR, indicating that more information is needed from the author. |
|
||||||
|
| `/helped` | Closes the issue and adds the `Resolution-Helped User` label. Furthermore a comment is added with a link to the PowerToys user documentation. |
|
||||||
|
| `/loc` | Adds a comment informing the user that the issue was forwarded to the localization team and will soon be fixed. It adds the `Loc-Sent To Team` label. |
|
||||||
|
|
||||||
|
## Defining new commands
|
||||||
|
|
||||||
|
Most of these commands are using the [Microsoft GitHub Policy Service](https://github.com/apps/microsoft-github-policy-service) bot. Its commands are defined in the [PowerToys policy configuration file](/.github/policies/resourceManagement.yml).
|
||||||
|
|
||||||
|
## Other automated tasks
|
||||||
|
|
||||||
|
### Automatic labeling
|
||||||
|
|
||||||
|
The bot can automatically apply the correct `product-...` label for any opened issue.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> This feature is currently only available for the Workspaces module as a test.
|
||||||
|
|
||||||
|
### The `Needs-Author-Feedback` label
|
||||||
|
|
||||||
|
If an issue has this label and had no activity for 5 days, the bot will post a comment reminding the author to provide the needed information. It also adds the `Status-No recent activity` label. If no further activity occurs for another 5 days, the bot will close the issue.
|
||||||
|
|
||||||
|
### Filtering users that want to contribute
|
||||||
|
|
||||||
|
If a user utters their intention to contribute (e.g., by using the phrase "I want to contribute" in an issue or PR), the bot will add a comment with a link to the ["Would you like to contribute to PowerToys?" thread](https://github.com/microsoft/PowerToys/issues/28769).
|
||||||
@@ -134,7 +134,7 @@ If you prefer, you can alternatively build prerequisite projects for the install
|
|||||||
|
|
||||||
#### Locally compiling the installer
|
#### Locally compiling the installer
|
||||||
|
|
||||||
1. Open `installer\PowerToysSetup.sln`
|
1. Open `installer\PowerToysSetup.slnx`
|
||||||
1. In Visual Studio, in the `Solutions Configuration` drop-down menu select `Release`
|
1. In Visual Studio, in the `Solutions Configuration` drop-down menu select `Release`
|
||||||
1. From the `Build` menu choose `Build Solution`.
|
1. From the `Build` menu choose `Build Solution`.
|
||||||
|
|
||||||
@@ -144,9 +144,9 @@ To build the installer from the command line, run `Developer Command Prompt for
|
|||||||
|
|
||||||
```
|
```
|
||||||
git clean -xfd -e *exe -- .\installer\
|
git clean -xfd -e *exe -- .\installer\
|
||||||
MSBuild -t:restore .\installer\PowerToysSetup.sln -p:RestorePackagesConfig=true /p:Platform="x64" /p:Configuration=Release
|
MSBuild -t:restore .\installer\PowerToysSetup.slnx -p:RestorePackagesConfig=true /p:Platform="x64" /p:Configuration=Release
|
||||||
MSBuild -t:Restore -m .\installer\PowerToysSetup.sln /t:PowerToysInstallerVNext /p:Configuration=Release /p:Platform="x64"
|
MSBuild -t:Restore -m .\installer\PowerToysSetup.slnx /t:PowerToysInstallerVNext /p:Configuration=Release /p:Platform="x64"
|
||||||
MSBuild -t:Restore -m .\installer\PowerToysSetup.sln /t:PowerToysBootstrapperVNext /p:Configuration=Release /p:Platform="x64"
|
MSBuild -t:Restore -m .\installer\PowerToysSetup.slnx /t:PowerToysBootstrapperVNext /p:Configuration=Release /p:Platform="x64"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Supported arguments for the .EXE Bootstrapper installer
|
### Supported arguments for the .EXE Bootstrapper installer
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ You can build the entire solution from the command line, which is sometimes fast
|
|||||||
2. Navigate to the repository root directory
|
2. Navigate to the repository root directory
|
||||||
3. Run the following command(don't forget to set the correct platform):
|
3. Run the following command(don't forget to set the correct platform):
|
||||||
```pwsh
|
```pwsh
|
||||||
msbuild -restore -p:RestorePackagesConfig=true -p:Platform=ARM64 -m PowerToys.sln /tl /p:NuGetInteractive="true"
|
msbuild -restore -p:RestorePackagesConfig=true -p:Platform=ARM64 -m PowerToys.slnx /tl /p:NuGetInteractive="true"
|
||||||
```
|
```
|
||||||
4. This process should complete in approximately 13-14 minutes for a full build
|
4. This process should complete in approximately 13-14 minutes for a full build
|
||||||
|
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ Or reach out to "tools\build\BUILD-GUIDELINES.md"
|
|||||||
### Sample plain msbuild command
|
### Sample plain msbuild command
|
||||||
```powershell
|
```powershell
|
||||||
# Restore:
|
# Restore:
|
||||||
msbuild powertoys.sln -t:restore -p:configuration=debug -p:platform=x64 -m
|
msbuild powertoys.slnx -t:restore -p:configuration=debug -p:platform=x64 -m
|
||||||
|
|
||||||
# Build powertoys sln
|
# Build powertoys slnx
|
||||||
msbuild powertoys.sln -p:configuration=debug -p:platform=x64 -m
|
msbuild powertoys.slnx -p:configuration=debug -p:platform=x64 -m
|
||||||
|
|
||||||
# dotnet project
|
# dotnet project
|
||||||
msbuild src\settings-ui\Settings.UI\PowerToys.Settings.csproj -p:Platform=x64 -p:Configuration=Debug -m
|
msbuild src\settings-ui\Settings.UI\PowerToys.Settings.csproj -p:Platform=x64 -p:Configuration=Debug -m
|
||||||
@@ -122,7 +122,7 @@ Similar for attach to managed code.
|
|||||||
|
|
||||||
| Task | Command / Action | Notes |
|
| Task | Command / Action | Notes |
|
||||||
|------|------------------|-------|
|
|------|------------------|-------|
|
||||||
| Clean | `git clean -xdf` (careful) or `msbuild /t:Clean PowerToys.sln` | Deep clean removes packages & build outputs |
|
| Clean | `git clean -xdf` (careful) or `msbuild /t:Clean PowerToys.slnx` | Deep clean removes packages & build outputs |
|
||||||
| Rebuild single project | `msbuild path\to\proj.vcxproj /t:Rebuild -p:Platform=x64 -p:Configuration=Debug` | Faster than whole solution |
|
| Rebuild single project | `msbuild path\to\proj.vcxproj /t:Rebuild -p:Platform=x64 -p:Configuration=Debug` | Faster than whole solution |
|
||||||
| Generate installer (rare in inner loop) | See `tools\build\build-installer.ps1` | Usually not needed for local debug |
|
| Generate installer (rare in inner loop) | See `tools\build\build-installer.ps1` | Usually not needed for local debug |
|
||||||
| Resource conversion errors | Re-run restore + build | Triggers custom PowerShell targets |
|
| Resource conversion errors | Re-run restore + build | Triggers custom PowerShell targets |
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
- Exit PowerToys if it's running.
|
- Exit PowerToys if it's running.
|
||||||
|
|
||||||
- Open `PowerToys.sln` in Visual Studio and build the solution.
|
- Open `PowerToys.slnx` in Visual Studio and build the solution.
|
||||||
|
|
||||||
- Run tests in the Test Explorer (`Test > Test Explorer` or `Ctrl+E, T`).
|
- Run tests in the Test Explorer (`Test > Test Explorer` or `Ctrl+E, T`).
|
||||||
|
|
||||||
|
|||||||
@@ -1,165 +0,0 @@
|
|||||||
# Localization
|
|
||||||
|
|
||||||
> **NOTE**: THIS DOCUMENT IS OUTDATED.
|
|
||||||
> Follow [issue 15243](https://github.com/microsoft/PowerToys/issues/15243) for updates.
|
|
||||||
|
|
||||||
## Table of Contents
|
|
||||||
1. [Localization on the pipeline (CDPX)](#localization-on-the-pipeline-cdpx)
|
|
||||||
1. [UWP Special case](#uwp-special-case)
|
|
||||||
2. [Enabling localization on a new project](#enabling-localization-on-a-new-project)
|
|
||||||
1. [C++](#c)
|
|
||||||
2. [C#](#c-1)
|
|
||||||
3. [UWP](#uwp)
|
|
||||||
3. [Lcl Files](#lcl-files)
|
|
||||||
4. [Possible Issues in localization PRs (LEGO)](#possible-issues-in-localization-prs-lego)
|
|
||||||
5. [Enabling localized MSI for a new project](#enabling-localized-msi-for-a-new-project)
|
|
||||||
|
|
||||||
## Localization on the pipeline (CDPX)
|
|
||||||
[The localization step](https://github.com/microsoft/PowerToys/blob/86d77103e9c69686c297490acb04775d43ef8b76/.pipelines/pipeline.user.windows.yml#L45-L52) is run on the pipeline before the solution is built. This step runs the [build-localization](https://github.com/microsoft/PowerToys/blob/main/.pipelines/build-localization.cmd) script, which generates resx files for all the projects with localization enabled using the `Localization.XLoc` package.
|
|
||||||
|
|
||||||
The [`Localization.XLoc`](https://github.com/microsoft/PowerToys/blob/86d77103e9c69686c297490acb04775d43ef8b76/.pipelines/build-localization.cmd#L24-L25) tool is run on the repo root, and it checks for all occurrences of `LocProject.json`. Each localized project has a `LocProject.json` file in the project root, which contains the location of the English resx file, list of languages for localization, and the output path where the localized resx files are to be copied to. In addition to this, some other parameters can be set, such as whether the language ID should be added as a folder in the file path or in the file name. When the CDPX pipeline is run, the localization team is notified of changes in the English resx files. For each project with localization enabled, a `loc` folder (see [this](https://github.com/microsoft/PowerToys/tree/main/src/modules/launcher/Microsoft.Launcher/loc) for example) is created in the same directory as the `LocProject.json` file. The folder contains language specific folders which in turn have a nested folder path equivalent to `OutputPath` in the `LocProject.json`. Each of these folders contain one `lcl` file. The `lcl` files contain the English resources along with their translation for that language. These are described in more detail in the [Lcl files section](#lcl-files). Once the `.resx` files are generated, they will be used during the `Build PowerToys` step for localized versions of the modules.
|
|
||||||
|
|
||||||
Since the localization script requires certain nuget packages, the [`restore-localization`](https://github.com/microsoft/PowerToys/blob/main/.pipelines/restore-localization.cmd) script is run before running `build-localization` to install all the required packages. This script must [run in the `restore` step](https://github.com/microsoft/PowerToys/blob/86d77103e9c69686c297490acb04775d43ef8b76/.pipelines/pipeline.user.windows.yml#L37-L39) of pipeline because [the host is network isolated](https://onebranch.visualstudio.com/Pipeline/_wiki/wikis/Pipeline.wiki/2066/Consuming-Packages-in-a-CDPx-Pipeline?anchor=overview) at the `build` step. The [Toolset package source](https://github.com/microsoft/PowerToys/blob/86d77103e9c69686c297490acb04775d43ef8b76/.pipelines/pipeline.user.windows.yml#L23) is used for this.
|
|
||||||
|
|
||||||
The process and variables that can be tweaked on the pipeline are described in more detail on [onebranch (account required) under Localization](https://onebranch.visualstudio.com/Pipeline/_wiki/wikis/Pipeline.wiki/290/Localization).
|
|
||||||
|
|
||||||
The localized resource dlls for C# projects are added to the MSI only for build on the pipeline. This is done by checking if the [`IsPipeline` variable is defined](https://github.com/microsoft/PowerToys/blob/f92bd6ffd38014c228544bb8d68d0937ce4c2b6d/installer/PowerToysSetup/Product.wxs#L804-L805), which gets defined before [building the installer on the pipeline](https://github.com/microsoft/PowerToys/blob/f92bd6ffd38014c228544bb8d68d0937ce4c2b6d/.pipelines/build-installer.cmd#L4). This is done because the localized resx files are only present on the pipeline, and not having this check would result in the installer project failing to build locally.
|
|
||||||
|
|
||||||
## Enabling localization on a new project
|
|
||||||
To enable localization on a new project, the first step is to create a file `LocProject.json` in the project root.
|
|
||||||
|
|
||||||
For example, for a project in the folder `src\path` where the resx file is present in `resources\Resources.resx`, the LocProject.json file will contain the following:
|
|
||||||
```
|
|
||||||
{
|
|
||||||
"Projects": [
|
|
||||||
{
|
|
||||||
"LanguageSet": "Azure_Languages",
|
|
||||||
"LocItems": [
|
|
||||||
{
|
|
||||||
"SourceFile": "src\\path\\resources\\Resources.resx",
|
|
||||||
"CopyOption": "LangIDOnName",
|
|
||||||
"OutputPath": "src\\path\\resources"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
|
||||||
The rest of the steps depend on the project type and are covered in the sections below. The steps to add the localized files to the MSI can be found in [Enabling localized MSI for a new project](#Enabling-localized-MSI-for-a-new-project).
|
|
||||||
|
|
||||||
### C++
|
|
||||||
C++ projects do not support `resx` files, and instead use `rc` files along with `resource.h` files. The CDPX pipeline however doesn't support localizing `rc` files and the other alternative they support is directly translating the resources from the binary which makes it harder to maintain resources. To avoid this, a custom script has been added which expects a resx file and converts the entries to an rc file with a string table and adds resource declarations to a resource.h file so that the resources can be compiled with the C++ project.
|
|
||||||
|
|
||||||
If you already have a .rc file, copy the string table to a separate txt file and run the [convert-stringtable-to-resx.ps1](https://github.com/microsoft/PowerToys/blob/main/tools/build/convert-stringtable-to-resx.ps1) script on it. This script is not very robust to input, and requires the data in a specific format, where `IDS_ResName L"ResourceValue"` and any number of spaces can be present in between. The script converts this file to the format expected by [`resgen`](https://learn.microsoft.com/dotnet/framework/tools/resgen-exe-resource-file-generator#Convert), which will convert it to resx. The resource names are changed from all uppercase to title case, and the `IDS_` prefix is removed. Escape characters might have to be manually replaced, for example .rc files would have escaped double quotes as `""`, so this should be replaced with just `"` before converting to the resx files.
|
|
||||||
|
|
||||||
After generating the resx file, rename the existing rc and h files to ProjName.base.rc and resource.base.h. In the rc file remove the string table which is to be localized and in the .h file remove all `#define`s corresponding to localized resources. In the vcxproj of the C++ project, add the following build event:
|
|
||||||
```
|
|
||||||
<Target Name="GenerateResourceFiles" BeforeTargets="PrepareForBuild">
|
|
||||||
<Exec Command="powershell -NonInteractive -executionpolicy Unrestricted $(SolutionDir)tools\build\convert-resx-to-rc.ps1 $(MSBuildThisFileDirectory) resource.base.h resource.h ProjName.base.rc ProjName.rc" />
|
|
||||||
</Target>
|
|
||||||
```
|
|
||||||
|
|
||||||
This event runs a script which generates a resource.h and ProjName.rc in the `Generated Files` folder using the strings in all the resx files along with the existing information in resource.base.h and ProjName.base.rc. The script is [convert-resx-to-rc.ps1](https://github.com/microsoft/PowerToys/blob/main/tools/build/convert-resx-to-rc.ps1). The script uses [`resgen`](https://learn.microsoft.com/dotnet/framework/tools/resgen-exe-resource-file-generator#Convert) to convert the resx file to a string table expected in the .rc file format. When the resources are added to the rc file the `IDS_` prefix is added and resource names are in upper case (as it was originally). Any occurrences of `"` in the string resource is escaped as `""` to prevent build errors. The string tables are added to the rc file in the following format:
|
|
||||||
```
|
|
||||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
|
||||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|
||||||
|
|
||||||
STRINGTABLE
|
|
||||||
BEGIN
|
|
||||||
strings
|
|
||||||
END
|
|
||||||
|
|
||||||
#endif
|
|
||||||
```
|
|
||||||
Since there is no API to identify the `AFX_TARG_*`, `LANG_*` or `SUBLANG_*` values from each langId from the pipeline, these are hardcoded in the script (for each language) as done in [lines 50-77 of `convert-resx-to-rc.ps1`](https://github.com/microsoft/PowerToys/blob/f92bd6ffd38014c228544bb8d68d0937ce4c2b6d/tools/build/convert-resx-to-rc.ps1#L50-L77). **If any other languages are added in the future, this script will have to be updated.** In order to determine what are the language codes, you can open the rc file in Resource View, right click the string table and press `Insert Copy` and choose the corresponding language. This autogenerates the required code and can be used to figure out the language codes. The files also add the resource declarations to a resource.h file, starting from 101 by default(this can be changed by an optional argument). Since the output files will be generated in `Generated Files`, any includes in these two files will require an additional `..\` and wherever resource.h is used, it will have to be included as `Generated Files\resource.h`. While adding `resource.base.h` and `ProjName.base.rc` to the vcxproj, these should be modified to not participate in the build to avoid build errors:
|
|
||||||
```
|
|
||||||
<None Include="Resources.resx" />
|
|
||||||
```
|
|
||||||
|
|
||||||
Some rc/resource.h files might be used in multiple projects (for example, KBM). To ensure the projects build for these cases, the build event can be added to the entire directory so that the rc files are generated before any project is built. See [Directory.Build.targets](https://github.com/microsoft/PowerToys/blob/main/src/modules/keyboardmanager/Directory.Build.targets) for an example.
|
|
||||||
|
|
||||||
Check [this PR](https://github.com/microsoft/PowerToys/pull/6104) for an example for making these changes for a C++ project.
|
|
||||||
|
|
||||||
### C#
|
|
||||||
Since C# projects natively support `resx` files, the only step required here is to include all the resx files in the build. For .NET Core projects this is done automatically and the .csproj does not need to be modified. For other projects, the following line needs to be added:
|
|
||||||
```
|
|
||||||
<EmbeddedResource Include="Properties\Resources.*.resx" />
|
|
||||||
```
|
|
||||||
|
|
||||||
**Note:** Building with localized resources may cause a build warning `Referenced assembly 'mscorlib.dll' targets a different processor` which is a VS bug. More details can be found in [PowerToys issue #7269](https://github.com/microsoft/PowerToys/issues/7269).
|
|
||||||
|
|
||||||
**Note:** If a project needs to be migrated from XAML resources to resx, the easiest way to convert the resources would be to change to format to `=` separates resources by either manually (by Ctrl+H on a text editor), or by a script, and then running [`resgen`](https://learn.microsoft.com/dotnet/framework/tools/resgen-exe-resource-file-generator#Convert) on `Developer Command Prompt for VS` to convert it to resx format.
|
|
||||||
```
|
|
||||||
<system:String x:Key="wox_plugin_calculator_plugin_name">Calculator</system:String>
|
|
||||||
<system:String x:Key="wox_plugin_calculator_plugin_description">Allows to do mathematical calculations.(Try 5*3-2 in Wox)</system:String>
|
|
||||||
<system:String x:Key="wox_plugin_calculator_not_a_number">Not a number (NaN)</system:String>
|
|
||||||
```
|
|
||||||
to
|
|
||||||
```
|
|
||||||
wox_plugin_calculator_plugin_name=Calculator
|
|
||||||
wox_plugin_calculator_plugin_description=Allows to do mathematical calculations.(Try 5*3-2 in Wox)
|
|
||||||
wox_plugin_calculator_not_a_number=Not a number (NaN)
|
|
||||||
```
|
|
||||||
After adding the resx file to the project along with the resource generator, references to the strings will have to be replaced with `Properties.Resources.resName` rather than the custom APIs. Check [this PR](https://github.com/microsoft/PowerToys/pull/6165) for an example of the changes required.
|
|
||||||
|
|
||||||
### UWP
|
|
||||||
UWP projects expect `resw` files rather than `resx` (the format is almost the same). Unlike other C# projects, the files are expected in the format `fullLangId\Resources.resw`. To include these files in the build, replace the following line in the csproj:
|
|
||||||
```
|
|
||||||
<PRIResource Include="Strings\en-us\Resources.resw" />
|
|
||||||
```
|
|
||||||
to
|
|
||||||
```
|
|
||||||
<PRIResource Include="Strings\*\Resources.resw" />
|
|
||||||
```
|
|
||||||
|
|
||||||
## Lcl Files
|
|
||||||
Lcl files contain all the resources that are present in the English resx file, along with a translation if it has been added.
|
|
||||||
|
|
||||||
For example, an entry for a resource in the lcl file looks like this:
|
|
||||||
```
|
|
||||||
<Item ItemId=";EditKeyboard_WindowName" ItemType="0;.resx" PsrId="211" Leaf="true">
|
|
||||||
<Str Cat="Text">
|
|
||||||
<Val><![CDATA[Remap keys]]></Val>
|
|
||||||
<Tgt Cat="Text" Stat="Loc" Orig="New">
|
|
||||||
<Val><![CDATA[Remapper des touches]]></Val>
|
|
||||||
</Tgt>
|
|
||||||
</Str>
|
|
||||||
<Disp Icon="Str" />
|
|
||||||
</Item>
|
|
||||||
```
|
|
||||||
The `<Tgt>` element would not be present in the initial commits of the lcl files, as only the English version of the string would be present.
|
|
||||||
|
|
||||||
**Note:** The CDPX Localization system has a fail-safe check on the lcl files, where if the English string value which is present inside `<Val><![CDATA[*]]></Val>` does not match the value present in the English Resources.resx file then the translated value will not be copied to the localized resx file. This is present so that obsolete translations would not be loaded when the English resource has changed, and the English string will be used rather than the obsolete translation.
|
|
||||||
|
|
||||||
## Possible Issues in localization PRs (LEGO)
|
|
||||||
Since the LEGO PRs update some of the strings in LCL files at a time, there can be multiple PRs which modify the same files, leading to merge conflicts. In most cases this would show up on GitHub as a merge conflict, but sometimes a bad git merge may occur, and the file could end up with incorrect formatting, such as two `<Tgt>` elements for a single resource. These can be fixed by ensuring the elements follow the format described in [this section](#lcl-files). To catch such errors, the build farm should be run for every LEGO PR and if any error occurs in the localization step, we should check the corresponding resx/lcl files for conflicts.
|
|
||||||
|
|
||||||
## Enabling localized MSI for a new project
|
|
||||||
For C++ and UWP projects no additional files are generated with localization that need to be added to the MSI. For C++ projects all the resources are added to the dll/exe, while for UWP projects they are added to the `resources.pri` file (which is present even for an unlocalized project). To verify if the localized resources are added to the `resources.pri` file the following steps can be done:
|
|
||||||
- Open `Developer Command Prompt for VS`
|
|
||||||
- After navigating to the folder containing the pri file, run the following command:
|
|
||||||
|
|
||||||
makepri.exe dump /if .\resources.pri
|
|
||||||
- Check the contents of the `resources.pri.xml` file that is generated from the command. The last section of the file will contain the resources with the strings in all the languages:
|
|
||||||
```
|
|
||||||
<NamedResource name="GeneralSettings_RunningAsAdminText" uri="ms-resource://f4f787a5-f0ae-47a9-be89-5408b1dd2b47/Resources/GeneralSettings_RunningAsAdminText">
|
|
||||||
<Candidate qualifiers="Language-FR" type="String">
|
|
||||||
<Value>Running as administrator</Value>
|
|
||||||
</Candidate>
|
|
||||||
<Candidate qualifiers="Language-EN-US" isDefault="true" type="String">
|
|
||||||
<Value>Running as administrator</Value>
|
|
||||||
</Candidate>
|
|
||||||
</NamedResource>
|
|
||||||
```
|
|
||||||
|
|
||||||
For C# projects, satellite dlls are generated when the project is built. For a project named `ProjName`, files are created in the format `langId\ProjName.resources.dll` where `langId` is in the same format as the lcl files. The satellite dlls need to be included with the MSI, but they must be added only if the solution is built from the build farm, as the localized resx files will not be present on local machines (and that could cause local builds of the installer to fail).
|
|
||||||
This can be done by adding the directory name of the project to [Product.wxs near line 806](https://github.com/microsoft/PowerToys/blob/f92bd6ffd38014c228544bb8d68d0937ce4c2b6d/installer/PowerToysSetup/Product.wxs#L806) and a resource component for the project can be created in [Product.wxs near lines 845-847](https://github.com/microsoft/PowerToys/blob/f92bd6ffd38014c228544bb8d68d0937ce4c2b6d/installer/PowerToysSetup/Product.wxs#L845-L847) in this format:
|
|
||||||
```
|
|
||||||
<Component Id="ProjName_$(var.IdSafeLanguage)_Component" Directory="Resource$(var.IdSafeLanguage)ProjNameInstallFolder">
|
|
||||||
<File Id="ProjName_$(var.IdSafeLanguage)_File" Source="$(var.BinX64Dir)modules\ProjName\$(var.Language)\ProjName.resources.dll" />
|
|
||||||
</Component>
|
|
||||||
```
|
|
||||||
|
|
||||||
We should also ensure the new dlls are signed by the pipeline. Currently all dlls of the form [`*.resources.dll` are signed](https://github.com/microsoft/PowerToys/blob/f92bd6ffd38014c228544bb8d68d0937ce4c2b6d/.pipelines/pipeline.user.windows.yml#L68).
|
|
||||||
|
|
||||||
**Note:** The resource dlls should be added to the MSI project only after the initial commit with the lcl files has been done by the Localization team. Otherwise, the pipeline will fail as there wouldn't be any resx files to generate the dlls.
|
|
||||||
@@ -86,7 +86,7 @@ The module provides a user interface for configuring settings in the PowerToys S
|
|||||||
### Building and Testing
|
### Building and Testing
|
||||||
|
|
||||||
1. Clone the repository: `git clone https://github.com/microsoft/PowerToys.git`
|
1. Clone the repository: `git clone https://github.com/microsoft/PowerToys.git`
|
||||||
2. Open PowerToys.sln in Visual Studio
|
2. Open PowerToys.slnx in Visual Studio
|
||||||
3. Select the Release configuration and build the solution
|
3. Select the Release configuration and build the solution
|
||||||
4. Run PowerToys.exe from the output directory to test the module
|
4. Run PowerToys.exe from the output directory to test the module
|
||||||
|
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ FancyZones is divided into several projects:
|
|||||||
```
|
```
|
||||||
git clone https://github.com/microsoft/PowerToys.git
|
git clone https://github.com/microsoft/PowerToys.git
|
||||||
```
|
```
|
||||||
2. Open `PowerToys.sln` in Visual Studio
|
2. Open `PowerToys.slnx` in Visual Studio
|
||||||
3. Select the Release configuration and build the solution
|
3. Select the Release configuration and build the solution
|
||||||
4. If you encounter build errors, try deleting the x64 output folder and rebuild
|
4. If you encounter build errors, try deleting the x64 output folder and rebuild
|
||||||
|
|
||||||
@@ -244,7 +244,7 @@ UI tests are implemented using [Windows Application Driver](https://github.com/m
|
|||||||
|
|
||||||
- Exit PowerToys if it's running
|
- Exit PowerToys if it's running
|
||||||
- Run WinAppDriver.exe from the installation directory. Skip this step if installed in the default directory (`C:\Program Files (x86)\Windows Application Driver`); in this case, it'll be launched automatically during tests.
|
- Run WinAppDriver.exe from the installation directory. Skip this step if installed in the default directory (`C:\Program Files (x86)\Windows Application Driver`); in this case, it'll be launched automatically during tests.
|
||||||
- Open `PowerToys.sln` in Visual Studio and build the solution.
|
- Open `PowerToys.slnx` in Visual Studio and build the solution.
|
||||||
- Run tests in the Test Explorer (`Test > Test Explorer` or `Ctrl+E, T`).
|
- Run tests in the Test Explorer (`Test > Test Explorer` or `Ctrl+E, T`).
|
||||||
|
|
||||||
>Note: notifications or other application windows, that are shown above the window under test, can disrupt the testing process.
|
>Note: notifications or other application windows, that are shown above the window under test, can disrupt the testing process.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ Keyboard Manager consists of two main components:
|
|||||||
## Development Environment Setup
|
## Development Environment Setup
|
||||||
|
|
||||||
1. Clone the PowerToys repository
|
1. Clone the PowerToys repository
|
||||||
2. Open `PowerToys.sln` in Visual Studio
|
2. Open `PowerToys.slnx` in Visual Studio
|
||||||
3. Ensure all NuGet packages are restored
|
3. Ensure all NuGet packages are restored
|
||||||
4. Build the entire solution in Debug configuration
|
4. Build the entire solution in Debug configuration
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,11 @@ The **Light Switch** module lets users automatically transition between light an
|
|||||||
|
|
||||||
> **Note:** Using the shortcut overrides the current schedule until the next transition event.
|
> **Note:** Using the shortcut overrides the current schedule until the next transition event.
|
||||||
|
|
||||||
* **LightSwitchService**
|
* **LightSwitchService.cpp**
|
||||||
Reads settings and applies theming. Runs a check every minute to ensure the state is correct.
|
is the heart beat of the module. Controls ticking every minute and depending on user actions (manual override, settings changing, etc) triggers the state manager to perform the corresponding operation.
|
||||||
|
|
||||||
|
* **LightSwitchStateManager.cpp**
|
||||||
|
handles updating the state based on the signals sent by LightSwitchService.
|
||||||
|
|
||||||
* **SettingsXAML/LightSwitch**
|
* **SettingsXAML/LightSwitch**
|
||||||
Provides the settings UI for configuring schedules, syncing location, and customizing shortcuts.
|
Provides the settings UI for configuring schedules, syncing location, and customizing shortcuts.
|
||||||
@@ -89,7 +92,7 @@ The module’s settings are exposed in the PowerToys Settings UI. Options includ
|
|||||||
3. Build the solution:
|
3. Build the solution:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
msbuild -restore -p:RestorePackagesConfig=true -p:Platform=ARM64 -m PowerToys.sln
|
msbuild -restore -p:RestorePackagesConfig=true -p:Platform=ARM64 -m PowerToys.slnx
|
||||||
```
|
```
|
||||||
|
|
||||||
> Note: This may take some time.
|
> Note: This may take some time.
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ The Screen Ruler module consists of several components:
|
|||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
1. Open PowerToys.sln in Visual Studio
|
1. Open PowerToys.slnx in Visual Studio
|
||||||
2. In the Solutions Configuration drop-down menu, select Release or Debug
|
2. In the Solutions Configuration drop-down menu, select Release or Debug
|
||||||
3. From the Build menu, choose Build Solution
|
3. From the Build menu, choose Build Solution
|
||||||
4. The executable app for Screen Ruler is named PowerToys.MeasureToolUI.exe
|
4. The executable app for Screen Ruler is named PowerToys.MeasureToolUI.exe
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ Shortcut Guide is a PowerToy that displays an overlay of available keyboard shor
|
|||||||
## Build and Debug Instructions
|
## Build and Debug Instructions
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
1. Open PowerToys.sln in Visual Studio
|
1. Open PowerToys.slnx in Visual Studio
|
||||||
2. Select Release or Debug in the Solutions Configuration drop-down menu
|
2. Select Release or Debug in the Solutions Configuration drop-down menu
|
||||||
3. From the Build menu, choose Build Solution
|
3. From the Build menu, choose Build Solution
|
||||||
4. The executable is named PowerToys.ShortcutGuide.exe
|
4. The executable is named PowerToys.ShortcutGuide.exe
|
||||||
|
|||||||
@@ -38,6 +38,11 @@ Welcome to the PowerToys developer documentation. This documentation provides in
|
|||||||
- [Update Process](processes/update-process.md) - How PowerToys updates work
|
- [Update Process](processes/update-process.md) - How PowerToys updates work
|
||||||
- [GPO Implementation](processes/gpo.md) - Group Policy Objects implementation details
|
- [GPO Implementation](processes/gpo.md) - Group Policy Objects implementation details
|
||||||
|
|
||||||
|
## Other Resources
|
||||||
|
|
||||||
|
- [aka.ms links](akaLinks.md) - List of short links
|
||||||
|
- [Issue/PR commands](commands.md) - Special commands for managing issues and pull requests
|
||||||
|
|
||||||
## Fork, Clone, Branch and Create your PR
|
## Fork, Clone, Branch and Create your PR
|
||||||
|
|
||||||
Once you've discussed your proposed feature/fix/etc. with a team member, and an approach or a spec has been written and approved, it's time to start development:
|
Once you've discussed your proposed feature/fix/etc. with a team member, and an approach or a spec has been written and approved, it's time to start development:
|
||||||
@@ -80,7 +85,7 @@ Once you've discussed your proposed feature/fix/etc. with a team member, and an
|
|||||||
|
|
||||||
### Install Visual Studio dependencies
|
### Install Visual Studio dependencies
|
||||||
|
|
||||||
1. Open the `PowerToys.sln` file.
|
1. Open the `PowerToys.slnx` file.
|
||||||
1. If you see a dialog that says `install extra components` in the solution explorer pane, click `install`
|
1. If you see a dialog that says `install extra components` in the solution explorer pane, click `install`
|
||||||
|
|
||||||
### Get Submodules to compile
|
### Get Submodules to compile
|
||||||
@@ -93,7 +98,7 @@ We have submodules that need to be initialized before you can compile most parts
|
|||||||
|
|
||||||
### Compiling Source Code
|
### Compiling Source Code
|
||||||
|
|
||||||
- Open `PowerToys.sln` in Visual Studio.
|
- Open `PowerToys.slnx` in Visual Studio.
|
||||||
- In the `Solutions Configuration` drop-down menu select `Release` or `Debug`.
|
- In the `Solutions Configuration` drop-down menu select `Release` or `Debug`.
|
||||||
- From the `Build` menu choose `Build Solution`, or press <kbd>Control</kbd>+<kbd>Shift</kbd>+<kbd>b</kbd> on your keyboard.
|
- From the `Build` menu choose `Build Solution`, or press <kbd>Control</kbd>+<kbd>Shift</kbd>+<kbd>b</kbd> on your keyboard.
|
||||||
- The build process may take several minutes depending on your computer's performance. Once it completes, the PowerToys binaries will be in your repo under `x64\Release\`.
|
- The build process may take several minutes depending on your computer's performance. Once it completes, the PowerToys binaries will be in your repo under `x64\Release\`.
|
||||||
@@ -107,10 +112,10 @@ Our installer is two parts, an EXE and an MSI. The EXE (Bootstrapper) contains
|
|||||||
|
|
||||||
The installer can only be compiled in `Release` mode; steps 1 and 2 must be performed before the MSI can be compiled.
|
The installer can only be compiled in `Release` mode; steps 1 and 2 must be performed before the MSI can be compiled.
|
||||||
|
|
||||||
1. Compile `PowerToys.sln`. Instructions are listed above.
|
1. Compile `PowerToys.slnx`. Instructions are listed above.
|
||||||
1. Compile `BugReportTool.sln` tool. Path from root: `tools\BugReportTool\BugReportTool.sln` (details listed below)
|
1. Compile `BugReportTool.sln` tool. Path from root: `tools\BugReportTool\BugReportTool.sln` (details listed below)
|
||||||
1. Compile `StylesReportTool.sln` tool. Path from root: `tools\StylesReportTool\StylesReportTool.sln` (details listed below)
|
1. Compile `StylesReportTool.sln` tool. Path from root: `tools\StylesReportTool\StylesReportTool.sln` (details listed below)
|
||||||
1. Compile `PowerToysSetup.sln` Path from root: `installer\PowerToysSetup.sln` (details listed below)
|
1. Compile `PowerToysSetup.slnx` Path from root: `installer\PowerToysSetup.slnx` (details listed below)
|
||||||
|
|
||||||
See [Installer](core/installer.md) for more details on building and debugging the installer.
|
See [Installer](core/installer.md) for more details on building and debugging the installer.
|
||||||
|
|
||||||
|
|||||||
BIN
doc/images/icons/CursorWrap.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 21 KiB |
BIN
doc/images/icons/MouseJump.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 22 KiB |
@@ -51,6 +51,7 @@ Contact the developers of a plugin directly for assistance with a specific plugi
|
|||||||
| [RandomGen](https://github.com/ruslanlap/PowerToysRun-RandomGen) | [ruslanlap](https://github.com/ruslanlap) | 🎲 Generate random data instantly with a single keystroke. Perfect for developers, testers, designers, and anyone who needs quick access to random data. Features include secure passwords, PINs, names, business data, dates, numbers, GUIDs, color codes, and more. Especially useful for designers who need random color codes and placeholder content. |
|
| [RandomGen](https://github.com/ruslanlap/PowerToysRun-RandomGen) | [ruslanlap](https://github.com/ruslanlap) | 🎲 Generate random data instantly with a single keystroke. Perfect for developers, testers, designers, and anyone who needs quick access to random data. Features include secure passwords, PINs, names, business data, dates, numbers, GUIDs, color codes, and more. Especially useful for designers who need random color codes and placeholder content. |
|
||||||
| [Open With Cursor](https://github.com/VictorNoxx/PowerToys-Run-Cursor/) | [VictorNoxx](https://github.com/VictorNoxx) | Open Visual Studio, VS Code recents with Cursor AI |
|
| [Open With Cursor](https://github.com/VictorNoxx/PowerToys-Run-Cursor/) | [VictorNoxx](https://github.com/VictorNoxx) | Open Visual Studio, VS Code recents with Cursor AI |
|
||||||
| [CheatSheets](https://github.com/ruslanlap/PowerToysRun-CheatSheets) | [ruslanlap](https://github.com/ruslanlap) | 📚 Find cheat sheets and command examples instantly from tldr pages, cheat.sh, and devhints.io. Features include favorites system, categories, offline mode, and smart caching. |
|
| [CheatSheets](https://github.com/ruslanlap/PowerToysRun-CheatSheets) | [ruslanlap](https://github.com/ruslanlap) | 📚 Find cheat sheets and command examples instantly from tldr pages, cheat.sh, and devhints.io. Features include favorites system, categories, offline mode, and smart caching. |
|
||||||
|
| [QuickAI](https://github.com/ruslanlap/PowerToysRun-QuickAi) | [ruslanlap](https://github.com/ruslanlap) | AI-powered assistance with instant, smart responses from multiple providers (Groq, Together, Fireworks, OpenRouter, Cohere) |
|
||||||
|
|
||||||
## Extending software plugins
|
## Extending software plugins
|
||||||
|
|
||||||
|
|||||||
@@ -1,96 +0,0 @@
|
|||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 17
|
|
||||||
VisualStudioVersion = 17.1.32414.318
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "spdlog", "..\src\logging\logging.vcxproj", "{7E1E3F13-2BD6-3F75-A6A7-873A2B55C60F}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "logger", "..\src\common\logger\logger.vcxproj", "{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Version", "..\src\common\version\version.vcxproj", "{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EtwTrace", "..\src\common\Telemetry\EtwTrace\EtwTrace.vcxproj", "{8F021B46-362B-485C-BFBA-CCF83E820CBD}"
|
|
||||||
EndProject
|
|
||||||
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "PowerToysInstallerVNext", "PowerToysSetupVNext\PowerToysInstallerVNext.wixproj", "{B6E94700-DF38-41F6-A3FD-18B69674AB1E}"
|
|
||||||
EndProject
|
|
||||||
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "PowerToysBootstrapperVNext", "PowerToysSetupVNext\PowerToysBootstrapperVNext.wixproj", "{DA4E9744-80BE-424C-B0F5-AFD8757DB575}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PowerToysSetupCustomActionsVNext", "PowerToysSetupCustomActionsVNext\PowerToysSetupCustomActionsVNext.vcxproj", "{B3A354B0-1E54-4B55-A962-FB5AF9330C19}"
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SilentFilesInUseBAFunction", "PowerToysSetupVNext\SilentFilesInUseBA\SilentFilesInUseBAFunction.vcxproj", "{F8B9F842-F5C3-4A2D-8C85-7F8B9E2B4F1D}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|ARM64 = Debug|ARM64
|
|
||||||
Debug|x64 = Debug|x64
|
|
||||||
Release|ARM64 = Release|ARM64
|
|
||||||
Release|x64 = Release|x64
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{7E1E3F13-2BD6-3F75-A6A7-873A2B55C60F}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
||||||
{7E1E3F13-2BD6-3F75-A6A7-873A2B55C60F}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{7E1E3F13-2BD6-3F75-A6A7-873A2B55C60F}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{7E1E3F13-2BD6-3F75-A6A7-873A2B55C60F}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
||||||
{7E1E3F13-2BD6-3F75-A6A7-873A2B55C60F}.Release|ARM64.Build.0 = Release|ARM64
|
|
||||||
{7E1E3F13-2BD6-3F75-A6A7-873A2B55C60F}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{7E1E3F13-2BD6-3F75-A6A7-873A2B55C60F}.Release|x64.Build.0 = Release|x64
|
|
||||||
{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
||||||
{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
||||||
{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}.Release|ARM64.Build.0 = Release|ARM64
|
|
||||||
{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{D9B8FC84-322A-4F9F-BBB9-20915C47DDFD}.Release|x64.Build.0 = Release|x64
|
|
||||||
{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
||||||
{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
||||||
{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
||||||
{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}.Release|ARM64.Build.0 = Release|ARM64
|
|
||||||
{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{CC6E41AC-8174-4E8A-8D22-85DD7F4851DF}.Release|x64.Build.0 = Release|x64
|
|
||||||
{8F021B46-362B-485C-BFBA-CCF83E820CBD}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
||||||
{8F021B46-362B-485C-BFBA-CCF83E820CBD}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
||||||
{8F021B46-362B-485C-BFBA-CCF83E820CBD}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{8F021B46-362B-485C-BFBA-CCF83E820CBD}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{8F021B46-362B-485C-BFBA-CCF83E820CBD}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
||||||
{8F021B46-362B-485C-BFBA-CCF83E820CBD}.Release|ARM64.Build.0 = Release|ARM64
|
|
||||||
{8F021B46-362B-485C-BFBA-CCF83E820CBD}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{8F021B46-362B-485C-BFBA-CCF83E820CBD}.Release|x64.Build.0 = Release|x64
|
|
||||||
{B6E94700-DF38-41F6-A3FD-18B69674AB1E}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
||||||
{B6E94700-DF38-41F6-A3FD-18B69674AB1E}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
||||||
{B6E94700-DF38-41F6-A3FD-18B69674AB1E}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{B6E94700-DF38-41F6-A3FD-18B69674AB1E}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{B6E94700-DF38-41F6-A3FD-18B69674AB1E}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
||||||
{B6E94700-DF38-41F6-A3FD-18B69674AB1E}.Release|ARM64.Build.0 = Release|ARM64
|
|
||||||
{B6E94700-DF38-41F6-A3FD-18B69674AB1E}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{B6E94700-DF38-41F6-A3FD-18B69674AB1E}.Release|x64.Build.0 = Release|x64
|
|
||||||
{DA4E9744-80BE-424C-B0F5-AFD8757DB575}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
||||||
{DA4E9744-80BE-424C-B0F5-AFD8757DB575}.Debug|ARM64.Build.0 = Debug|ARM64
|
|
||||||
{DA4E9744-80BE-424C-B0F5-AFD8757DB575}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{DA4E9744-80BE-424C-B0F5-AFD8757DB575}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{DA4E9744-80BE-424C-B0F5-AFD8757DB575}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
||||||
{DA4E9744-80BE-424C-B0F5-AFD8757DB575}.Release|ARM64.Build.0 = Release|ARM64
|
|
||||||
{DA4E9744-80BE-424C-B0F5-AFD8757DB575}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{DA4E9744-80BE-424C-B0F5-AFD8757DB575}.Release|x64.Build.0 = Release|x64
|
|
||||||
{B3A354B0-1E54-4B55-A962-FB5AF9330C19}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
||||||
{B3A354B0-1E54-4B55-A962-FB5AF9330C19}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{B3A354B0-1E54-4B55-A962-FB5AF9330C19}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{B3A354B0-1E54-4B55-A962-FB5AF9330C19}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
||||||
{B3A354B0-1E54-4B55-A962-FB5AF9330C19}.Release|ARM64.Build.0 = Release|ARM64
|
|
||||||
{B3A354B0-1E54-4B55-A962-FB5AF9330C19}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{B3A354B0-1E54-4B55-A962-FB5AF9330C19}.Release|x64.Build.0 = Release|x64
|
|
||||||
{F8B9F842-F5C3-4A2D-8C85-7F8B9E2B4F1D}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
|
||||||
{F8B9F842-F5C3-4A2D-8C85-7F8B9E2B4F1D}.Debug|x64.ActiveCfg = Debug|x64
|
|
||||||
{F8B9F842-F5C3-4A2D-8C85-7F8B9E2B4F1D}.Debug|x64.Build.0 = Debug|x64
|
|
||||||
{F8B9F842-F5C3-4A2D-8C85-7F8B9E2B4F1D}.Release|ARM64.ActiveCfg = Release|ARM64
|
|
||||||
{F8B9F842-F5C3-4A2D-8C85-7F8B9E2B4F1D}.Release|ARM64.Build.0 = Release|ARM64
|
|
||||||
{F8B9F842-F5C3-4A2D-8C85-7F8B9E2B4F1D}.Release|x64.ActiveCfg = Release|x64
|
|
||||||
{F8B9F842-F5C3-4A2D-8C85-7F8B9E2B4F1D}.Release|x64.Build.0 = Release|x64
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {B7A3DA30-D443-40FF-AC51-988AD41E3962}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
22
installer/PowerToysSetup.slnx
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<Solution>
|
||||||
|
<Configurations>
|
||||||
|
<Platform Name="ARM64" />
|
||||||
|
<Platform Name="x64" />
|
||||||
|
</Configurations>
|
||||||
|
<Project Path="../src/common/logger/logger.vcxproj" Id="d9b8fc84-322a-4f9f-bbb9-20915c47ddfd">
|
||||||
|
<Build Solution="Debug|ARM64" Project="false" />
|
||||||
|
</Project>
|
||||||
|
<Project Path="../src/common/Telemetry/EtwTrace/EtwTrace.vcxproj" Id="8f021b46-362b-485c-bfba-ccf83e820cbd" />
|
||||||
|
<Project Path="../src/common/version/version.vcxproj" Id="cc6e41ac-8174-4e8a-8d22-85dd7f4851df" />
|
||||||
|
<Project Path="../src/logging/logging.vcxproj" Id="7e1e3f13-2bd6-3f75-a6a7-873a2b55c60f">
|
||||||
|
<Build Solution="Debug|ARM64" Project="false" />
|
||||||
|
</Project>
|
||||||
|
<Project Path="PowerToysSetupCustomActionsVNext/PowerToysSetupCustomActionsVNext.vcxproj" Id="b3a354b0-1e54-4b55-a962-fb5af9330c19">
|
||||||
|
<Build Solution="Debug|ARM64" Project="false" />
|
||||||
|
</Project>
|
||||||
|
<Project Path="PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj" Type="b7dd6f7e-def8-4e67-b5b7-07ef123db6f0" />
|
||||||
|
<Project Path="PowerToysSetupVNext/PowerToysInstallerVNext.wixproj" Type="b7dd6f7e-def8-4e67-b5b7-07ef123db6f0" />
|
||||||
|
<Project Path="PowerToysSetupVNext/SilentFilesInUseBA/SilentFilesInUseBAFunction.vcxproj" Id="f8b9f842-f5c3-4a2d-8c85-7f8b9e2b4f1d">
|
||||||
|
<Build Solution="Debug|ARM64" Project="false" />
|
||||||
|
</Project>
|
||||||
|
</Solution>
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
[CmdletBinding()]
|
|
||||||
Param(
|
|
||||||
[Parameter(Mandatory = $True)]
|
|
||||||
[string]$dscWxsFile,
|
|
||||||
[Parameter(Mandatory = $True)]
|
|
||||||
[string]$Platform,
|
|
||||||
[Parameter(Mandatory = $True)]
|
|
||||||
[string]$Configuration
|
|
||||||
)
|
|
||||||
|
|
||||||
$ErrorActionPreference = 'Stop'
|
|
||||||
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
||||||
$buildOutputDir = Join-Path $scriptDir "..\..\$Platform\$Configuration"
|
|
||||||
|
|
||||||
if (-not (Test-Path $buildOutputDir)) {
|
|
||||||
Write-Error "Build output directory not found: '$buildOutputDir'"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
$dscFiles = Get-ChildItem -Path $buildOutputDir -Filter "microsoft.powertoys.*.settings.dsc.resource.json" -File
|
|
||||||
|
|
||||||
if (-not $dscFiles) {
|
|
||||||
Write-Warning "No DSC manifest files found in '$buildOutputDir'"
|
|
||||||
$wxsContent = @"
|
|
||||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
||||||
<?include `$(sys.CURRENTDIR)\Common.wxi?>
|
|
||||||
<Fragment>
|
|
||||||
<ComponentGroup Id="DscResourcesComponentGroup">
|
|
||||||
</ComponentGroup>
|
|
||||||
</Fragment>
|
|
||||||
</Wix>
|
|
||||||
"@
|
|
||||||
Set-Content -Path $dscWxsFile -Value $wxsContent
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "Found $($dscFiles.Count) DSC manifest file(s)"
|
|
||||||
|
|
||||||
$wxsContent = @"
|
|
||||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
|
||||||
<?include `$(sys.CURRENTDIR)\Common.wxi?>
|
|
||||||
<Fragment>
|
|
||||||
<DirectoryRef Id="DSCModulesReferenceFolder">
|
|
||||||
"@
|
|
||||||
|
|
||||||
$componentRefs = @()
|
|
||||||
foreach ($file in $dscFiles) {
|
|
||||||
$componentId = "DscResource_" + ($file.BaseName -replace '[^A-Za-z0-9_]', '_')
|
|
||||||
$fileId = $componentId + "_File"
|
|
||||||
$guid = [System.Guid]::NewGuid().ToString().ToUpper()
|
|
||||||
$componentRefs += $componentId
|
|
||||||
|
|
||||||
$wxsContent += @"
|
|
||||||
|
|
||||||
<Component Id="$componentId" Guid="{$guid}">
|
|
||||||
<RegistryKey Root="`$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
|
||||||
<RegistryValue Type="string" Name="$componentId" Value="" KeyPath="yes"/>
|
|
||||||
</RegistryKey>
|
|
||||||
<File Id="$fileId" Source="`$(var.BinDir)$($file.Name)" Vital="no"/>
|
|
||||||
</Component>
|
|
||||||
"@
|
|
||||||
}
|
|
||||||
|
|
||||||
$wxsContent += @"
|
|
||||||
|
|
||||||
</DirectoryRef>
|
|
||||||
</Fragment>
|
|
||||||
<Fragment>
|
|
||||||
<ComponentGroup Id="DscResourcesComponentGroup">
|
|
||||||
"@
|
|
||||||
|
|
||||||
foreach ($componentId in $componentRefs) {
|
|
||||||
$wxsContent += @"
|
|
||||||
|
|
||||||
<ComponentRef Id="$componentId"/>
|
|
||||||
"@
|
|
||||||
}
|
|
||||||
|
|
||||||
$wxsContent += @"
|
|
||||||
|
|
||||||
</ComponentGroup>
|
|
||||||
</Fragment>
|
|
||||||
</Wix>
|
|
||||||
"@
|
|
||||||
|
|
||||||
Set-Content -Path $dscWxsFile -Value $wxsContent
|
|
||||||
Write-Host "Generated DSC resources WiX fragment: '$dscWxsFile'"
|
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
#include <ProjectTelemetry.h>
|
#include <ProjectTelemetry.h>
|
||||||
#include <spdlog/sinks/base_sink.h>
|
#include <spdlog/sinks/base_sink.h>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
#include <string_view>
|
||||||
|
|
||||||
#include "../../src/common/logger/logger.h"
|
#include "../../src/common/logger/logger.h"
|
||||||
#include "../../src/common/utils/gpo.h"
|
#include "../../src/common/utils/gpo.h"
|
||||||
@@ -856,14 +857,69 @@ UINT __stdcall UnsetAdvancedPasteAPIKeyCA(MSIHANDLE hInstall)
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
winrt::Windows::Security::Credentials::PasswordVault vault;
|
|
||||||
winrt::Windows::Security::Credentials::PasswordCredential cred;
|
|
||||||
|
|
||||||
hr = WcaInitialize(hInstall, "UnsetAdvancedPasteAPIKey");
|
hr = WcaInitialize(hInstall, "UnsetAdvancedPasteAPIKey");
|
||||||
ExitOnFailure(hr, "Failed to initialize");
|
ExitOnFailure(hr, "Failed to initialize");
|
||||||
|
|
||||||
cred = vault.Retrieve(L"https://platform.openai.com/api-keys", L"PowerToys_AdvancedPaste_OpenAIKey");
|
winrt::Windows::Security::Credentials::PasswordVault vault;
|
||||||
vault.Remove(cred);
|
|
||||||
|
auto hasPrefix = [](std::wstring_view value, wchar_t const* prefix) {
|
||||||
|
std::wstring_view prefixView{ prefix };
|
||||||
|
return value.compare(0, prefixView.size(), prefixView) == 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
const wchar_t* resourcePrefixes[] = {
|
||||||
|
L"https://platform.openai.com/api-keys",
|
||||||
|
L"https://azure.microsoft.com/products/ai-services/openai-service",
|
||||||
|
L"https://azure.microsoft.com/products/ai-services/ai-inference",
|
||||||
|
L"https://console.mistral.ai/account/api-keys",
|
||||||
|
L"https://ai.google.dev/",
|
||||||
|
};
|
||||||
|
|
||||||
|
const wchar_t* usernamePrefixes[] = {
|
||||||
|
L"PowerToys_AdvancedPaste_",
|
||||||
|
};
|
||||||
|
|
||||||
|
auto credentials = vault.RetrieveAll();
|
||||||
|
for (auto const& credential : credentials)
|
||||||
|
{
|
||||||
|
bool shouldRemove = false;
|
||||||
|
|
||||||
|
std::wstring resource{ credential.Resource() };
|
||||||
|
for (auto const prefix : resourcePrefixes)
|
||||||
|
{
|
||||||
|
if (hasPrefix(resource, prefix))
|
||||||
|
{
|
||||||
|
shouldRemove = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!shouldRemove)
|
||||||
|
{
|
||||||
|
std::wstring username{ credential.UserName() };
|
||||||
|
for (auto const prefix : usernamePrefixes)
|
||||||
|
{
|
||||||
|
if (hasPrefix(username, prefix))
|
||||||
|
{
|
||||||
|
shouldRemove = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!shouldRemove)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
vault.Remove(credential);
|
||||||
|
}
|
||||||
|
catch (...)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,13 +34,8 @@
|
|||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutDir Condition=" '$(PerUser)' != 'true' ">$(Platform)\$(Configuration)\MachineSetup\</OutDir>
|
<OutDir>$(Platform)\$(Configuration)\SetupShared\</OutDir>
|
||||||
<OutDir Condition=" '$(PerUser)' == 'true' ">$(Platform)\$(Configuration)\UserSetup\</OutDir>
|
<IntDir>$(SolutionDir)$(ProjectName)\$(Platform)\$(Configuration)\SetupShared\obj\</IntDir>
|
||||||
<IntDir Condition=" '$(PerUser)' != 'true' ">$(SolutionDir)$(ProjectName)\$(Platform)\$(Configuration)\MachineSetup\obj\</IntDir>
|
|
||||||
<IntDir Condition=" '$(PerUser)' == 'true' ">$(SolutionDir)$(ProjectName)\$(Platform)\$(Configuration)\UserSetup\obj\</IntDir>
|
|
||||||
<!-- The CMD script below checks this value, and it is **CASE SENSITIVE** -->
|
|
||||||
<NormalizedPerUserValue>false</NormalizedPerUserValue>
|
|
||||||
<NormalizedPerUserValue Condition=" '$(PerUser)' == 'true' ">true</NormalizedPerUserValue>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
@@ -59,6 +54,7 @@
|
|||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\CmdPal.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\CmdPal.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\CmdPal.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\CmdPal.wxs.bk""""
|
||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\ColorPicker.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\ColorPicker.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\ColorPicker.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\ColorPicker.wxs.bk""""
|
||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\Core.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\Core.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\Core.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\Core.wxs.bk""""
|
||||||
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\DscResources.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\DscResources.wxs.bk""""
|
||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\EnvironmentVariables.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\EnvironmentVariables.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\EnvironmentVariables.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\EnvironmentVariables.wxs.bk""""
|
||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\FileExplorerPreview.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\FileExplorerPreview.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\FileExplorerPreview.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\FileExplorerPreview.wxs.bk""""
|
||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\FileLocksmith.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\FileLocksmith.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\FileLocksmith.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\FileLocksmith.wxs.bk""""
|
||||||
@@ -80,8 +76,7 @@
|
|||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\WinAppSDK.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\WinAppSDK.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\WinAppSDK.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\WinAppSDK.wxs.bk""""
|
||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\WinUI3Applications.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\WinUI3Applications.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\WinUI3Applications.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\WinUI3Applications.wxs.bk""""
|
||||||
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\Workspaces.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\Workspaces.wxs.bk""""
|
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetupVNext\Workspaces.wxs"" ""$(ProjectDir)..\PowerToysSetupVNext\Workspaces.wxs.bk""""
|
||||||
if not "$(NormalizedPerUserValue)" == "true" call powershell.exe -NonInteractive -executionpolicy Unrestricted -File ..\PowerToysSetupVNext\generateAllFileComponents.ps1 -platform $(Platform)
|
call powershell.exe -NonInteractive -executionpolicy Unrestricted -File ..\PowerToysSetupVNext\generateAllFileComponents.ps1 -platform $(Platform)
|
||||||
if "$(NormalizedPerUserValue)" == "true" call powershell.exe -NonInteractive -executionpolicy Unrestricted -File ..\PowerToysSetupVNext\generateAllFileComponents.ps1 -platform $(Platform) -installscopeperuser $(NormalizedPerUserValue)
|
|
||||||
</Command>
|
</Command>
|
||||||
<Message>Backing up original files and populating .NET and WPF Runtime dependencies for WiX3 based installer</Message>
|
<Message>Backing up original files and populating .NET and WPF Runtime dependencies for WiX3 based installer</Message>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
|
|||||||
@@ -4,6 +4,13 @@
|
|||||||
<Fragment>
|
<Fragment>
|
||||||
<DirectoryRef Id="WinUI3AppsInstallFolder">
|
<DirectoryRef Id="WinUI3AppsInstallFolder">
|
||||||
<Directory Id="CmdPalInstallFolder" Name="CmdPal">
|
<Directory Id="CmdPalInstallFolder" Name="CmdPal">
|
||||||
|
<Directory Id="CmdPalDepsInstallFolder" Name="Dependencies">
|
||||||
|
<?if $(sys.BUILDARCH) = x64 ?>
|
||||||
|
<Directory Id="CmdPalDepsX64InstallFolder" Name="x64" />
|
||||||
|
<?else?>
|
||||||
|
<Directory Id="CmdPalDepsArm64InstallFolder" Name="arm64" />
|
||||||
|
<?endif?>
|
||||||
|
</Directory>
|
||||||
</Directory>
|
</Directory>
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
<DirectoryRef Id="CmdPalInstallFolder" FileSource="$(var.CmdPalBuildDir)AppPackages\Microsoft.CmdPal.UI_$(var.CmdPalVersion)_Test">
|
<DirectoryRef Id="CmdPalInstallFolder" FileSource="$(var.CmdPalBuildDir)AppPackages\Microsoft.CmdPal.UI_$(var.CmdPalVersion)_Test">
|
||||||
@@ -18,14 +25,40 @@
|
|||||||
<?endif?>
|
<?endif?>
|
||||||
</Component>
|
</Component>
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
|
<?if $(sys.BUILDARCH) = x64 ?>
|
||||||
|
<DirectoryRef Id="CmdPalDepsX64InstallFolder" FileSource="$(var.CmdPalBuildDir)AppPackages\Microsoft.CmdPal.UI_$(var.CmdPalVersion)_Test\Dependencies\x64">
|
||||||
|
<Component Id="Module_CmdPal_Deps" Guid="C2790FC4-0665-4462-947A-D942A2AABFF0" Bitness="always64">
|
||||||
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
|
<RegistryValue Type="string" Name="Module_CmdPal_Deps" Value="" KeyPath="yes" />
|
||||||
|
</RegistryKey>
|
||||||
|
<File Id="Microsoft.VCLibs.x64.14.00.Desktop.appx" Source="$(var.CmdPalBuildDir)AppPackages\Microsoft.CmdPal.UI_$(var.CmdPalVersion)_Test\Dependencies\x64\Microsoft.VCLibs.x64.14.00.Desktop.appx" />
|
||||||
|
</Component>
|
||||||
|
</DirectoryRef>
|
||||||
|
<?else?>
|
||||||
|
<DirectoryRef Id="CmdPalDepsArm64InstallFolder" FileSource="$(var.CmdPalBuildDir)AppPackages\Microsoft.CmdPal.UI_$(var.CmdPalVersion)_Test\Dependencies\arm64">
|
||||||
|
<Component Id="Module_CmdPal_Deps" Guid="C2790FC4-0665-4462-947A-D942A2AABFF0" Bitness="always64">
|
||||||
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
|
<RegistryValue Type="string" Name="Module_CmdPal_Deps" Value="" KeyPath="yes" />
|
||||||
|
</RegistryKey>
|
||||||
|
<File Id="Microsoft.VCLibs.ARM64.14.00.Desktop.appx" Source="$(var.CmdPalBuildDir)AppPackages\Microsoft.CmdPal.UI_$(var.CmdPalVersion)_Test\Dependencies\arm64\Microsoft.VCLibs.ARM64.14.00.Desktop.appx" />
|
||||||
|
</Component>
|
||||||
|
</DirectoryRef>
|
||||||
|
<?endif?>
|
||||||
<ComponentGroup Id="CmdPalComponentGroup">
|
<ComponentGroup Id="CmdPalComponentGroup">
|
||||||
<Component Id="RemoveCmdPalFolder" Guid="2DF90C08-CC75-4245-A14E-B82904636C53" Directory="INSTALLFOLDER">
|
<Component Id="RemoveCmdPalFolder" Guid="2DF90C08-CC75-4245-A14E-B82904636C53" Directory="INSTALLFOLDER">
|
||||||
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
<RegistryValue Type="string" Name="RemoveCmdPalFolder" Value="" KeyPath="yes" />
|
<RegistryValue Type="string" Name="RemoveCmdPalFolder" Value="" KeyPath="yes" />
|
||||||
</RegistryKey>
|
</RegistryKey>
|
||||||
<RemoveFolder Id="RemoveCmdPalInstallDirFolder" Directory="CmdPalInstallFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveCmdPalInstallDirFolder" Directory="CmdPalInstallFolder" On="uninstall" />
|
||||||
|
<RemoveFolder Id="RemoveCmdPalDepsInstallDirFolder" Directory="CmdPalDepsInstallFolder" On="uninstall" />
|
||||||
|
<?if $(sys.BUILDARCH) = x64 ?>
|
||||||
|
<RemoveFolder Id="RemoveCmdPalDepsX64InstallDirFolder" Directory="CmdPalDepsX64InstallFolder" On="uninstall" />
|
||||||
|
<?else?>
|
||||||
|
<RemoveFolder Id="RemoveCmdPalDepsArm64InstallDirFolder" Directory="CmdPalDepsArm64InstallFolder" On="uninstall" />
|
||||||
|
<?endif?>
|
||||||
</Component>
|
</Component>
|
||||||
<ComponentRef Id="Module_CmdPal" />
|
<ComponentRef Id="Module_CmdPal" />
|
||||||
|
<ComponentRef Id="Module_CmdPal_Deps" />
|
||||||
</ComponentGroup>
|
</ComponentGroup>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
</Wix>
|
</Wix>
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
<RegistryValue Type="string" Name="powertoys_env_path_user" Value="" KeyPath="yes" />
|
<RegistryValue Type="string" Name="powertoys_env_path_user" Value="" KeyPath="yes" />
|
||||||
</RegistryKey>
|
</RegistryKey>
|
||||||
<!-- Append install folder to current user's PATH -->
|
<!-- Append DSCModules folder to current user's PATH for DSC v3 usage -->
|
||||||
<Environment Id="AddPowerToysToUserPath" Name="PATH" Action="set" Part="last" System="no" Value="[INSTALLFOLDER]" />
|
<Environment Id="AddPowerToysToUserPath" Name="PATH" Action="set" Part="last" System="no" Value="[DSCModulesReferenceFolder]" />
|
||||||
</Component>
|
</Component>
|
||||||
<?else?>
|
<?else?>
|
||||||
<Component Id="powertoys_env_path_machine" Bitness="always64">
|
<Component Id="powertoys_env_path_machine" Bitness="always64">
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
<RegistryValue Type="string" Name="powertoys_env_path_machine" Value="" KeyPath="yes" />
|
<RegistryValue Type="string" Name="powertoys_env_path_machine" Value="" KeyPath="yes" />
|
||||||
</RegistryKey>
|
</RegistryKey>
|
||||||
<!-- Append install folder to machine PATH -->
|
<!-- Append DSCModules folder to machine PATH for DSC v3 usage -->
|
||||||
<Environment Id="AddPowerToysToMachinePath" Name="PATH" Action="set" Part="last" System="yes" Value="[INSTALLFOLDER]" />
|
<Environment Id="AddPowerToysToMachinePath" Name="PATH" Action="set" Part="last" System="yes" Value="[DSCModulesReferenceFolder]" />
|
||||||
</Component>
|
</Component>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
<Component Id="powertoys_toast_clsid" Bitness="always64">
|
<Component Id="powertoys_toast_clsid" Bitness="always64">
|
||||||
@@ -63,16 +63,6 @@
|
|||||||
</Component>
|
</Component>
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
|
|
||||||
<DirectoryRef Id="DSCModulesReferenceFolder">
|
|
||||||
<Component Id="PowerToysDSCReference" Guid="40869ACB-0BEB-4911-AE41-5E73BC1586A9" Bitness="always64">
|
|
||||||
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
|
||||||
<RegistryValue Type="string" Name="DSCModulesReference" Value="" KeyPath="yes" />
|
|
||||||
</RegistryKey>
|
|
||||||
<File Source="$(var.RepoDir)\src\dsc\Microsoft.PowerToys.Configure\Generated\Microsoft.PowerToys.Configure\$(var.Version).0\Microsoft.PowerToys.Configure.psd1" Id="PTConfReference.psd1" />
|
|
||||||
<File Source="$(var.RepoDir)\src\dsc\Microsoft.PowerToys.Configure\Generated\Microsoft.PowerToys.Configure\$(var.Version).0\Microsoft.PowerToys.Configure.psm1" Id="PTConfReference.psm1" />
|
|
||||||
</Component>
|
|
||||||
</DirectoryRef>
|
|
||||||
|
|
||||||
<?if $(var.PerUser) = "true" ?>
|
<?if $(var.PerUser) = "true" ?>
|
||||||
<!-- DSC module files for PerUser handled in InstallDSCModule custom action. -->
|
<!-- DSC module files for PerUser handled in InstallDSCModule custom action. -->
|
||||||
<?else?>
|
<?else?>
|
||||||
@@ -120,7 +110,6 @@
|
|||||||
<RegistryValue Type="string" Name="RemoveCoreFolder" Value="" KeyPath="yes" />
|
<RegistryValue Type="string" Name="RemoveCoreFolder" Value="" KeyPath="yes" />
|
||||||
</RegistryKey>
|
</RegistryKey>
|
||||||
<RemoveFolder Id="RemoveBaseApplicationsAssetsFolder" Directory="BaseApplicationsAssetsFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveBaseApplicationsAssetsFolder" Directory="BaseApplicationsAssetsFolder" On="uninstall" />
|
||||||
<RemoveFolder Id="RemoveDSCModulesReferenceFolder" Directory="DSCModulesReferenceFolder" On="uninstall" />
|
|
||||||
<RemoveFolder Id="RemoveWinUI3AppsInstallFolder" Directory="WinUI3AppsInstallFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveWinUI3AppsInstallFolder" Directory="WinUI3AppsInstallFolder" On="uninstall" />
|
||||||
<RemoveFolder Id="RemoveWinUI3AppsAssetsFolder" Directory="WinUI3AppsAssetsFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveWinUI3AppsAssetsFolder" Directory="WinUI3AppsAssetsFolder" On="uninstall" />
|
||||||
<RemoveFolder Id="RemoveINSTALLFOLDER" Directory="INSTALLFOLDER" On="uninstall" />
|
<RemoveFolder Id="RemoveINSTALLFOLDER" Directory="INSTALLFOLDER" On="uninstall" />
|
||||||
@@ -128,16 +117,15 @@
|
|||||||
<ComponentRef Id="powertoys_exe" />
|
<ComponentRef Id="powertoys_exe" />
|
||||||
<ComponentRef Id="PowerToysStartMenuShortcut" />
|
<ComponentRef Id="PowerToysStartMenuShortcut" />
|
||||||
<ComponentRef Id="powertoys_per_machine_comp" />
|
<ComponentRef Id="powertoys_per_machine_comp" />
|
||||||
<?if $(var.PerUser) = "true" ?>
|
|
||||||
<ComponentRef Id="powertoys_env_path_user" />
|
|
||||||
<?else?>
|
|
||||||
<ComponentRef Id="powertoys_env_path_machine" />
|
|
||||||
<?endif?>
|
|
||||||
<ComponentRef Id="powertoys_toast_clsid" />
|
<ComponentRef Id="powertoys_toast_clsid" />
|
||||||
<ComponentRef Id="License_rtf" />
|
<ComponentRef Id="License_rtf" />
|
||||||
<ComponentRef Id="Notice_md" />
|
<ComponentRef Id="Notice_md" />
|
||||||
<ComponentRef Id="DesktopShortcut" />
|
<ComponentRef Id="DesktopShortcut" />
|
||||||
<ComponentRef Id="PowerToysDSCReference" />
|
<?if $(var.PerUser) = "true" ?>
|
||||||
|
<ComponentRef Id="powertoys_env_path_user" />
|
||||||
|
<?else?>
|
||||||
|
<ComponentRef Id="powertoys_env_path_machine" />
|
||||||
|
<?endif?>
|
||||||
<?if $(var.PerUser) = "false" ?>
|
<?if $(var.PerUser) = "false" ?>
|
||||||
<ComponentRef Id="PowerToysDSC" />
|
<ComponentRef Id="PowerToysDSC" />
|
||||||
<?endif?>
|
<?endif?>
|
||||||
|
|||||||
33
installer/PowerToysSetupVNext/DscResources.wxs
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
||||||
|
|
||||||
|
<?include $(sys.CURRENTDIR)\Common.wxi?>
|
||||||
|
|
||||||
|
<?define DscJsonFiles=?>
|
||||||
|
<?define DscJsonFilesPath=$(var.BinDir)\DSCModules?>
|
||||||
|
|
||||||
|
<Fragment>
|
||||||
|
<DirectoryRef Id="DSCModulesReferenceFolder" FileSource="$(var.DscJsonFilesPath)">
|
||||||
|
<!-- DSC v2 PowerShell module files -->
|
||||||
|
<Component Id="PowerToysDSCReference" Guid="40869ACB-0BEB-4911-AE41-5E73BC1586A9" Bitness="always64">
|
||||||
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
|
<RegistryValue Type="string" Name="DSCModulesReference" Value="" KeyPath="yes" />
|
||||||
|
</RegistryKey>
|
||||||
|
<File Source="$(var.RepoDir)\src\dsc\Microsoft.PowerToys.Configure\Generated\Microsoft.PowerToys.Configure\$(var.Version).0\Microsoft.PowerToys.Configure.psd1" Id="PTConfReference.psd1" />
|
||||||
|
<File Source="$(var.RepoDir)\src\dsc\Microsoft.PowerToys.Configure\Generated\Microsoft.PowerToys.Configure\$(var.Version).0\Microsoft.PowerToys.Configure.psm1" Id="PTConfReference.psm1" />
|
||||||
|
</Component>
|
||||||
|
|
||||||
|
<!-- DSC v3 JSON manifest files - Generated by generateAllFileComponents.ps1 -->
|
||||||
|
<!--DscJsonFiles_Component_Def-->
|
||||||
|
</DirectoryRef>
|
||||||
|
|
||||||
|
<ComponentGroup Id="DscResourcesComponentGroup">
|
||||||
|
<ComponentRef Id="PowerToysDSCReference" />
|
||||||
|
<Component Id="RemoveDSCModulesFolder" Guid="A3C77D92-4E97-4C1A-9F2E-8B3C5D6E7F80" Directory="DSCModulesReferenceFolder">
|
||||||
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
|
<RegistryValue Type="string" Name="RemoveDSCModulesFolder" Value="" KeyPath="yes" />
|
||||||
|
</RegistryKey>
|
||||||
|
<RemoveFolder Id="RemoveDSCModulesReferenceFolder" Directory="DSCModulesReferenceFolder" On="uninstall" />
|
||||||
|
</Component>
|
||||||
|
</ComponentGroup>
|
||||||
|
</Fragment>
|
||||||
|
</Wix>
|
||||||
@@ -14,7 +14,6 @@ SET PTRoot=$(SolutionDir)\..
|
|||||||
call "..\..\..\publish.cmd" x64
|
call "..\..\..\publish.cmd" x64
|
||||||
)
|
)
|
||||||
call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuildThisFileDirectory)\generateMonacoWxs.ps1 -monacoWxsFile "$(MSBuildThisFileDirectory)\MonacoSRC.wxs" -Platform "$(Platform)" -nugetHeatPath "$(NUGET_PACKAGES)\wixtoolset.heat\5.0.2"
|
call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuildThisFileDirectory)\generateMonacoWxs.ps1 -monacoWxsFile "$(MSBuildThisFileDirectory)\MonacoSRC.wxs" -Platform "$(Platform)" -nugetHeatPath "$(NUGET_PACKAGES)\wixtoolset.heat\5.0.2"
|
||||||
call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuildThisFileDirectory)\generateDscResourcesWxs.ps1 -dscWxsFile "$(MSBuildThisFileDirectory)\DscResources.wxs" -Platform "$(Platform)" -Configuration "$(Configuration)"
|
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Platform)' != 'x64'">
|
<PropertyGroup Condition="'$(Platform)' != 'x64'">
|
||||||
@@ -25,7 +24,6 @@ SET PTRoot=$(SolutionDir)\..
|
|||||||
call "..\..\..\publish.cmd" arm64
|
call "..\..\..\publish.cmd" arm64
|
||||||
)
|
)
|
||||||
call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuildThisFileDirectory)\generateMonacoWxs.ps1 -monacoWxsFile "$(MSBuildThisFileDirectory)\MonacoSRC.wxs" -Platform "$(Platform)" -nugetHeatPath "$(NUGET_PACKAGES)\wixtoolset.heat\5.0.2"
|
call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuildThisFileDirectory)\generateMonacoWxs.ps1 -monacoWxsFile "$(MSBuildThisFileDirectory)\MonacoSRC.wxs" -Platform "$(Platform)" -nugetHeatPath "$(NUGET_PACKAGES)\wixtoolset.heat\5.0.2"
|
||||||
call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuildThisFileDirectory)\generateDscResourcesWxs.ps1 -dscWxsFile "$(MSBuildThisFileDirectory)\DscResources.wxs" -Platform "$(Platform)" -Configuration "$(Configuration)"
|
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
@@ -37,6 +35,7 @@ call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuil
|
|||||||
call move /Y ..\..\..\CmdPal.wxs.bk ..\..\..\CmdPal.wxs
|
call move /Y ..\..\..\CmdPal.wxs.bk ..\..\..\CmdPal.wxs
|
||||||
call move /Y ..\..\..\ColorPicker.wxs.bk ..\..\..\ColorPicker.wxs
|
call move /Y ..\..\..\ColorPicker.wxs.bk ..\..\..\ColorPicker.wxs
|
||||||
call move /Y ..\..\..\Core.wxs.bk ..\..\..\Core.wxs
|
call move /Y ..\..\..\Core.wxs.bk ..\..\..\Core.wxs
|
||||||
|
call move /Y ..\..\..\DscResources.wxs.bk ..\..\..\DscResources.wxs
|
||||||
call move /Y ..\..\..\EnvironmentVariables.wxs.bk ..\..\..\EnvironmentVariables.wxs
|
call move /Y ..\..\..\EnvironmentVariables.wxs.bk ..\..\..\EnvironmentVariables.wxs
|
||||||
call move /Y ..\..\..\FileExplorerPreview.wxs.bk ..\..\..\FileExplorerPreview.wxs
|
call move /Y ..\..\..\FileExplorerPreview.wxs.bk ..\..\..\FileExplorerPreview.wxs
|
||||||
call move /Y ..\..\..\FileLocksmith.wxs.bk ..\..\..\FileLocksmith.wxs
|
call move /Y ..\..\..\FileLocksmith.wxs.bk ..\..\..\FileLocksmith.wxs
|
||||||
@@ -60,6 +59,12 @@ call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuil
|
|||||||
call move /Y ..\..\..\Workspaces.wxs.bk ..\..\..\Workspaces.wxs
|
call move /Y ..\..\..\Workspaces.wxs.bk ..\..\..\Workspaces.wxs
|
||||||
</PostBuildEvent>
|
</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(RunBuildEvents)'=='false'">
|
||||||
|
<PostBuildEvent></PostBuildEvent>
|
||||||
|
<RunPostBuildEvent></RunPostBuildEvent>
|
||||||
|
<PreBuildEventUseInBuild>false</PreBuildEventUseInBuild>
|
||||||
|
<PostBuildEventUseInBuild>false</PostBuildEventUseInBuild>
|
||||||
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="UserMacros" Condition=" '$(PerUser)' == 'true' ">
|
<PropertyGroup Label="UserMacros" Condition=" '$(PerUser)' == 'true' ">
|
||||||
<DefineConstants>$(DefineConstants);PerUser=true</DefineConstants>
|
<DefineConstants>$(DefineConstants);PerUser=true</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@@ -120,8 +120,8 @@
|
|||||||
|
|
||||||
<Custom Action="SetUnApplyModulesRegistryChangeSetsParam" Before="UnApplyModulesRegistryChangeSets" />
|
<Custom Action="SetUnApplyModulesRegistryChangeSetsParam" Before="UnApplyModulesRegistryChangeSets" />
|
||||||
<Custom Action="CheckGPO" After="InstallInitialize" Condition="NOT Installed" />
|
<Custom Action="CheckGPO" After="InstallInitialize" Condition="NOT Installed" />
|
||||||
<Custom Action="SetBundleInstallLocationData" Before="SetBundleInstallLocation" Condition="NOT Installed" />
|
<Custom Action="SetBundleInstallLocationData" Before="SetBundleInstallLocation" Condition="NOT Installed OR WIX_UPGRADE_DETECTED" />
|
||||||
<Custom Action="SetBundleInstallLocation" After="InstallFiles" Condition="NOT Installed" />
|
<Custom Action="SetBundleInstallLocation" After="InstallFiles" Condition="NOT Installed OR WIX_UPGRADE_DETECTED" />
|
||||||
<Custom Action="ApplyModulesRegistryChangeSets" After="InstallFiles" Condition="NOT Installed" />
|
<Custom Action="ApplyModulesRegistryChangeSets" After="InstallFiles" Condition="NOT Installed" />
|
||||||
<Custom Action="InstallCmdPalPackage" After="InstallFiles" Condition="NOT Installed" />
|
<Custom Action="InstallCmdPalPackage" After="InstallFiles" Condition="NOT Installed" />
|
||||||
<Custom Action="InstallPackageIdentityMSIX" After="InstallFiles" Condition="NOT Installed" />
|
<Custom Action="InstallPackageIdentityMSIX" After="InstallFiles" Condition="NOT Installed" />
|
||||||
|
|||||||
@@ -14,11 +14,16 @@
|
|||||||
<?define SettingsV2OOBEAssetsFluentIconsFiles=?>
|
<?define SettingsV2OOBEAssetsFluentIconsFiles=?>
|
||||||
<?define SettingsV2OOBEAssetsFluentIconsFilesPath=$(var.BinDir)WinUI3Apps\Assets\Settings\Icons\?>
|
<?define SettingsV2OOBEAssetsFluentIconsFilesPath=$(var.BinDir)WinUI3Apps\Assets\Settings\Icons\?>
|
||||||
|
|
||||||
|
<?define SettingsV2IconsModelsFiles=?>
|
||||||
|
<?define SettingsV2IconsModelsFilesPath=$(var.BinDir)WinUI3Apps\Assets\Settings\Icons\Models\?>
|
||||||
|
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<DirectoryRef Id="WinUI3AppsAssetsFolder">
|
<DirectoryRef Id="WinUI3AppsAssetsFolder">
|
||||||
<Directory Id="SettingsV2AssetsInstallFolder" Name="Settings">
|
<Directory Id="SettingsV2AssetsInstallFolder" Name="Settings">
|
||||||
<Directory Id="SettingsAppAssetsScriptsFolder" Name="Scripts" />
|
<Directory Id="SettingsAppAssetsScriptsFolder" Name="Scripts" />
|
||||||
<Directory Id="SettingsV2OOBEAssetsFluentIconsInstallFolder" Name="Icons" />
|
<Directory Id="SettingsV2OOBEAssetsFluentIconsInstallFolder" Name="Icons">
|
||||||
|
<Directory Id="SettingsV2IconsModelsInstallFolder" Name="Models" />
|
||||||
|
</Directory>
|
||||||
<Directory Id="SettingsV2AssetsModulesInstallFolder" Name="Modules">
|
<Directory Id="SettingsV2AssetsModulesInstallFolder" Name="Modules">
|
||||||
<Directory Id="SettingsV2OOBEAssetsModulesInstallFolder" Name="OOBE" />
|
<Directory Id="SettingsV2OOBEAssetsModulesInstallFolder" Name="OOBE" />
|
||||||
</Directory>
|
</Directory>
|
||||||
@@ -45,6 +50,11 @@
|
|||||||
<!--SettingsV2OOBEAssetsFluentIconsFiles_Component_Def-->
|
<!--SettingsV2OOBEAssetsFluentIconsFiles_Component_Def-->
|
||||||
</DirectoryRef>
|
</DirectoryRef>
|
||||||
|
|
||||||
|
<DirectoryRef Id="SettingsV2IconsModelsInstallFolder" FileSource="$(var.SettingsV2IconsModelsFilesPath)">
|
||||||
|
<!-- Generated by generateFileComponents.ps1 -->
|
||||||
|
<!--SettingsV2IconsModelsFiles_Component_Def-->
|
||||||
|
</DirectoryRef>
|
||||||
|
|
||||||
<DirectoryRef Id="SettingsAppAssetsScriptsFolder" FileSource="$(var.SettingsV2AssetsFilesPath)\Scripts\">
|
<DirectoryRef Id="SettingsAppAssetsScriptsFolder" FileSource="$(var.SettingsV2AssetsFilesPath)\Scripts\">
|
||||||
<Component Id="CommandNotFound_Scripts" Guid="898EFA1E-EDD3-4F4B-8C7F-4A14B0D05B02" Bitness="always64">
|
<Component Id="CommandNotFound_Scripts" Guid="898EFA1E-EDD3-4F4B-8C7F-4A14B0D05B02" Bitness="always64">
|
||||||
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
<RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
@@ -67,6 +77,7 @@
|
|||||||
</RegistryKey>
|
</RegistryKey>
|
||||||
<RemoveFolder Id="RemoveFolderSettingsV2AssetsInstallFolder" Directory="SettingsV2AssetsInstallFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveFolderSettingsV2AssetsInstallFolder" Directory="SettingsV2AssetsInstallFolder" On="uninstall" />
|
||||||
<RemoveFolder Id="RemoveFolderSettingsV2OOBEAssetsFluentIconsInstallFolder" Directory="SettingsV2OOBEAssetsFluentIconsInstallFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveFolderSettingsV2OOBEAssetsFluentIconsInstallFolder" Directory="SettingsV2OOBEAssetsFluentIconsInstallFolder" On="uninstall" />
|
||||||
|
<RemoveFolder Id="RemoveFolderSettingsV2IconsModelsInstallFolder" Directory="SettingsV2IconsModelsInstallFolder" On="uninstall" />
|
||||||
<RemoveFolder Id="RemoveFolderSettingsV2AssetsModulesInstallFolder" Directory="SettingsV2AssetsModulesInstallFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveFolderSettingsV2AssetsModulesInstallFolder" Directory="SettingsV2AssetsModulesInstallFolder" On="uninstall" />
|
||||||
<RemoveFolder Id="RemoveFolderSettingsV2OOBEAssetsModulesInstallFolder" Directory="SettingsV2OOBEAssetsModulesInstallFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveFolderSettingsV2OOBEAssetsModulesInstallFolder" Directory="SettingsV2OOBEAssetsModulesInstallFolder" On="uninstall" />
|
||||||
<RemoveFolder Id="RemoveFolderSettingsAppAssetsScriptsFolder" Directory="SettingsAppAssetsScriptsFolder" On="uninstall" />
|
<RemoveFolder Id="RemoveFolderSettingsAppAssetsScriptsFolder" Directory="SettingsAppAssetsScriptsFolder" On="uninstall" />
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param(
|
Param(
|
||||||
[Parameter(Mandatory = $True, Position = 1)]
|
[Parameter(Mandatory = $True, Position = 1)]
|
||||||
[string]$platform,
|
[string]$platform
|
||||||
[Parameter(Mandatory = $False, Position = 2)]
|
|
||||||
[string]$installscopeperuser = "false"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
Function Generate-FileList() {
|
Function Generate-FileList() {
|
||||||
@@ -77,9 +75,7 @@ Function Generate-FileComponents() {
|
|||||||
[Parameter(Mandatory = $True, Position = 1)]
|
[Parameter(Mandatory = $True, Position = 1)]
|
||||||
[string]$fileListName,
|
[string]$fileListName,
|
||||||
[Parameter(Mandatory = $True, Position = 2)]
|
[Parameter(Mandatory = $True, Position = 2)]
|
||||||
[string]$wxsFilePath,
|
[string]$wxsFilePath
|
||||||
[Parameter(Mandatory = $True, Position = 3)]
|
|
||||||
[string]$regroot
|
|
||||||
)
|
)
|
||||||
|
|
||||||
$wxsFile = Get-Content $wxsFilePath;
|
$wxsFile = Get-Content $wxsFilePath;
|
||||||
@@ -100,7 +96,7 @@ Function Generate-FileComponents() {
|
|||||||
$componentDefs +=
|
$componentDefs +=
|
||||||
@"
|
@"
|
||||||
<Component Id="$($componentId)" Guid="$((New-Guid).ToString().ToUpper())">
|
<Component Id="$($componentId)" Guid="$((New-Guid).ToString().ToUpper())">
|
||||||
<RegistryKey Root="$($regroot)" Key="Software\Classes\powertoys\components">
|
<RegistryKey Root="`$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
||||||
<RegistryValue Type="string" Name="$($componentId)" Value="" KeyPath="yes"/>
|
<RegistryValue Type="string" Name="$($componentId)" Value="" KeyPath="yes"/>
|
||||||
</RegistryKey>`r`n
|
</RegistryKey>`r`n
|
||||||
"@
|
"@
|
||||||
@@ -134,194 +130,194 @@ if ($platform -ceq "arm64") {
|
|||||||
$platform = "ARM64"
|
$platform = "ARM64"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($installscopeperuser -eq "true") {
|
|
||||||
$registryroot = "HKCU"
|
|
||||||
} else {
|
|
||||||
$registryroot = "HKLM"
|
|
||||||
}
|
|
||||||
|
|
||||||
#BaseApplications
|
#BaseApplications
|
||||||
Generate-FileList -fileDepsJson "" -fileListName BaseApplicationsFiles -wxsFilePath $PSScriptRoot\BaseApplications.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release"
|
Generate-FileList -fileDepsJson "" -fileListName BaseApplicationsFiles -wxsFilePath $PSScriptRoot\BaseApplications.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release"
|
||||||
Generate-FileComponents -fileListName "BaseApplicationsFiles" -wxsFilePath $PSScriptRoot\BaseApplications.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "BaseApplicationsFiles" -wxsFilePath $PSScriptRoot\BaseApplications.wxs
|
||||||
|
|
||||||
#WinUI3Applications
|
#WinUI3Applications
|
||||||
Generate-FileList -fileDepsJson "" -fileListName WinUI3ApplicationsFiles -wxsFilePath $PSScriptRoot\WinUI3Applications.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps"
|
Generate-FileList -fileDepsJson "" -fileListName WinUI3ApplicationsFiles -wxsFilePath $PSScriptRoot\WinUI3Applications.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps"
|
||||||
Generate-FileComponents -fileListName "WinUI3ApplicationsFiles" -wxsFilePath $PSScriptRoot\WinUI3Applications.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WinUI3ApplicationsFiles" -wxsFilePath $PSScriptRoot\WinUI3Applications.wxs
|
||||||
|
|
||||||
#AdvancedPaste
|
#AdvancedPaste
|
||||||
Generate-FileList -fileDepsJson "" -fileListName AdvancedPasteAssetsFiles -wxsFilePath $PSScriptRoot\AdvancedPaste.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\AdvancedPaste"
|
Generate-FileList -fileDepsJson "" -fileListName AdvancedPasteAssetsFiles -wxsFilePath $PSScriptRoot\AdvancedPaste.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\AdvancedPaste"
|
||||||
Generate-FileComponents -fileListName "AdvancedPasteAssetsFiles" -wxsFilePath $PSScriptRoot\AdvancedPaste.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "AdvancedPasteAssetsFiles" -wxsFilePath $PSScriptRoot\AdvancedPaste.wxs
|
||||||
|
|
||||||
#AwakeFiles
|
#AwakeFiles
|
||||||
Generate-FileList -fileDepsJson "" -fileListName AwakeImagesFiles -wxsFilePath $PSScriptRoot\Awake.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\Awake"
|
Generate-FileList -fileDepsJson "" -fileListName AwakeImagesFiles -wxsFilePath $PSScriptRoot\Awake.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\Awake"
|
||||||
Generate-FileComponents -fileListName "AwakeImagesFiles" -wxsFilePath $PSScriptRoot\Awake.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "AwakeImagesFiles" -wxsFilePath $PSScriptRoot\Awake.wxs
|
||||||
|
|
||||||
#ColorPicker
|
#ColorPicker
|
||||||
Generate-FileList -fileDepsJson "" -fileListName ColorPickerAssetsFiles -wxsFilePath $PSScriptRoot\ColorPicker.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\ColorPicker"
|
Generate-FileList -fileDepsJson "" -fileListName ColorPickerAssetsFiles -wxsFilePath $PSScriptRoot\ColorPicker.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\ColorPicker"
|
||||||
Generate-FileComponents -fileListName "ColorPickerAssetsFiles" -wxsFilePath $PSScriptRoot\ColorPicker.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ColorPickerAssetsFiles" -wxsFilePath $PSScriptRoot\ColorPicker.wxs
|
||||||
|
|
||||||
#Environment Variables
|
#Environment Variables
|
||||||
Generate-FileList -fileDepsJson "" -fileListName EnvironmentVariablesAssetsFiles -wxsFilePath $PSScriptRoot\EnvironmentVariables.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\EnvironmentVariables"
|
Generate-FileList -fileDepsJson "" -fileListName EnvironmentVariablesAssetsFiles -wxsFilePath $PSScriptRoot\EnvironmentVariables.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\EnvironmentVariables"
|
||||||
Generate-FileComponents -fileListName "EnvironmentVariablesAssetsFiles" -wxsFilePath $PSScriptRoot\EnvironmentVariables.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "EnvironmentVariablesAssetsFiles" -wxsFilePath $PSScriptRoot\EnvironmentVariables.wxs
|
||||||
|
|
||||||
#FileExplorerAdd-ons
|
#FileExplorerAdd-ons
|
||||||
Generate-FileList -fileDepsJson "" -fileListName MonacoPreviewHandlerMonacoAssetsFiles -wxsFilePath $PSScriptRoot\FileExplorerPreview.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\Monaco"
|
Generate-FileList -fileDepsJson "" -fileListName MonacoPreviewHandlerMonacoAssetsFiles -wxsFilePath $PSScriptRoot\FileExplorerPreview.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\Monaco"
|
||||||
Generate-FileList -fileDepsJson "" -fileListName MonacoPreviewHandlerCustomLanguagesFiles -wxsFilePath $PSScriptRoot\FileExplorerPreview.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\Monaco\customLanguages"
|
Generate-FileList -fileDepsJson "" -fileListName MonacoPreviewHandlerCustomLanguagesFiles -wxsFilePath $PSScriptRoot\FileExplorerPreview.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\Monaco\customLanguages"
|
||||||
Generate-FileComponents -fileListName "MonacoPreviewHandlerMonacoAssetsFiles" -wxsFilePath $PSScriptRoot\FileExplorerPreview.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "MonacoPreviewHandlerMonacoAssetsFiles" -wxsFilePath $PSScriptRoot\FileExplorerPreview.wxs
|
||||||
Generate-FileComponents -fileListName "MonacoPreviewHandlerCustomLanguagesFiles" -wxsFilePath $PSScriptRoot\FileExplorerPreview.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "MonacoPreviewHandlerCustomLanguagesFiles" -wxsFilePath $PSScriptRoot\FileExplorerPreview.wxs
|
||||||
|
|
||||||
#FileLocksmith
|
#FileLocksmith
|
||||||
Generate-FileList -fileDepsJson "" -fileListName FileLocksmithAssetsFiles -wxsFilePath $PSScriptRoot\FileLocksmith.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\FileLocksmith"
|
Generate-FileList -fileDepsJson "" -fileListName FileLocksmithAssetsFiles -wxsFilePath $PSScriptRoot\FileLocksmith.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\FileLocksmith"
|
||||||
Generate-FileComponents -fileListName "FileLocksmithAssetsFiles" -wxsFilePath $PSScriptRoot\FileLocksmith.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "FileLocksmithAssetsFiles" -wxsFilePath $PSScriptRoot\FileLocksmith.wxs
|
||||||
|
|
||||||
#Hosts
|
#Hosts
|
||||||
Generate-FileList -fileDepsJson "" -fileListName HostsAssetsFiles -wxsFilePath $PSScriptRoot\Hosts.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Hosts"
|
Generate-FileList -fileDepsJson "" -fileListName HostsAssetsFiles -wxsFilePath $PSScriptRoot\Hosts.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Hosts"
|
||||||
Generate-FileComponents -fileListName "HostsAssetsFiles" -wxsFilePath $PSScriptRoot\Hosts.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "HostsAssetsFiles" -wxsFilePath $PSScriptRoot\Hosts.wxs
|
||||||
|
|
||||||
#ImageResizer
|
#ImageResizer
|
||||||
Generate-FileList -fileDepsJson "" -fileListName ImageResizerAssetsFiles -wxsFilePath $PSScriptRoot\ImageResizer.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\ImageResizer"
|
Generate-FileList -fileDepsJson "" -fileListName ImageResizerAssetsFiles -wxsFilePath $PSScriptRoot\ImageResizer.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\ImageResizer"
|
||||||
Generate-FileComponents -fileListName "ImageResizerAssetsFiles" -wxsFilePath $PSScriptRoot\ImageResizer.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ImageResizerAssetsFiles" -wxsFilePath $PSScriptRoot\ImageResizer.wxs
|
||||||
|
|
||||||
# Light Switch Service
|
# Light Switch Service
|
||||||
Generate-FileList -fileDepsJson "" -fileListName LightSwitchFiles -wxsFilePath $PSScriptRoot\LightSwitch.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\LightSwitchService"
|
Generate-FileList -fileDepsJson "" -fileListName LightSwitchFiles -wxsFilePath $PSScriptRoot\LightSwitch.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\LightSwitchService"
|
||||||
Generate-FileComponents -fileListName "LightSwitchFiles" -wxsFilePath $PSScriptRoot\LightSwitch.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "LightSwitchFiles" -wxsFilePath $PSScriptRoot\LightSwitch.wxs
|
||||||
|
|
||||||
#New+
|
#New+
|
||||||
Generate-FileList -fileDepsJson "" -fileListName NewPlusAssetsFiles -wxsFilePath $PSScriptRoot\NewPlus.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\NewPlus"
|
Generate-FileList -fileDepsJson "" -fileListName NewPlusAssetsFiles -wxsFilePath $PSScriptRoot\NewPlus.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\NewPlus"
|
||||||
Generate-FileComponents -fileListName "NewPlusAssetsFiles" -wxsFilePath $PSScriptRoot\NewPlus.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "NewPlusAssetsFiles" -wxsFilePath $PSScriptRoot\NewPlus.wxs
|
||||||
|
|
||||||
#Peek
|
#Peek
|
||||||
Generate-FileList -fileDepsJson "" -fileListName PeekAssetsFiles -wxsFilePath $PSScriptRoot\Peek.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Peek\"
|
Generate-FileList -fileDepsJson "" -fileListName PeekAssetsFiles -wxsFilePath $PSScriptRoot\Peek.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Peek\"
|
||||||
Generate-FileComponents -fileListName "PeekAssetsFiles" -wxsFilePath $PSScriptRoot\Peek.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "PeekAssetsFiles" -wxsFilePath $PSScriptRoot\Peek.wxs
|
||||||
|
|
||||||
#PowerRename
|
#PowerRename
|
||||||
Generate-FileList -fileDepsJson "" -fileListName PowerRenameAssetsFiles -wxsFilePath $PSScriptRoot\PowerRename.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\PowerRename\"
|
Generate-FileList -fileDepsJson "" -fileListName PowerRenameAssetsFiles -wxsFilePath $PSScriptRoot\PowerRename.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\PowerRename\"
|
||||||
Generate-FileComponents -fileListName "PowerRenameAssetsFiles" -wxsFilePath $PSScriptRoot\PowerRename.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "PowerRenameAssetsFiles" -wxsFilePath $PSScriptRoot\PowerRename.wxs
|
||||||
|
|
||||||
#RegistryPreview
|
#RegistryPreview
|
||||||
Generate-FileList -fileDepsJson "" -fileListName RegistryPreviewAssetsFiles -wxsFilePath $PSScriptRoot\RegistryPreview.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\RegistryPreview\"
|
Generate-FileList -fileDepsJson "" -fileListName RegistryPreviewAssetsFiles -wxsFilePath $PSScriptRoot\RegistryPreview.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\RegistryPreview\"
|
||||||
Generate-FileComponents -fileListName "RegistryPreviewAssetsFiles" -wxsFilePath $PSScriptRoot\RegistryPreview.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "RegistryPreviewAssetsFiles" -wxsFilePath $PSScriptRoot\RegistryPreview.wxs
|
||||||
|
|
||||||
#Run
|
#Run
|
||||||
Generate-FileList -fileDepsJson "" -fileListName launcherImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\PowerLauncher"
|
Generate-FileList -fileDepsJson "" -fileListName launcherImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\PowerLauncher"
|
||||||
Generate-FileComponents -fileListName "launcherImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "launcherImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
## Plugins
|
## Plugins
|
||||||
###Calculator
|
###Calculator
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Calculator\Microsoft.PowerToys.Run.Plugin.Calculator.deps.json" -fileListName calcComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Calculator\Microsoft.PowerToys.Run.Plugin.Calculator.deps.json" -fileListName calcComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName calcImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Calculator\Images"
|
Generate-FileList -fileDepsJson "" -fileListName calcImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Calculator\Images"
|
||||||
Generate-FileComponents -fileListName "calcComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "calcComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "calcImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "calcImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###Folder
|
###Folder
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Folder\Microsoft.Plugin.Folder.deps.json" -fileListName FolderComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Folder\Microsoft.Plugin.Folder.deps.json" -fileListName FolderComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName FolderImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Folder\Images"
|
Generate-FileList -fileDepsJson "" -fileListName FolderImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Folder\Images"
|
||||||
Generate-FileComponents -fileListName "FolderComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "FolderComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "FolderImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "FolderImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###Program
|
###Program
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Program\Microsoft.Plugin.Program.deps.json" -fileListName ProgramComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Program\Microsoft.Plugin.Program.deps.json" -fileListName ProgramComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName ProgramImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Program\Images"
|
Generate-FileList -fileDepsJson "" -fileListName ProgramImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Program\Images"
|
||||||
Generate-FileComponents -fileListName "ProgramComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ProgramComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "ProgramImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ProgramImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###Shell
|
###Shell
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Shell\Microsoft.Plugin.Shell.deps.json" -fileListName ShellComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Shell\Microsoft.Plugin.Shell.deps.json" -fileListName ShellComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName ShellImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Shell\Images"
|
Generate-FileList -fileDepsJson "" -fileListName ShellImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Shell\Images"
|
||||||
Generate-FileComponents -fileListName "ShellComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ShellComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "ShellImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ShellImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###Indexer
|
###Indexer
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Indexer\Microsoft.Plugin.Indexer.deps.json" -fileListName IndexerComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Indexer\Microsoft.Plugin.Indexer.deps.json" -fileListName IndexerComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName IndexerImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Indexer\Images"
|
Generate-FileList -fileDepsJson "" -fileListName IndexerImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Indexer\Images"
|
||||||
Generate-FileComponents -fileListName "IndexerComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "IndexerComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "IndexerImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "IndexerImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###UnitConverter
|
###UnitConverter
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\UnitConverter\Community.PowerToys.Run.Plugin.UnitConverter.deps.json" -fileListName UnitConvCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\UnitConverter\Community.PowerToys.Run.Plugin.UnitConverter.deps.json" -fileListName UnitConvCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName UnitConvImagesCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\UnitConverter\Images"
|
Generate-FileList -fileDepsJson "" -fileListName UnitConvImagesCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\UnitConverter\Images"
|
||||||
Generate-FileComponents -fileListName "UnitConvCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "UnitConvCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "UnitConvImagesCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "UnitConvImagesCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###WebSearch
|
###WebSearch
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WebSearch\Community.PowerToys.Run.Plugin.WebSearch.deps.json" -fileListName WebSrchCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WebSearch\Community.PowerToys.Run.Plugin.WebSearch.deps.json" -fileListName WebSrchCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName WebSrchImagesCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WebSearch\Images"
|
Generate-FileList -fileDepsJson "" -fileListName WebSrchImagesCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WebSearch\Images"
|
||||||
Generate-FileComponents -fileListName "WebSrchCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WebSrchCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "WebSrchImagesCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WebSrchImagesCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###History
|
###History
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\History\Microsoft.PowerToys.Run.Plugin.History.deps.json" -fileListName HistoryPluginComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\History\Microsoft.PowerToys.Run.Plugin.History.deps.json" -fileListName HistoryPluginComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName HistoryPluginImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\History\Images"
|
Generate-FileList -fileDepsJson "" -fileListName HistoryPluginImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\History\Images"
|
||||||
Generate-FileComponents -fileListName "HistoryPluginComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "HistoryPluginComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "HistoryPluginImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "HistoryPluginImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###Uri
|
###Uri
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Uri\Microsoft.Plugin.Uri.deps.json" -fileListName UriComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Uri\Microsoft.Plugin.Uri.deps.json" -fileListName UriComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName UriImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Uri\Images"
|
Generate-FileList -fileDepsJson "" -fileListName UriImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Uri\Images"
|
||||||
Generate-FileComponents -fileListName "UriComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "UriComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "UriImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "UriImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###VSCodeWorkspaces
|
###VSCodeWorkspaces
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\VSCodeWorkspaces\Community.PowerToys.Run.Plugin.VSCodeWorkspaces.deps.json" -fileListName VSCWrkCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\VSCodeWorkspaces\Community.PowerToys.Run.Plugin.VSCodeWorkspaces.deps.json" -fileListName VSCWrkCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName VSCWrkImagesCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\VSCodeWorkspaces\Images"
|
Generate-FileList -fileDepsJson "" -fileListName VSCWrkImagesCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\VSCodeWorkspaces\Images"
|
||||||
Generate-FileComponents -fileListName "VSCWrkCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "VSCWrkCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "VSCWrkImagesCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "VSCWrkImagesCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###WindowWalker
|
###WindowWalker
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowWalker\Microsoft.Plugin.WindowWalker.deps.json" -fileListName WindowWlkrCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowWalker\Microsoft.Plugin.WindowWalker.deps.json" -fileListName WindowWlkrCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName WindowWlkrImagesCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowWalker\Images"
|
Generate-FileList -fileDepsJson "" -fileListName WindowWlkrImagesCompFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowWalker\Images"
|
||||||
Generate-FileComponents -fileListName "WindowWlkrCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WindowWlkrCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "WindowWlkrImagesCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WindowWlkrImagesCompFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###OneNote
|
###OneNote
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\OneNote\Microsoft.PowerToys.Run.Plugin.OneNote.deps.json" -fileListName OneNoteComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\OneNote\Microsoft.PowerToys.Run.Plugin.OneNote.deps.json" -fileListName OneNoteComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName OneNoteImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\OneNote\Images"
|
Generate-FileList -fileDepsJson "" -fileListName OneNoteImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\OneNote\Images"
|
||||||
Generate-FileComponents -fileListName "OneNoteComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "OneNoteComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "OneNoteImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "OneNoteImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###Registry
|
###Registry
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Registry\Microsoft.PowerToys.Run.Plugin.Registry.deps.json" -fileListName RegistryComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Registry\Microsoft.PowerToys.Run.Plugin.Registry.deps.json" -fileListName RegistryComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName RegistryImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Registry\Images"
|
Generate-FileList -fileDepsJson "" -fileListName RegistryImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Registry\Images"
|
||||||
Generate-FileComponents -fileListName "RegistryComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "RegistryComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "RegistryImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "RegistryImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###Service
|
###Service
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Service\Microsoft.PowerToys.Run.Plugin.Service.deps.json" -fileListName ServiceComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Service\Microsoft.PowerToys.Run.Plugin.Service.deps.json" -fileListName ServiceComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName ServiceImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Service\Images"
|
Generate-FileList -fileDepsJson "" -fileListName ServiceImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\Service\Images"
|
||||||
Generate-FileComponents -fileListName "ServiceComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ServiceComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "ServiceImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ServiceImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###System
|
###System
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\System\Microsoft.PowerToys.Run.Plugin.System.deps.json" -fileListName SystemComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\System\Microsoft.PowerToys.Run.Plugin.System.deps.json" -fileListName SystemComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName SystemImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\System\Images"
|
Generate-FileList -fileDepsJson "" -fileListName SystemImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\System\Images"
|
||||||
Generate-FileComponents -fileListName "SystemComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "SystemComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "SystemImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "SystemImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###TimeDate
|
###TimeDate
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\TimeDate\Microsoft.PowerToys.Run.Plugin.TimeDate.deps.json" -fileListName TimeDateComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\TimeDate\Microsoft.PowerToys.Run.Plugin.TimeDate.deps.json" -fileListName TimeDateComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName TimeDateImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\TimeDate\Images"
|
Generate-FileList -fileDepsJson "" -fileListName TimeDateImagesComponentFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\TimeDate\Images"
|
||||||
Generate-FileComponents -fileListName "TimeDateComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "TimeDateComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "TimeDateImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "TimeDateImagesComponentFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###WindowsSettings
|
###WindowsSettings
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowsSettings\Microsoft.PowerToys.Run.Plugin.WindowsSettings.deps.json" -fileListName WinSetCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowsSettings\Microsoft.PowerToys.Run.Plugin.WindowsSettings.deps.json" -fileListName WinSetCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName WinSetImagesCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowsSettings\Images"
|
Generate-FileList -fileDepsJson "" -fileListName WinSetImagesCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowsSettings\Images"
|
||||||
Generate-FileComponents -fileListName "WinSetCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WinSetCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "WinSetImagesCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WinSetImagesCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###WindowsTerminal
|
###WindowsTerminal
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowsTerminal\Microsoft.PowerToys.Run.Plugin.WindowsTerminal.deps.json" -fileListName WinTermCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowsTerminal\Microsoft.PowerToys.Run.Plugin.WindowsTerminal.deps.json" -fileListName WinTermCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName WinTermImagesCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowsTerminal\Images"
|
Generate-FileList -fileDepsJson "" -fileListName WinTermImagesCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\WindowsTerminal\Images"
|
||||||
Generate-FileComponents -fileListName "WinTermCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WinTermCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "WinTermImagesCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WinTermImagesCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###PowerToys
|
###PowerToys
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\PowerToys\Microsoft.PowerToys.Run.Plugin.PowerToys.deps.json" -fileListName PowerToysCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\PowerToys\Microsoft.PowerToys.Run.Plugin.PowerToys.deps.json" -fileListName PowerToysCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName PowerToysImagesCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\PowerToys\Images"
|
Generate-FileList -fileDepsJson "" -fileListName PowerToysImagesCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\PowerToys\Images"
|
||||||
Generate-FileComponents -fileListName "PowerToysCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "PowerToysCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "PowerToysImagesCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "PowerToysImagesCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
###ValueGenerator
|
###ValueGenerator
|
||||||
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\ValueGenerator\Community.PowerToys.Run.Plugin.ValueGenerator.deps.json" -fileListName ValueGeneratorCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
Generate-FileList -fileDepsJson "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\ValueGenerator\Community.PowerToys.Run.Plugin.ValueGenerator.deps.json" -fileListName ValueGeneratorCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -isLauncherPlugin 1
|
||||||
Generate-FileList -fileDepsJson "" -fileListName ValueGeneratorImagesCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\ValueGenerator\Images"
|
Generate-FileList -fileDepsJson "" -fileListName ValueGeneratorImagesCmpFiles -wxsFilePath $PSScriptRoot\Run.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\RunPlugins\ValueGenerator\Images"
|
||||||
Generate-FileComponents -fileListName "ValueGeneratorCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ValueGeneratorCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
Generate-FileComponents -fileListName "ValueGeneratorImagesCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ValueGeneratorImagesCmpFiles" -wxsFilePath $PSScriptRoot\Run.wxs
|
||||||
## Plugins
|
## Plugins
|
||||||
|
|
||||||
#ShortcutGuide
|
#ShortcutGuide
|
||||||
Generate-FileList -fileDepsJson "" -fileListName ShortcutGuideSvgFiles -wxsFilePath $PSScriptRoot\ShortcutGuide.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\ShortcutGuide\"
|
Generate-FileList -fileDepsJson "" -fileListName ShortcutGuideSvgFiles -wxsFilePath $PSScriptRoot\ShortcutGuide.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\ShortcutGuide\"
|
||||||
Generate-FileComponents -fileListName "ShortcutGuideSvgFiles" -wxsFilePath $PSScriptRoot\ShortcutGuide.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "ShortcutGuideSvgFiles" -wxsFilePath $PSScriptRoot\ShortcutGuide.wxs
|
||||||
|
|
||||||
#Settings
|
#Settings
|
||||||
Generate-FileList -fileDepsJson "" -fileListName SettingsV2AssetsFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\"
|
Generate-FileList -fileDepsJson "" -fileListName SettingsV2AssetsFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\"
|
||||||
Generate-FileList -fileDepsJson "" -fileListName SettingsV2AssetsModulesFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\Modules\"
|
Generate-FileList -fileDepsJson "" -fileListName SettingsV2AssetsModulesFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\Modules\"
|
||||||
Generate-FileList -fileDepsJson "" -fileListName SettingsV2OOBEAssetsModulesFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\Modules\OOBE\"
|
Generate-FileList -fileDepsJson "" -fileListName SettingsV2OOBEAssetsModulesFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\Modules\OOBE\"
|
||||||
Generate-FileList -fileDepsJson "" -fileListName SettingsV2OOBEAssetsFluentIconsFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\Icons\"
|
Generate-FileList -fileDepsJson "" -fileListName SettingsV2OOBEAssetsFluentIconsFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\Icons\"
|
||||||
Generate-FileComponents -fileListName "SettingsV2AssetsFiles" -wxsFilePath $PSScriptRoot\Settings.wxs -regroot $registryroot
|
Generate-FileList -fileDepsJson "" -fileListName SettingsV2IconsModelsFiles -wxsFilePath $PSScriptRoot\Settings.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\WinUI3Apps\Assets\Settings\Icons\Models\"
|
||||||
Generate-FileComponents -fileListName "SettingsV2AssetsModulesFiles" -wxsFilePath $PSScriptRoot\Settings.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "SettingsV2AssetsFiles" -wxsFilePath $PSScriptRoot\Settings.wxs
|
||||||
Generate-FileComponents -fileListName "SettingsV2OOBEAssetsModulesFiles" -wxsFilePath $PSScriptRoot\Settings.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "SettingsV2AssetsModulesFiles" -wxsFilePath $PSScriptRoot\Settings.wxs
|
||||||
Generate-FileComponents -fileListName "SettingsV2OOBEAssetsFluentIconsFiles" -wxsFilePath $PSScriptRoot\Settings.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "SettingsV2OOBEAssetsModulesFiles" -wxsFilePath $PSScriptRoot\Settings.wxs
|
||||||
|
Generate-FileComponents -fileListName "SettingsV2OOBEAssetsFluentIconsFiles" -wxsFilePath $PSScriptRoot\Settings.wxs
|
||||||
|
Generate-FileComponents -fileListName "SettingsV2IconsModelsFiles" -wxsFilePath $PSScriptRoot\Settings.wxs
|
||||||
|
|
||||||
#Workspaces
|
#Workspaces
|
||||||
Generate-FileList -fileDepsJson "" -fileListName WorkspacesImagesComponentFiles -wxsFilePath $PSScriptRoot\Workspaces.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\Workspaces\"
|
Generate-FileList -fileDepsJson "" -fileListName WorkspacesImagesComponentFiles -wxsFilePath $PSScriptRoot\Workspaces.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\Assets\Workspaces\"
|
||||||
Generate-FileComponents -fileListName "WorkspacesImagesComponentFiles" -wxsFilePath $PSScriptRoot\Workspaces.wxs -regroot $registryroot
|
Generate-FileComponents -fileListName "WorkspacesImagesComponentFiles" -wxsFilePath $PSScriptRoot\Workspaces.wxs
|
||||||
|
|
||||||
|
#DSC Resources - JSON manifest files in DSCModules subfolder
|
||||||
|
Generate-FileList -fileDepsJson "" -fileListName DscJsonFiles -wxsFilePath $PSScriptRoot\DscResources.wxs -depsPath "$PSScriptRoot..\..\..\$platform\Release\DSCModules\"
|
||||||
|
Generate-FileComponents -fileListName "DscJsonFiles" -wxsFilePath $PSScriptRoot\DscResources.wxs
|
||||||
|
|||||||
@@ -1,102 +0,0 @@
|
|||||||
[CmdletBinding()]
|
|
||||||
Param(
|
|
||||||
[Parameter(Mandatory = $True)]
|
|
||||||
[string]$dscWxsFile,
|
|
||||||
[Parameter(Mandatory = $True)]
|
|
||||||
[string]$Platform,
|
|
||||||
[Parameter(Mandatory = $True)]
|
|
||||||
[string]$Configuration
|
|
||||||
)
|
|
||||||
|
|
||||||
$ErrorActionPreference = 'Stop'
|
|
||||||
|
|
||||||
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
||||||
|
|
||||||
# Find build output directory
|
|
||||||
$buildOutputDir = Join-Path $scriptDir "..\..\$Platform\$Configuration"
|
|
||||||
|
|
||||||
if (-not (Test-Path $buildOutputDir)) {
|
|
||||||
Write-Error "Build output directory not found: '$buildOutputDir'"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
# Find all DSC manifest JSON files
|
|
||||||
$dscFiles = Get-ChildItem -Path $buildOutputDir -Filter "microsoft.powertoys.*.settings.dsc.resource.json" -File
|
|
||||||
|
|
||||||
if (-not $dscFiles) {
|
|
||||||
Write-Warning "No DSC manifest files found in '$buildOutputDir'"
|
|
||||||
# Create empty component group
|
|
||||||
$wxsContent = @"
|
|
||||||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
||||||
|
|
||||||
<?include `$(sys.CURRENTDIR)\Common.wxi?>
|
|
||||||
|
|
||||||
<Fragment>
|
|
||||||
<ComponentGroup Id="DscResourcesComponentGroup">
|
|
||||||
</ComponentGroup>
|
|
||||||
</Fragment>
|
|
||||||
</Wix>
|
|
||||||
"@
|
|
||||||
Set-Content -Path $dscWxsFile -Value $wxsContent
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "Found $($dscFiles.Count) DSC manifest file(s)"
|
|
||||||
|
|
||||||
# Generate WiX fragment
|
|
||||||
$wxsContent = @"
|
|
||||||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
|
||||||
|
|
||||||
<?include `$(sys.CURRENTDIR)\Common.wxi?>
|
|
||||||
|
|
||||||
<Fragment>
|
|
||||||
<DirectoryRef Id="DSCModulesReferenceFolder">
|
|
||||||
"@
|
|
||||||
|
|
||||||
$componentRefs = @()
|
|
||||||
|
|
||||||
foreach ($file in $dscFiles) {
|
|
||||||
$componentId = "DscResource_" + ($file.BaseName -replace '[^A-Za-z0-9_]', '_')
|
|
||||||
$fileId = $componentId + "_File"
|
|
||||||
$guid = [System.Guid]::NewGuid().ToString().ToUpper()
|
|
||||||
|
|
||||||
$componentRefs += $componentId
|
|
||||||
|
|
||||||
$wxsContent += @"
|
|
||||||
|
|
||||||
<Component Id="$componentId" Guid="{$guid}" Directory="DSCModulesReferenceFolder">
|
|
||||||
<RegistryKey Root="`$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
|
|
||||||
<RegistryValue Type="string" Name="$componentId" Value="" KeyPath="yes"/>
|
|
||||||
</RegistryKey>
|
|
||||||
<File Id="$fileId" Source="`$(var.BinDir)$($file.Name)" Vital="no"/>
|
|
||||||
</Component>
|
|
||||||
"@
|
|
||||||
}
|
|
||||||
|
|
||||||
$wxsContent += @"
|
|
||||||
|
|
||||||
</DirectoryRef>
|
|
||||||
</Fragment>
|
|
||||||
|
|
||||||
<Fragment>
|
|
||||||
<ComponentGroup Id="DscResourcesComponentGroup">
|
|
||||||
"@
|
|
||||||
|
|
||||||
foreach ($componentId in $componentRefs) {
|
|
||||||
$wxsContent += @"
|
|
||||||
|
|
||||||
<ComponentRef Id="$componentId"/>
|
|
||||||
"@
|
|
||||||
}
|
|
||||||
|
|
||||||
$wxsContent += @"
|
|
||||||
|
|
||||||
</ComponentGroup>
|
|
||||||
</Fragment>
|
|
||||||
</Wix>
|
|
||||||
"@
|
|
||||||
|
|
||||||
# Write the WiX file
|
|
||||||
Set-Content -Path $dscWxsFile -Value $wxsContent
|
|
||||||
|
|
||||||
Write-Host "Generated DSC resources WiX fragment: '$dscWxsFile'"
|
|
||||||
@@ -36,31 +36,34 @@
|
|||||||
</Capabilities>
|
</Capabilities>
|
||||||
|
|
||||||
<Applications>
|
<Applications>
|
||||||
<Application Id="PowerToys.OCR" Executable="PowerToys.PowerOCR.exe" uap10:TrustLevel="mediumIL" uap10:RuntimeBehavior="win32App">
|
<Application Id="PowerToys.OCR" Executable="PowerToys.PowerOCR.exe" EntryPoint="Windows.FullTrustApplication">
|
||||||
<uap:VisualElements
|
<uap:VisualElements
|
||||||
DisplayName="PowerToys.OCR"
|
DisplayName="PowerToys.OCR"
|
||||||
Description="PowerToys OCR Module"
|
Description="PowerToys OCR Module"
|
||||||
BackgroundColor="transparent"
|
BackgroundColor="transparent"
|
||||||
Square150x150Logo="Images\Square150x150Logo.png"
|
Square150x150Logo="Images\Square150x150Logo.png"
|
||||||
Square44x44Logo="Images\Square44x44Logo.png">
|
Square44x44Logo="Images\Square44x44Logo.png"
|
||||||
|
AppListEntry="none">
|
||||||
</uap:VisualElements>
|
</uap:VisualElements>
|
||||||
</Application>
|
</Application>
|
||||||
<Application Id="PowerToys.SettingsUI" Executable="PowerToys.Settings.exe" uap10:TrustLevel="mediumIL" uap10:RuntimeBehavior="win32App">
|
<Application Id="PowerToys.SettingsUI" Executable="WinUI3Apps\PowerToys.Settings.exe" EntryPoint="Windows.FullTrustApplication">
|
||||||
<uap:VisualElements
|
<uap:VisualElements
|
||||||
DisplayName="PowerToys.SettingsUI"
|
DisplayName="PowerToys.SettingsUI"
|
||||||
Description="PowerToys Settings UI"
|
Description="PowerToys Settings UI"
|
||||||
BackgroundColor="transparent"
|
BackgroundColor="transparent"
|
||||||
Square150x150Logo="Images\Square150x150Logo.png"
|
Square150x150Logo="Images\Square150x150Logo.png"
|
||||||
Square44x44Logo="Images\Square44x44Logo.png">
|
Square44x44Logo="Images\Square44x44Logo.png"
|
||||||
|
AppListEntry="none">
|
||||||
</uap:VisualElements>
|
</uap:VisualElements>
|
||||||
</Application>
|
</Application>
|
||||||
<Application Id="PowerToys.ImageResizerUI" Executable="WinUI3Apps\PowerToys.ImageResizer.exe" uap10:TrustLevel="mediumIL" uap10:RuntimeBehavior="win32App">
|
<Application Id="PowerToys.ImageResizerUI" Executable="WinUI3Apps\PowerToys.ImageResizer.exe" EntryPoint="Windows.FullTrustApplication">
|
||||||
<uap:VisualElements
|
<uap:VisualElements
|
||||||
DisplayName="PowerToys.ImageResizer"
|
DisplayName="PowerToys.ImageResizer"
|
||||||
Description="PowerToys Image Resizer UI"
|
Description="PowerToys Image Resizer UI"
|
||||||
BackgroundColor="transparent"
|
BackgroundColor="transparent"
|
||||||
Square150x150Logo="Images\Square150x150Logo.png"
|
Square150x150Logo="Images\Square150x150Logo.png"
|
||||||
Square44x44Logo="Images\Square44x44Logo.png">
|
Square44x44Logo="Images\Square44x44Logo.png"
|
||||||
|
AppListEntry="none">
|
||||||
</uap:VisualElements>
|
</uap:VisualElements>
|
||||||
</Application>
|
</Application>
|
||||||
</Applications>
|
</Applications>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<CIBuildParam Condition="'$(CIBuild)' != 'true'"></CIBuildParam>
|
<CIBuildParam Condition="'$(CIBuild)' != 'true'"></CIBuildParam>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Exec Command="powershell -NonInteractive -ExecutionPolicy Bypass -File "$(MSBuildThisFileDirectory)BuildSparsePackage.ps1" -Platform $(Platform) -Configuration $(Configuration) $(NoSignParam) $(CIBuildParam)"
|
<Exec Command="pwsh -NonInteractive -ExecutionPolicy Bypass -File "$(MSBuildThisFileDirectory)BuildSparsePackage.ps1" -Platform $(Platform) -Configuration $(Configuration) $(NoSignParam) $(CIBuildParam)"
|
||||||
ContinueOnError="false"
|
ContinueOnError="false"
|
||||||
WorkingDirectory="$(MSBuildThisFileDirectory)" />
|
WorkingDirectory="$(MSBuildThisFileDirectory)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|||||||
@@ -112,6 +112,10 @@ namespace winrt::PowerToys::GPOWrapper::implementation
|
|||||||
{
|
{
|
||||||
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredMousePointerCrosshairsEnabledValue());
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredMousePointerCrosshairsEnabledValue());
|
||||||
}
|
}
|
||||||
|
GpoRuleConfigured GPOWrapper::GetConfiguredCursorWrapEnabledValue()
|
||||||
|
{
|
||||||
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredCursorWrapEnabledValue());
|
||||||
|
}
|
||||||
GpoRuleConfigured GPOWrapper::GetConfiguredPowerRenameEnabledValue()
|
GpoRuleConfigured GPOWrapper::GetConfiguredPowerRenameEnabledValue()
|
||||||
{
|
{
|
||||||
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredPowerRenameEnabledValue());
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredPowerRenameEnabledValue());
|
||||||
@@ -192,6 +196,34 @@ namespace winrt::PowerToys::GPOWrapper::implementation
|
|||||||
{
|
{
|
||||||
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteOnlineAIModelsValue());
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteOnlineAIModelsValue());
|
||||||
}
|
}
|
||||||
|
GpoRuleConfigured GPOWrapper::GetAllowedAdvancedPasteOpenAIValue()
|
||||||
|
{
|
||||||
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteOpenAIValue());
|
||||||
|
}
|
||||||
|
GpoRuleConfigured GPOWrapper::GetAllowedAdvancedPasteAzureOpenAIValue()
|
||||||
|
{
|
||||||
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteAzureOpenAIValue());
|
||||||
|
}
|
||||||
|
GpoRuleConfigured GPOWrapper::GetAllowedAdvancedPasteAzureAIInferenceValue()
|
||||||
|
{
|
||||||
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteAzureAIInferenceValue());
|
||||||
|
}
|
||||||
|
GpoRuleConfigured GPOWrapper::GetAllowedAdvancedPasteMistralValue()
|
||||||
|
{
|
||||||
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteMistralValue());
|
||||||
|
}
|
||||||
|
GpoRuleConfigured GPOWrapper::GetAllowedAdvancedPasteGoogleValue()
|
||||||
|
{
|
||||||
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteGoogleValue());
|
||||||
|
}
|
||||||
|
GpoRuleConfigured GPOWrapper::GetAllowedAdvancedPasteOllamaValue()
|
||||||
|
{
|
||||||
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteOllamaValue());
|
||||||
|
}
|
||||||
|
GpoRuleConfigured GPOWrapper::GetAllowedAdvancedPasteFoundryLocalValue()
|
||||||
|
{
|
||||||
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowedAdvancedPasteFoundryLocalValue());
|
||||||
|
}
|
||||||
GpoRuleConfigured GPOWrapper::GetConfiguredNewPlusEnabledValue()
|
GpoRuleConfigured GPOWrapper::GetConfiguredNewPlusEnabledValue()
|
||||||
{
|
{
|
||||||
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredNewPlusEnabledValue());
|
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredNewPlusEnabledValue());
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ namespace winrt::PowerToys::GPOWrapper::implementation
|
|||||||
static GpoRuleConfigured GetConfiguredMouseHighlighterEnabledValue();
|
static GpoRuleConfigured GetConfiguredMouseHighlighterEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredMouseJumpEnabledValue();
|
static GpoRuleConfigured GetConfiguredMouseJumpEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredMousePointerCrosshairsEnabledValue();
|
static GpoRuleConfigured GetConfiguredMousePointerCrosshairsEnabledValue();
|
||||||
|
static GpoRuleConfigured GetConfiguredCursorWrapEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredPowerRenameEnabledValue();
|
static GpoRuleConfigured GetConfiguredPowerRenameEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredPowerLauncherEnabledValue();
|
static GpoRuleConfigured GetConfiguredPowerLauncherEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredQuickAccentEnabledValue();
|
static GpoRuleConfigured GetConfiguredQuickAccentEnabledValue();
|
||||||
@@ -54,6 +55,13 @@ namespace winrt::PowerToys::GPOWrapper::implementation
|
|||||||
static GpoRuleConfigured GetConfiguredQoiPreviewEnabledValue();
|
static GpoRuleConfigured GetConfiguredQoiPreviewEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredQoiThumbnailsEnabledValue();
|
static GpoRuleConfigured GetConfiguredQoiThumbnailsEnabledValue();
|
||||||
static GpoRuleConfigured GetAllowedAdvancedPasteOnlineAIModelsValue();
|
static GpoRuleConfigured GetAllowedAdvancedPasteOnlineAIModelsValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteOpenAIValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteAzureOpenAIValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteAzureAIInferenceValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteMistralValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteGoogleValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteOllamaValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteFoundryLocalValue();
|
||||||
static GpoRuleConfigured GetConfiguredNewPlusEnabledValue();
|
static GpoRuleConfigured GetConfiguredNewPlusEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredWorkspacesEnabledValue();
|
static GpoRuleConfigured GetConfiguredWorkspacesEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredMwbClipboardSharingEnabledValue();
|
static GpoRuleConfigured GetConfiguredMwbClipboardSharingEnabledValue();
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ namespace PowerToys
|
|||||||
static GpoRuleConfigured GetConfiguredMouseHighlighterEnabledValue();
|
static GpoRuleConfigured GetConfiguredMouseHighlighterEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredMouseJumpEnabledValue();
|
static GpoRuleConfigured GetConfiguredMouseJumpEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredMousePointerCrosshairsEnabledValue();
|
static GpoRuleConfigured GetConfiguredMousePointerCrosshairsEnabledValue();
|
||||||
|
static GpoRuleConfigured GetConfiguredCursorWrapEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredMouseWithoutBordersEnabledValue();
|
static GpoRuleConfigured GetConfiguredMouseWithoutBordersEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredPowerRenameEnabledValue();
|
static GpoRuleConfigured GetConfiguredPowerRenameEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredPowerLauncherEnabledValue();
|
static GpoRuleConfigured GetConfiguredPowerLauncherEnabledValue();
|
||||||
@@ -58,6 +59,13 @@ namespace PowerToys
|
|||||||
static GpoRuleConfigured GetConfiguredQoiPreviewEnabledValue();
|
static GpoRuleConfigured GetConfiguredQoiPreviewEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredQoiThumbnailsEnabledValue();
|
static GpoRuleConfigured GetConfiguredQoiThumbnailsEnabledValue();
|
||||||
static GpoRuleConfigured GetAllowedAdvancedPasteOnlineAIModelsValue();
|
static GpoRuleConfigured GetAllowedAdvancedPasteOnlineAIModelsValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteOpenAIValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteAzureOpenAIValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteAzureAIInferenceValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteMistralValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteGoogleValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteOllamaValue();
|
||||||
|
static GpoRuleConfigured GetAllowedAdvancedPasteFoundryLocalValue();
|
||||||
static GpoRuleConfigured GetConfiguredNewPlusEnabledValue();
|
static GpoRuleConfigured GetConfiguredNewPlusEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredWorkspacesEnabledValue();
|
static GpoRuleConfigured GetConfiguredWorkspacesEnabledValue();
|
||||||
static GpoRuleConfigured GetConfiguredMwbClipboardSharingEnabledValue();
|
static GpoRuleConfigured GetConfiguredMwbClipboardSharingEnabledValue();
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
namespace LanguageModelProvider.FoundryLocal;
|
||||||
|
|
||||||
|
internal sealed record FoundryCachedModel(string Name, string? Id);
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider.FoundryLocal;
|
||||||
|
|
||||||
|
internal sealed record FoundryCatalogModel
|
||||||
|
{
|
||||||
|
[JsonPropertyName("name")]
|
||||||
|
public string Name { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("displayName")]
|
||||||
|
public string DisplayName { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("providerType")]
|
||||||
|
public string ProviderType { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("uri")]
|
||||||
|
public string Uri { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("version")]
|
||||||
|
public string Version { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("modelType")]
|
||||||
|
public string ModelType { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("promptTemplate")]
|
||||||
|
public PromptTemplate PromptTemplate { get; init; } = default!;
|
||||||
|
|
||||||
|
[JsonPropertyName("publisher")]
|
||||||
|
public string Publisher { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("task")]
|
||||||
|
public string Task { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("runtime")]
|
||||||
|
public Runtime Runtime { get; init; } = default!;
|
||||||
|
|
||||||
|
[JsonPropertyName("fileSizeMb")]
|
||||||
|
public long FileSizeMb { get; init; }
|
||||||
|
|
||||||
|
[JsonPropertyName("modelSettings")]
|
||||||
|
public ModelSettings ModelSettings { get; init; } = default!;
|
||||||
|
|
||||||
|
[JsonPropertyName("alias")]
|
||||||
|
public string Alias { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("supportsToolCalling")]
|
||||||
|
public bool SupportsToolCalling { get; init; }
|
||||||
|
|
||||||
|
[JsonPropertyName("license")]
|
||||||
|
public string License { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("licenseDescription")]
|
||||||
|
public string LicenseDescription { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("parentModelUri")]
|
||||||
|
public string ParentModelUri { get; init; } = string.Empty;
|
||||||
|
}
|
||||||
279
src/common/LanguageModelProvider/FoundryLocal/FoundryClient.cs
Normal file
@@ -0,0 +1,279 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using ManagedCommon;
|
||||||
|
using Microsoft.AI.Foundry.Local;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider.FoundryLocal;
|
||||||
|
|
||||||
|
internal sealed class FoundryClient
|
||||||
|
{
|
||||||
|
public static async Task<FoundryClient?> CreateAsync()
|
||||||
|
{
|
||||||
|
// First attempt with current environment
|
||||||
|
var client = await TryCreateClientAsync().ConfigureAwait(false);
|
||||||
|
if (client != null)
|
||||||
|
{
|
||||||
|
return client;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If failed, refresh PATH from registry and retry once
|
||||||
|
// This handles cases where PowerToys was launched by MSI installer.
|
||||||
|
Logger.LogInfo("[FoundryClient] First attempt failed, refreshing PATH and retrying");
|
||||||
|
RefreshEnvironmentPath();
|
||||||
|
|
||||||
|
return await TryCreateClientAsync().ConfigureAwait(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static async Task<FoundryClient?> TryCreateClientAsync()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Logger.LogInfo("[FoundryClient] Creating Foundry Local client");
|
||||||
|
|
||||||
|
var manager = new FoundryLocalManager();
|
||||||
|
|
||||||
|
// Check if service is already running
|
||||||
|
if (manager.IsServiceRunning)
|
||||||
|
{
|
||||||
|
Logger.LogInfo("[FoundryClient] Foundry service is already running");
|
||||||
|
return new FoundryClient(manager);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Start the service using SDK's method
|
||||||
|
Logger.LogInfo("[FoundryClient] Starting Foundry service using manager.StartServiceAsync()");
|
||||||
|
await manager.StartServiceAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
|
Logger.LogInfo("[FoundryClient] Foundry service started successfully");
|
||||||
|
return new FoundryClient(manager);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.LogError($"[FoundryClient] Error creating client: {ex.Message}");
|
||||||
|
if (ex.InnerException != null)
|
||||||
|
{
|
||||||
|
Logger.LogError($"[FoundryClient] Inner exception: {ex.InnerException.Message}");
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private readonly FoundryLocalManager _foundryManager;
|
||||||
|
private readonly List<FoundryCatalogModel> _catalogModels = [];
|
||||||
|
|
||||||
|
private FoundryClient(FoundryLocalManager foundryManager)
|
||||||
|
{
|
||||||
|
_foundryManager = foundryManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Task<string?> GetServiceUrl()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return Task.FromResult(_foundryManager.Endpoint?.ToString());
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return Task.FromResult<string?>(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Uri? GetServiceUri()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return _foundryManager.ServiceUri;
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<List<FoundryCatalogModel>> ListCatalogModels()
|
||||||
|
{
|
||||||
|
if (_catalogModels.Count > 0)
|
||||||
|
{
|
||||||
|
return _catalogModels;
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Logger.LogInfo("[FoundryClient] Listing catalog models");
|
||||||
|
var models = await _foundryManager.ListCatalogModelsAsync().ConfigureAwait(false);
|
||||||
|
|
||||||
|
if (models != null)
|
||||||
|
{
|
||||||
|
foreach (var model in models)
|
||||||
|
{
|
||||||
|
_catalogModels.Add(new FoundryCatalogModel
|
||||||
|
{
|
||||||
|
Name = model.ModelId ?? string.Empty,
|
||||||
|
DisplayName = model.DisplayName ?? string.Empty,
|
||||||
|
ProviderType = model.ProviderType ?? string.Empty,
|
||||||
|
Uri = model.Uri ?? string.Empty,
|
||||||
|
Version = model.Version ?? string.Empty,
|
||||||
|
ModelType = model.ModelType ?? string.Empty,
|
||||||
|
Publisher = model.Publisher ?? string.Empty,
|
||||||
|
Task = model.Task ?? string.Empty,
|
||||||
|
FileSizeMb = model.FileSizeMb,
|
||||||
|
Alias = model.Alias ?? string.Empty,
|
||||||
|
License = model.License ?? string.Empty,
|
||||||
|
LicenseDescription = model.LicenseDescription ?? string.Empty,
|
||||||
|
ParentModelUri = model.ParentModelUri ?? string.Empty,
|
||||||
|
SupportsToolCalling = model.SupportsToolCalling,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
Logger.LogInfo($"[FoundryClient] Found {_catalogModels.Count} catalog models");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.LogError($"[FoundryClient] Error listing catalog models: {ex.Message}");
|
||||||
|
|
||||||
|
// Surfacing errors here prevents listing other providers; swallow and return cached list instead.
|
||||||
|
}
|
||||||
|
|
||||||
|
return _catalogModels;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<List<FoundryCachedModel>> ListCachedModels()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Logger.LogInfo("[FoundryClient] Listing cached models");
|
||||||
|
var cachedModels = await _foundryManager.ListCachedModelsAsync().ConfigureAwait(false);
|
||||||
|
var catalogModels = await ListCatalogModels().ConfigureAwait(false);
|
||||||
|
|
||||||
|
List<FoundryCachedModel> models = [];
|
||||||
|
|
||||||
|
foreach (var model in cachedModels)
|
||||||
|
{
|
||||||
|
var catalogModel = catalogModels.FirstOrDefault(m => m.Name == model.ModelId);
|
||||||
|
var alias = catalogModel?.Alias ?? model.Alias;
|
||||||
|
models.Add(new FoundryCachedModel(model.ModelId ?? string.Empty, alias));
|
||||||
|
}
|
||||||
|
|
||||||
|
Logger.LogInfo($"[FoundryClient] Found {models.Count} cached models");
|
||||||
|
return models;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.LogError($"[FoundryClient] Error listing cached models: {ex.Message}");
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<bool> IsModelLoaded(string modelId)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var loadedModels = await _foundryManager.ListLoadedModelsAsync().ConfigureAwait(false);
|
||||||
|
var isLoaded = loadedModels.Any(m => m.ModelId == modelId);
|
||||||
|
Logger.LogInfo($"[FoundryClient] IsModelLoaded({modelId}): {isLoaded}");
|
||||||
|
Logger.LogInfo($"[FoundryClient] Loaded models: {string.Join(", ", loadedModels.Select(m => m.ModelId))}");
|
||||||
|
return isLoaded;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.LogError($"[FoundryClient] IsModelLoaded exception: {ex.Message}");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<bool> EnsureModelLoaded(string modelId)
|
||||||
|
{
|
||||||
|
Logger.LogInfo($"[FoundryClient] EnsureModelLoaded called with: {modelId}");
|
||||||
|
|
||||||
|
// Check if already loaded
|
||||||
|
if (await IsModelLoaded(modelId).ConfigureAwait(false))
|
||||||
|
{
|
||||||
|
Logger.LogInfo($"[FoundryClient] Model already loaded: {modelId}");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Load the model
|
||||||
|
Logger.LogInfo($"[FoundryClient] Loading model: {modelId}");
|
||||||
|
await _foundryManager.LoadModelAsync(modelId).ConfigureAwait(false);
|
||||||
|
|
||||||
|
// Verify it's loaded
|
||||||
|
var loaded = await IsModelLoaded(modelId).ConfigureAwait(false);
|
||||||
|
Logger.LogInfo($"[FoundryClient] Model load result: {loaded}");
|
||||||
|
return loaded;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task EnsureRunning()
|
||||||
|
{
|
||||||
|
if (!_foundryManager.IsServiceRunning)
|
||||||
|
{
|
||||||
|
await _foundryManager.StartServiceAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Refreshes the PATH environment variable from the system registry.
|
||||||
|
/// This is necessary when tools are installed while PowerToys is running,
|
||||||
|
/// as the installer updates the system PATH but running processes don't see the change.
|
||||||
|
/// </summary>
|
||||||
|
private static void RefreshEnvironmentPath()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Logger.LogInfo("[FoundryClient] Refreshing PATH environment variable from system");
|
||||||
|
|
||||||
|
var currentPath = Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.Process) ?? string.Empty;
|
||||||
|
var machinePath = Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.Machine) ?? string.Empty;
|
||||||
|
var userPath = Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.User) ?? string.Empty;
|
||||||
|
|
||||||
|
var pathsToAdd = new List<string>();
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(currentPath))
|
||||||
|
{
|
||||||
|
pathsToAdd.AddRange(currentPath.Split(Path.PathSeparator, StringSplitOptions.RemoveEmptyEntries));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(userPath))
|
||||||
|
{
|
||||||
|
var userPaths = userPath.Split(Path.PathSeparator, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
foreach (var path in userPaths)
|
||||||
|
{
|
||||||
|
if (!pathsToAdd.Contains(path, StringComparer.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
pathsToAdd.Add(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(machinePath))
|
||||||
|
{
|
||||||
|
var machinePaths = machinePath.Split(Path.PathSeparator, StringSplitOptions.RemoveEmptyEntries);
|
||||||
|
foreach (var path in machinePaths)
|
||||||
|
{
|
||||||
|
if (!pathsToAdd.Contains(path, StringComparer.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
pathsToAdd.Add(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var newPath = string.Join(Path.PathSeparator.ToString(), pathsToAdd);
|
||||||
|
|
||||||
|
if (currentPath != newPath)
|
||||||
|
{
|
||||||
|
Logger.LogInfo("[FoundryClient] Updating process PATH with latest system values");
|
||||||
|
Environment.SetEnvironmentVariable("PATH", newPath, EnvironmentVariableTarget.Process);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Logger.LogInfo("[FoundryClient] PATH is already up to date");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.LogError($"[FoundryClient] Failed to refresh PATH: {ex.Message}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider.FoundryLocal;
|
||||||
|
|
||||||
|
[JsonSourceGenerationOptions(
|
||||||
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
||||||
|
WriteIndented = false)]
|
||||||
|
[JsonSerializable(typeof(FoundryCatalogModel))]
|
||||||
|
[JsonSerializable(typeof(List<FoundryCatalogModel>))]
|
||||||
|
internal sealed partial class FoundryJsonContext : JsonSerializerContext
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider.FoundryLocal;
|
||||||
|
|
||||||
|
internal sealed record ModelSettings
|
||||||
|
{
|
||||||
|
// The sample shows an empty array; keep it open-ended.
|
||||||
|
[JsonPropertyName("parameters")]
|
||||||
|
public List<JsonElement> Parameters { get; init; } = [];
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider.FoundryLocal;
|
||||||
|
|
||||||
|
internal sealed record PromptTemplate
|
||||||
|
{
|
||||||
|
[JsonPropertyName("assistant")]
|
||||||
|
public string Assistant { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("prompt")]
|
||||||
|
public string Prompt { get; init; } = string.Empty;
|
||||||
|
}
|
||||||
16
src/common/LanguageModelProvider/FoundryLocal/Runtime.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider.FoundryLocal;
|
||||||
|
|
||||||
|
internal sealed record Runtime
|
||||||
|
{
|
||||||
|
[JsonPropertyName("deviceType")]
|
||||||
|
public string DeviceType { get; init; } = string.Empty;
|
||||||
|
|
||||||
|
[JsonPropertyName("executionProvider")]
|
||||||
|
public string ExecutionProvider { get; init; } = string.Empty;
|
||||||
|
}
|
||||||
156
src/common/LanguageModelProvider/FoundryLocalModelProvider.cs
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System.ClientModel;
|
||||||
|
using LanguageModelProvider.FoundryLocal;
|
||||||
|
using ManagedCommon;
|
||||||
|
using Microsoft.Extensions.AI;
|
||||||
|
using OpenAI;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider;
|
||||||
|
|
||||||
|
public sealed class FoundryLocalModelProvider : ILanguageModelProvider
|
||||||
|
{
|
||||||
|
private FoundryClient? _foundryClient;
|
||||||
|
private IEnumerable<FoundryCatalogModel>? _catalogModels;
|
||||||
|
private string? _serviceUrl;
|
||||||
|
|
||||||
|
public static FoundryLocalModelProvider Instance { get; } = new();
|
||||||
|
|
||||||
|
public string Name => "FoundryLocal";
|
||||||
|
|
||||||
|
public string ProviderDescription => "The model will run locally via Foundry Local";
|
||||||
|
|
||||||
|
public IChatClient? GetIChatClient(string modelId)
|
||||||
|
{
|
||||||
|
Logger.LogInfo($"[FoundryLocal] GetIChatClient called with url: {modelId}");
|
||||||
|
InitializeAsync().GetAwaiter().GetResult();
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(modelId))
|
||||||
|
{
|
||||||
|
Logger.LogError("[FoundryLocal] Model ID is empty after extraction");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if model is in catalog
|
||||||
|
var isInCatalog = _catalogModels?.Any(m => m.Name == modelId) ?? false;
|
||||||
|
if (!isInCatalog)
|
||||||
|
{
|
||||||
|
var errorMessage = $"{modelId} is not supported in Foundry Local. Please configure supported models in Settings.";
|
||||||
|
Logger.LogError($"[FoundryLocal] {errorMessage}");
|
||||||
|
throw new InvalidOperationException(errorMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensure the model is loaded before returning chat client
|
||||||
|
var isLoaded = _foundryClient!.EnsureModelLoaded(modelId).GetAwaiter().GetResult();
|
||||||
|
if (!isLoaded)
|
||||||
|
{
|
||||||
|
Logger.LogError($"[FoundryLocal] Failed to load model: {modelId}");
|
||||||
|
throw new InvalidOperationException($"Failed to load the model '{modelId}'.");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Use ServiceUri instead of Endpoint since Endpoint already includes /v1
|
||||||
|
var baseUri = _foundryClient.GetServiceUri();
|
||||||
|
if (baseUri == null)
|
||||||
|
{
|
||||||
|
const string message = "Foundry Local service URL is not available. Please make sure Foundry Local is installed and running.";
|
||||||
|
Logger.LogError($"[FoundryLocal] {message}");
|
||||||
|
throw new InvalidOperationException(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
var endpointUri = new Uri($"{baseUri.ToString().TrimEnd('/')}/v1");
|
||||||
|
Logger.LogInfo($"[FoundryLocal] Creating OpenAI client with endpoint: {endpointUri}");
|
||||||
|
|
||||||
|
return new OpenAIClient(
|
||||||
|
new ApiKeyCredential("none"),
|
||||||
|
new OpenAIClientOptions { Endpoint = endpointUri, NetworkTimeout = TimeSpan.FromMinutes(5) })
|
||||||
|
.GetChatClient(modelId)
|
||||||
|
.AsIChatClient();
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GetIChatClientString(string url)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
InitializeAsync().GetAwaiter().GetResult();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
return string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
var modelId = url.Split('/').LastOrDefault();
|
||||||
|
|
||||||
|
if (string.IsNullOrWhiteSpace(_serviceUrl) || string.IsNullOrWhiteSpace(modelId))
|
||||||
|
{
|
||||||
|
return string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $"new OpenAIClient(new ApiKeyCredential(\"none\"), new OpenAIClientOptions{{ Endpoint = new Uri(\"{_serviceUrl}/v1\") }}).GetChatClient(\"{modelId}\").AsIChatClient()";
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<IEnumerable<ModelDetails>> GetModelsAsync(CancellationToken cancelationToken = default)
|
||||||
|
{
|
||||||
|
await InitializeAsync(cancelationToken);
|
||||||
|
|
||||||
|
if (_foundryClient == null)
|
||||||
|
{
|
||||||
|
return Array.Empty<ModelDetails>();
|
||||||
|
}
|
||||||
|
|
||||||
|
var cachedModels = await _foundryClient.ListCachedModels();
|
||||||
|
List<ModelDetails> downloadedModels = [];
|
||||||
|
|
||||||
|
foreach (var model in cachedModels)
|
||||||
|
{
|
||||||
|
Logger.LogInfo($"[FoundryLocal] Adding unmatched cached model: {model.Name}");
|
||||||
|
downloadedModels.Add(new ModelDetails
|
||||||
|
{
|
||||||
|
Id = $"fl-{model.Name}",
|
||||||
|
Name = model.Name,
|
||||||
|
Url = $"fl://{model.Name}",
|
||||||
|
Description = $"{model.Name} running locally with Foundry Local",
|
||||||
|
HardwareAccelerators = [HardwareAccelerator.FOUNDRYLOCAL],
|
||||||
|
ProviderModelDetails = model,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return downloadedModels;
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task InitializeAsync(CancellationToken cancelationToken = default)
|
||||||
|
{
|
||||||
|
if (_foundryClient != null && _catalogModels != null && _catalogModels.Any())
|
||||||
|
{
|
||||||
|
await _foundryClient.EnsureRunning().ConfigureAwait(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Logger.LogInfo("[FoundryLocal] Initializing provider");
|
||||||
|
_foundryClient ??= await FoundryClient.CreateAsync();
|
||||||
|
|
||||||
|
if (_foundryClient == null)
|
||||||
|
{
|
||||||
|
const string message = "Foundry Local client could not be created. Please make sure Foundry Local is installed and running.";
|
||||||
|
Logger.LogError($"[FoundryLocal] {message}");
|
||||||
|
throw new InvalidOperationException(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
_serviceUrl ??= await _foundryClient.GetServiceUrl();
|
||||||
|
Logger.LogInfo($"[FoundryLocal] Service URL: {_serviceUrl}");
|
||||||
|
|
||||||
|
var catalogModels = await _foundryClient.ListCatalogModels();
|
||||||
|
Logger.LogInfo($"[FoundryLocal] Found {catalogModels.Count} catalog models");
|
||||||
|
_catalogModels = catalogModels;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async Task<bool> IsAvailable()
|
||||||
|
{
|
||||||
|
Logger.LogInfo("[FoundryLocal] Checking availability");
|
||||||
|
await InitializeAsync();
|
||||||
|
var available = _foundryClient != null;
|
||||||
|
Logger.LogInfo($"[FoundryLocal] Available: {available}");
|
||||||
|
return available;
|
||||||
|
}
|
||||||
|
}
|
||||||
22
src/common/LanguageModelProvider/HardwareAccelerator.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
namespace LanguageModelProvider;
|
||||||
|
|
||||||
|
public enum HardwareAccelerator
|
||||||
|
{
|
||||||
|
CPU,
|
||||||
|
DML,
|
||||||
|
QNN,
|
||||||
|
WCRAPI,
|
||||||
|
OLLAMA,
|
||||||
|
OPENAI,
|
||||||
|
FOUNDRYLOCAL,
|
||||||
|
LEMONADE,
|
||||||
|
NPU,
|
||||||
|
GPU,
|
||||||
|
VitisAI,
|
||||||
|
OpenVINO,
|
||||||
|
NvTensorRT,
|
||||||
|
}
|
||||||
20
src/common/LanguageModelProvider/ILanguageModelProvider.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using Microsoft.Extensions.AI;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider;
|
||||||
|
|
||||||
|
public interface ILanguageModelProvider
|
||||||
|
{
|
||||||
|
string Name { get; }
|
||||||
|
|
||||||
|
string ProviderDescription { get; }
|
||||||
|
|
||||||
|
Task<IEnumerable<ModelDetails>> GetModelsAsync(CancellationToken cancelationToken = default);
|
||||||
|
|
||||||
|
IChatClient? GetIChatClient(string modelId);
|
||||||
|
|
||||||
|
string GetIChatClientString(string url);
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<!-- Look at Directory.Build.props in root for common stuff as well -->
|
||||||
|
<Import Project="..\..\Common.Dotnet.CsWinRT.props" />
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.Extensions.AI" />
|
||||||
|
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" />
|
||||||
|
<PackageReference Include="Microsoft.AI.Foundry.Local" />
|
||||||
|
<PackageReference Include="OpenAI" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\ManagedCommon\ManagedCommon.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
30
src/common/LanguageModelProvider/ModelDetails.cs
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace LanguageModelProvider;
|
||||||
|
|
||||||
|
public class ModelDetails
|
||||||
|
{
|
||||||
|
public string Id { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public string Url { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public string Description { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public long Size { get; set; }
|
||||||
|
|
||||||
|
public bool IsUserAdded { get; set; }
|
||||||
|
|
||||||
|
public string Icon { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public List<HardwareAccelerator> HardwareAccelerators { get; set; } = [];
|
||||||
|
|
||||||
|
public string License { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public object? ProviderModelDetails { get; set; }
|
||||||
|
}
|
||||||
@@ -26,6 +26,21 @@ namespace ManagedCommon
|
|||||||
|
|
||||||
private static readonly string Version = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? "Unknown";
|
private static readonly string Version = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyFileVersionAttribute>()?.Version ?? "Unknown";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the path to the log directory for the current version of the app.
|
||||||
|
/// </summary>
|
||||||
|
public static string CurrentVersionLogDirectoryPath { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the path to the current log file.
|
||||||
|
/// </summary>
|
||||||
|
public static string CurrentLogFile { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the path to the log directory for the app.
|
||||||
|
/// </summary>
|
||||||
|
public static string AppLogDirectoryPath { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes the logger and sets the path for logging.
|
/// Initializes the logger and sets the path for logging.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -42,7 +57,12 @@ namespace ManagedCommon
|
|||||||
Directory.CreateDirectory(versionedPath);
|
Directory.CreateDirectory(versionedPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
var logFilePath = Path.Combine(versionedPath, "Log_" + DateTime.Now.ToString(@"yyyy-MM-dd", CultureInfo.InvariantCulture) + ".log");
|
AppLogDirectoryPath = basePath;
|
||||||
|
CurrentVersionLogDirectoryPath = versionedPath;
|
||||||
|
|
||||||
|
var logFile = "Log_" + DateTime.Now.ToString(@"yyyy-MM-dd", CultureInfo.InvariantCulture) + ".log";
|
||||||
|
var logFilePath = Path.Combine(versionedPath, logFile);
|
||||||
|
CurrentLogFile = logFilePath;
|
||||||
|
|
||||||
Trace.Listeners.Add(new TextWriterTraceListener(logFilePath));
|
Trace.Listeners.Add(new TextWriterTraceListener(logFilePath));
|
||||||
|
|
||||||
@@ -130,7 +150,7 @@ namespace ManagedCommon
|
|||||||
{
|
{
|
||||||
exMessage +=
|
exMessage +=
|
||||||
"Inner exception: " + Environment.NewLine +
|
"Inner exception: " + Environment.NewLine +
|
||||||
ex.InnerException.GetType() + " (" + ex.HResult + "): " + ex.InnerException.Message + Environment.NewLine;
|
ex.InnerException.GetType() + " (" + ex.InnerException.HResult + "): " + ex.InnerException.Message + Environment.NewLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
exMessage +=
|
exMessage +=
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ namespace ManagedCommon
|
|||||||
ColorPicker,
|
ColorPicker,
|
||||||
CmdPal,
|
CmdPal,
|
||||||
CropAndLock,
|
CropAndLock,
|
||||||
|
CursorWrap,
|
||||||
EnvironmentVariables,
|
EnvironmentVariables,
|
||||||
FancyZones,
|
FancyZones,
|
||||||
FileLocksmith,
|
FileLocksmith,
|
||||||
|
|||||||
175
src/common/UITestAutomation/SettingsConfigHelper.cs
Normal file
@@ -0,0 +1,175 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text.Json;
|
||||||
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
|
|
||||||
|
namespace Microsoft.PowerToys.UITest
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Helper class for configuring PowerToys settings for UI tests.
|
||||||
|
/// </summary>
|
||||||
|
public class SettingsConfigHelper
|
||||||
|
{
|
||||||
|
private static readonly JsonSerializerOptions IndentedJsonOptions = new() { WriteIndented = true };
|
||||||
|
private static readonly SettingsUtils SettingsUtils = new SettingsUtils();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Configures global PowerToys settings to enable only specified modules and disable all others.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="modulesToEnable">Array of module names to enable (e.g., "Peek", "FancyZones"). All other modules will be disabled.</param>
|
||||||
|
/// <exception cref="ArgumentNullException">Thrown when modulesToEnable is null.</exception>
|
||||||
|
/// <exception cref="InvalidOperationException">Thrown when settings file operations fail.</exception>
|
||||||
|
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "This is test code and will not be trimmed")]
|
||||||
|
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "This is test code and will not be AOT compiled")]
|
||||||
|
public static void ConfigureGlobalModuleSettings(params string[] modulesToEnable)
|
||||||
|
{
|
||||||
|
ArgumentNullException.ThrowIfNull(modulesToEnable);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
GeneralSettings settings;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
settings = SettingsUtils.GetSettingsOrDefault<GeneralSettings>();
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Debug.WriteLine($"Failed to load settings, creating defaults: {ex.Message}");
|
||||||
|
settings = new GeneralSettings();
|
||||||
|
}
|
||||||
|
|
||||||
|
string settingsJson = settings.ToJsonString();
|
||||||
|
using (JsonDocument doc = JsonDocument.Parse(settingsJson))
|
||||||
|
{
|
||||||
|
var options = new JsonSerializerOptions { WriteIndented = true };
|
||||||
|
var root = doc.RootElement.Clone();
|
||||||
|
|
||||||
|
if (root.TryGetProperty("enabled", out var enabledElement))
|
||||||
|
{
|
||||||
|
var enabledModules = new Dictionary<string, bool>();
|
||||||
|
|
||||||
|
foreach (var property in enabledElement.EnumerateObject())
|
||||||
|
{
|
||||||
|
string moduleName = property.Name;
|
||||||
|
|
||||||
|
bool shouldEnable = Array.Exists(modulesToEnable, m => string.Equals(m, moduleName, StringComparison.Ordinal));
|
||||||
|
enabledModules[moduleName] = shouldEnable;
|
||||||
|
}
|
||||||
|
|
||||||
|
var settingsDict = JsonSerializer.Deserialize<Dictionary<string, object>>(settingsJson);
|
||||||
|
if (settingsDict != null)
|
||||||
|
{
|
||||||
|
settingsDict["enabled"] = enabledModules;
|
||||||
|
settingsJson = JsonSerializer.Serialize(settingsDict, IndentedJsonOptions);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SettingsUtils.SaveSettings(settingsJson);
|
||||||
|
|
||||||
|
string enabledList = modulesToEnable.Length > 0 ? string.Join(", ", modulesToEnable) : "none";
|
||||||
|
Debug.WriteLine($"Successfully updated global settings");
|
||||||
|
Debug.WriteLine($"Enabled modules: {enabledList}");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Debug.WriteLine($"ERROR in ConfigureGlobalModuleSettings: {ex.Message}");
|
||||||
|
throw new InvalidOperationException($"Failed to configure global module settings: {ex.Message}", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Updates a module's settings file. If the file doesn't exist, creates it with default content.
|
||||||
|
/// If the file exists, reads it and applies the provided update function to modify the settings.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="moduleName">The name of the module (e.g., "Peek", "FancyZones").</param>
|
||||||
|
/// <param name="defaultSettingsContent">The default JSON content to use if the settings file doesn't exist.</param>
|
||||||
|
/// <param name="updateSettingsAction">
|
||||||
|
/// A callback function that modifies the settings dictionary. The function receives the deserialized settings
|
||||||
|
/// and should modify it in-place. The function should accept a Dictionary<string, object> and not return a value.
|
||||||
|
/// Example: (settings) => { ((Dictionary<string, object>)settings["properties"])["SomeSetting"] = newValue; }
|
||||||
|
/// </param>
|
||||||
|
/// <exception cref="ArgumentNullException">Thrown when moduleName or updateSettingsAction is null.</exception>
|
||||||
|
/// <exception cref="InvalidOperationException">Thrown when settings file operations fail.</exception>
|
||||||
|
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "This is test code and will not be trimmed")]
|
||||||
|
[UnconditionalSuppressMessage("AOT", "IL3050", Justification = "This is test code and will not be AOT compiled")]
|
||||||
|
public static void UpdateModuleSettings(
|
||||||
|
string moduleName,
|
||||||
|
string defaultSettingsContent,
|
||||||
|
Action<Dictionary<string, object>> updateSettingsAction)
|
||||||
|
{
|
||||||
|
ArgumentNullException.ThrowIfNull(moduleName);
|
||||||
|
ArgumentNullException.ThrowIfNull(updateSettingsAction);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// Build the path to the module settings file
|
||||||
|
string powerToysSettingsDirectory = Path.Combine(
|
||||||
|
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
|
||||||
|
"Microsoft",
|
||||||
|
"PowerToys");
|
||||||
|
|
||||||
|
string moduleDirectory = Path.Combine(powerToysSettingsDirectory, moduleName);
|
||||||
|
string settingsPath = Path.Combine(moduleDirectory, "settings.json");
|
||||||
|
|
||||||
|
// Ensure directory exists
|
||||||
|
Directory.CreateDirectory(moduleDirectory);
|
||||||
|
|
||||||
|
// Read existing settings or use default
|
||||||
|
string existingJson = string.Empty;
|
||||||
|
if (File.Exists(settingsPath))
|
||||||
|
{
|
||||||
|
existingJson = File.ReadAllText(settingsPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
Dictionary<string, object>? settings;
|
||||||
|
|
||||||
|
// If file doesn't exist or is empty, create from defaults
|
||||||
|
if (string.IsNullOrWhiteSpace(existingJson))
|
||||||
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(defaultSettingsContent))
|
||||||
|
{
|
||||||
|
throw new ArgumentException("Default settings content must be provided when file doesn't exist.", nameof(defaultSettingsContent));
|
||||||
|
}
|
||||||
|
|
||||||
|
settings = JsonSerializer.Deserialize<Dictionary<string, object>>(defaultSettingsContent)
|
||||||
|
?? throw new InvalidOperationException($"Failed to deserialize default settings for {moduleName}");
|
||||||
|
|
||||||
|
Debug.WriteLine($"Created default settings for {moduleName} at {settingsPath}");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Parse existing settings
|
||||||
|
settings = JsonSerializer.Deserialize<Dictionary<string, object>>(existingJson)
|
||||||
|
?? throw new InvalidOperationException($"Failed to deserialize existing settings for {moduleName}");
|
||||||
|
|
||||||
|
Debug.WriteLine($"Loaded existing settings for {moduleName} from {settingsPath}");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply the update action to modify settings
|
||||||
|
updateSettingsAction(settings);
|
||||||
|
|
||||||
|
// Serialize and save the updated settings using SettingsUtils
|
||||||
|
string updatedJson = JsonSerializer.Serialize(settings, IndentedJsonOptions);
|
||||||
|
SettingsUtils.SaveSettings(updatedJson, moduleName);
|
||||||
|
|
||||||
|
Debug.WriteLine($"Successfully updated settings for {moduleName}");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Debug.WriteLine($"ERROR in UpdateModuleSettings for {moduleName}: {ex.Message}");
|
||||||
|
throw new InvalidOperationException($"Failed to update settings for {moduleName}: {ex.Message}", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<PublishAot>true</PublishAot>
|
<PublishAot>true</PublishAot>
|
||||||
<InvariantGlobalization>true</InvariantGlobalization>
|
<InvariantGlobalization>true</InvariantGlobalization>
|
||||||
<TargetFramework>net9.0-windows10.0.22621.0</TargetFramework>
|
<TargetFramework>net9.0-windows10.0.26100.0</TargetFramework>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<PublishTrimmed>false</PublishTrimmed>
|
<PublishTrimmed>false</PublishTrimmed>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -21,4 +21,8 @@
|
|||||||
<PackageReference Include="CoenM.ImageSharp.ImageHash" />
|
<PackageReference Include="CoenM.ImageSharp.ImageHash" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\settings-ui\Settings.UI.Library\Settings.UI.Library.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ struct LogSettings
|
|||||||
inline const static std::string mouseHighlighterLoggerName = "mouse-highlighter";
|
inline const static std::string mouseHighlighterLoggerName = "mouse-highlighter";
|
||||||
inline const static std::string mouseJumpLoggerName = "mouse-jump";
|
inline const static std::string mouseJumpLoggerName = "mouse-jump";
|
||||||
inline const static std::string mousePointerCrosshairsLoggerName = "mouse-pointer-crosshairs";
|
inline const static std::string mousePointerCrosshairsLoggerName = "mouse-pointer-crosshairs";
|
||||||
|
inline const static std::string cursorWrapLoggerName = "cursor-wrap";
|
||||||
inline const static std::string imageResizerLoggerName = "imageresizer";
|
inline const static std::string imageResizerLoggerName = "imageresizer";
|
||||||
inline const static std::string powerRenameLoggerName = "powerrename";
|
inline const static std::string powerRenameLoggerName = "powerrename";
|
||||||
inline const static std::string alwaysOnTopLoggerName = "always-on-top";
|
inline const static std::string alwaysOnTopLoggerName = "always-on-top";
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace powertoys_gpo
|
namespace powertoys_gpo
|
||||||
{
|
{
|
||||||
@@ -51,6 +52,7 @@ namespace powertoys_gpo
|
|||||||
const std::wstring POLICY_CONFIGURE_ENABLED_MOUSE_HIGHLIGHTER = L"ConfigureEnabledUtilityMouseHighlighter";
|
const std::wstring POLICY_CONFIGURE_ENABLED_MOUSE_HIGHLIGHTER = L"ConfigureEnabledUtilityMouseHighlighter";
|
||||||
const std::wstring POLICY_CONFIGURE_ENABLED_MOUSE_JUMP = L"ConfigureEnabledUtilityMouseJump";
|
const std::wstring POLICY_CONFIGURE_ENABLED_MOUSE_JUMP = L"ConfigureEnabledUtilityMouseJump";
|
||||||
const std::wstring POLICY_CONFIGURE_ENABLED_MOUSE_POINTER_CROSSHAIRS = L"ConfigureEnabledUtilityMousePointerCrosshairs";
|
const std::wstring POLICY_CONFIGURE_ENABLED_MOUSE_POINTER_CROSSHAIRS = L"ConfigureEnabledUtilityMousePointerCrosshairs";
|
||||||
|
const std::wstring POLICY_CONFIGURE_ENABLED_CURSOR_WRAP = L"ConfigureEnabledUtilityCursorWrap";
|
||||||
const std::wstring POLICY_CONFIGURE_ENABLED_POWER_RENAME = L"ConfigureEnabledUtilityPowerRename";
|
const std::wstring POLICY_CONFIGURE_ENABLED_POWER_RENAME = L"ConfigureEnabledUtilityPowerRename";
|
||||||
const std::wstring POLICY_CONFIGURE_ENABLED_POWER_LAUNCHER = L"ConfigureEnabledUtilityPowerLauncher";
|
const std::wstring POLICY_CONFIGURE_ENABLED_POWER_LAUNCHER = L"ConfigureEnabledUtilityPowerLauncher";
|
||||||
const std::wstring POLICY_CONFIGURE_ENABLED_QUICK_ACCENT = L"ConfigureEnabledUtilityQuickAccent";
|
const std::wstring POLICY_CONFIGURE_ENABLED_QUICK_ACCENT = L"ConfigureEnabledUtilityQuickAccent";
|
||||||
@@ -82,6 +84,13 @@ namespace powertoys_gpo
|
|||||||
const std::wstring POLICY_CONFIGURE_RUN_AT_STARTUP = L"ConfigureRunAtStartup";
|
const std::wstring POLICY_CONFIGURE_RUN_AT_STARTUP = L"ConfigureRunAtStartup";
|
||||||
const std::wstring POLICY_CONFIGURE_ENABLED_POWER_LAUNCHER_ALL_PLUGINS = L"PowerLauncherAllPluginsEnabledState";
|
const std::wstring POLICY_CONFIGURE_ENABLED_POWER_LAUNCHER_ALL_PLUGINS = L"PowerLauncherAllPluginsEnabledState";
|
||||||
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_ONLINE_AI_MODELS = L"AllowPowerToysAdvancedPasteOnlineAIModels";
|
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_ONLINE_AI_MODELS = L"AllowPowerToysAdvancedPasteOnlineAIModels";
|
||||||
|
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_OPENAI = L"AllowAdvancedPasteOpenAI";
|
||||||
|
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_AZURE_OPENAI = L"AllowAdvancedPasteAzureOpenAI";
|
||||||
|
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_AZURE_AI_INFERENCE = L"AllowAdvancedPasteAzureAIInference";
|
||||||
|
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_MISTRAL = L"AllowAdvancedPasteMistral";
|
||||||
|
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_GOOGLE = L"AllowAdvancedPasteGoogle";
|
||||||
|
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_OLLAMA = L"AllowAdvancedPasteOllama";
|
||||||
|
const std::wstring POLICY_ALLOW_ADVANCED_PASTE_FOUNDRY_LOCAL = L"AllowAdvancedPasteFoundryLocal";
|
||||||
const std::wstring POLICY_MWB_CLIPBOARD_SHARING_ENABLED = L"MwbClipboardSharingEnabled";
|
const std::wstring POLICY_MWB_CLIPBOARD_SHARING_ENABLED = L"MwbClipboardSharingEnabled";
|
||||||
const std::wstring POLICY_MWB_FILE_TRANSFER_ENABLED = L"MwbFileTransferEnabled";
|
const std::wstring POLICY_MWB_FILE_TRANSFER_ENABLED = L"MwbFileTransferEnabled";
|
||||||
const std::wstring POLICY_MWB_USE_ORIGINAL_USER_INTERFACE = L"MwbUseOriginalUserInterface";
|
const std::wstring POLICY_MWB_USE_ORIGINAL_USER_INTERFACE = L"MwbUseOriginalUserInterface";
|
||||||
@@ -401,6 +410,11 @@ namespace powertoys_gpo
|
|||||||
return getUtilityEnabledValue(POLICY_CONFIGURE_ENABLED_MOUSE_POINTER_CROSSHAIRS);
|
return getUtilityEnabledValue(POLICY_CONFIGURE_ENABLED_MOUSE_POINTER_CROSSHAIRS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline gpo_rule_configured_t getConfiguredCursorWrapEnabledValue()
|
||||||
|
{
|
||||||
|
return getUtilityEnabledValue(POLICY_CONFIGURE_ENABLED_CURSOR_WRAP);
|
||||||
|
}
|
||||||
|
|
||||||
inline gpo_rule_configured_t getConfiguredPowerRenameEnabledValue()
|
inline gpo_rule_configured_t getConfiguredPowerRenameEnabledValue()
|
||||||
{
|
{
|
||||||
return getUtilityEnabledValue(POLICY_CONFIGURE_ENABLED_POWER_RENAME);
|
return getUtilityEnabledValue(POLICY_CONFIGURE_ENABLED_POWER_RENAME);
|
||||||
@@ -575,6 +589,41 @@ namespace powertoys_gpo
|
|||||||
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_ONLINE_AI_MODELS);
|
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_ONLINE_AI_MODELS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline gpo_rule_configured_t getAllowedAdvancedPasteOpenAIValue()
|
||||||
|
{
|
||||||
|
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_OPENAI);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline gpo_rule_configured_t getAllowedAdvancedPasteAzureOpenAIValue()
|
||||||
|
{
|
||||||
|
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_AZURE_OPENAI);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline gpo_rule_configured_t getAllowedAdvancedPasteAzureAIInferenceValue()
|
||||||
|
{
|
||||||
|
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_AZURE_AI_INFERENCE);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline gpo_rule_configured_t getAllowedAdvancedPasteMistralValue()
|
||||||
|
{
|
||||||
|
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_MISTRAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline gpo_rule_configured_t getAllowedAdvancedPasteGoogleValue()
|
||||||
|
{
|
||||||
|
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_GOOGLE);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline gpo_rule_configured_t getAllowedAdvancedPasteOllamaValue()
|
||||||
|
{
|
||||||
|
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_OLLAMA);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline gpo_rule_configured_t getAllowedAdvancedPasteFoundryLocalValue()
|
||||||
|
{
|
||||||
|
return getConfiguredValue(POLICY_ALLOW_ADVANCED_PASTE_FOUNDRY_LOCAL);
|
||||||
|
}
|
||||||
|
|
||||||
inline gpo_rule_configured_t getConfiguredMwbClipboardSharingEnabledValue()
|
inline gpo_rule_configured_t getConfiguredMwbClipboardSharingEnabledValue()
|
||||||
{
|
{
|
||||||
return getConfiguredValue(POLICY_MWB_CLIPBOARD_SHARING_ENABLED);
|
return getConfiguredValue(POLICY_MWB_CLIPBOARD_SHARING_ENABLED);
|
||||||
|
|||||||
@@ -33,9 +33,4 @@
|
|||||||
<Target Name="PostBuildAction" AfterTargets="Build" Outputs="$(GeneratedDSCModule)" Condition="'$(Platform)'!='ARM64'">
|
<Target Name="PostBuildAction" AfterTargets="Build" Outputs="$(GeneratedDSCModule)" Condition="'$(Platform)'!='ARM64'">
|
||||||
<Exec Command=""$(OutDir)$(AssemblyName).exe" "..\..\..\x64\$(Configuration)\WinUI3Apps\PowerToys.Settings.UI.Lib.dll" $(GeneratedDSCModule) $(GeneratedDSCManifest)" />
|
<Exec Command=""$(OutDir)$(AssemblyName).exe" "..\..\..\x64\$(Configuration)\WinUI3Apps\PowerToys.Settings.UI.Lib.dll" $(GeneratedDSCModule) $(GeneratedDSCManifest)" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="PreBuild" BeforeTargets="PreBuildEvent" Condition="'$(Platform)'=='ARM64'">
|
|
||||||
<Exec Command=""$(MSBuildToolsPath)\msbuild.exe" PowerToys.sln -p:Configuration="$(Configuration)" -p:Platform="x64" -verbosity:m -t:DSC\PowerToys_Settings_DSC_Schema_Generator" WorkingDirectory="..\..\..\" />
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ public sealed class SettingsResourceAdvancedPasteModuleTest : SettingsResourceMo
|
|||||||
{
|
{
|
||||||
s.Properties.ShowCustomPreview = !s.Properties.ShowCustomPreview;
|
s.Properties.ShowCustomPreview = !s.Properties.ShowCustomPreview;
|
||||||
s.Properties.CloseAfterLosingFocus = !s.Properties.CloseAfterLosingFocus;
|
s.Properties.CloseAfterLosingFocus = !s.Properties.CloseAfterLosingFocus;
|
||||||
s.Properties.IsAdvancedAIEnabled = !s.Properties.IsAdvancedAIEnabled;
|
|
||||||
|
// s.Properties.IsAdvancedAIEnabled = !s.Properties.IsAdvancedAIEnabled;
|
||||||
s.Properties.AdvancedPasteUIShortcut = new HotkeySettings
|
s.Properties.AdvancedPasteUIShortcut = new HotkeySettings
|
||||||
{
|
{
|
||||||
Key = "mock",
|
Key = "mock",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace PowerToys.DSC.Models;
|
|||||||
public sealed class DscManifest
|
public sealed class DscManifest
|
||||||
{
|
{
|
||||||
private const string Schema = "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.vscode.json";
|
private const string Schema = "https://aka.ms/dsc/schemas/v3/bundled/resource/manifest.vscode.json";
|
||||||
private const string Executable = @"PowerToys.DSC.exe";
|
private const string Executable = @"..\PowerToys.DSC.exe";
|
||||||
|
|
||||||
private readonly string _type;
|
private readonly string _type;
|
||||||
private readonly string _version;
|
private readonly string _version;
|
||||||
|
|||||||
@@ -40,9 +40,11 @@
|
|||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- In debug mode, generate the DSC resource JSON files -->
|
<!-- Generate the DSC resource JSON files to DSCModules subfolder -->
|
||||||
<Target Name="GenerateDscResourceJsonFiles" AfterTargets="Build" Condition="'$(Configuration)' == 'Debug'">
|
<!-- Skip generation in CI/CD builds (CIBuild=true) to avoid unnecessary work during pipeline -->
|
||||||
<Message Text="Generating DSC resource JSON files inside ..." Importance="high" />
|
<Target Name="GenerateDscResourceJsonFiles" AfterTargets="Build" Condition="'$(CIBuild)' != 'true'">
|
||||||
<Exec Command="dotnet "$(TargetPath)" manifest --resource settings --outputDir "$(TargetDir)\"" />
|
<Message Text="Generating DSC resource JSON files to DSCModules subfolder..." Importance="high" />
|
||||||
|
<MakeDir Directories="$(TargetDir)DSCModules" />
|
||||||
|
<Exec Command="dotnet "$(TargetPath)" manifest --resource settings --outputDir "$(TargetDir)DSCModules"" />
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright (c) Microsoft Corporation.
|
<!-- Copyright (c) Microsoft Corporation.
|
||||||
Licensed under the MIT License. -->
|
Licensed under the MIT License. -->
|
||||||
<policyDefinitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.17" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
|
<policyDefinitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.18" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
|
||||||
<policyNamespaces>
|
<policyNamespaces>
|
||||||
<target prefix="powertoys" namespace="Microsoft.Policies.PowerToys" />
|
<target prefix="powertoys" namespace="Microsoft.Policies.PowerToys" />
|
||||||
</policyNamespaces>
|
</policyNamespaces>
|
||||||
<resources minRequiredRevision="1.17"/><!-- Last changed with PowerToys v0.90.0 -->
|
<resources minRequiredRevision="1.18"/><!-- Last changed with PowerToys v0.96.0 -->
|
||||||
<supportedOn>
|
<supportedOn>
|
||||||
<definitions>
|
<definitions>
|
||||||
<definition name="SUPPORTED_POWERTOYS_0_64_0" displayName="$(string.SUPPORTED_POWERTOYS_0_64_0)"/>
|
<definition name="SUPPORTED_POWERTOYS_0_64_0" displayName="$(string.SUPPORTED_POWERTOYS_0_64_0)"/>
|
||||||
@@ -26,6 +26,7 @@
|
|||||||
<definition name="SUPPORTED_POWERTOYS_0_88_0" displayName="$(string.SUPPORTED_POWERTOYS_0_88_0)"/>
|
<definition name="SUPPORTED_POWERTOYS_0_88_0" displayName="$(string.SUPPORTED_POWERTOYS_0_88_0)"/>
|
||||||
<definition name="SUPPORTED_POWERTOYS_0_89_0" displayName="$(string.SUPPORTED_POWERTOYS_0_89_0)"/>
|
<definition name="SUPPORTED_POWERTOYS_0_89_0" displayName="$(string.SUPPORTED_POWERTOYS_0_89_0)"/>
|
||||||
<definition name="SUPPORTED_POWERTOYS_0_90_0" displayName="$(string.SUPPORTED_POWERTOYS_0_90_0)"/>
|
<definition name="SUPPORTED_POWERTOYS_0_90_0" displayName="$(string.SUPPORTED_POWERTOYS_0_90_0)"/>
|
||||||
|
<definition name="SUPPORTED_POWERTOYS_0_96_0" displayName="$(string.SUPPORTED_POWERTOYS_0_96_0)"/>
|
||||||
<definition name="SUPPORTED_POWERTOYS_0_64_0_TO_0_87_1" displayName="$(string.SUPPORTED_POWERTOYS_0_64_0_TO_0_87_1)"/>
|
<definition name="SUPPORTED_POWERTOYS_0_64_0_TO_0_87_1" displayName="$(string.SUPPORTED_POWERTOYS_0_64_0_TO_0_87_1)"/>
|
||||||
</definitions>
|
</definitions>
|
||||||
</supportedOn>
|
</supportedOn>
|
||||||
@@ -614,6 +615,86 @@
|
|||||||
<decimal value="0" />
|
<decimal value="0" />
|
||||||
</disabledValue>
|
</disabledValue>
|
||||||
</policy>
|
</policy>
|
||||||
|
<policy name="AllowAdvancedPasteOpenAI" class="Both" displayName="$(string.AllowAdvancedPasteOpenAI)" explainText="$(string.AllowAdvancedPasteOpenAIDescription)" key="Software\Policies\PowerToys" valueName="AllowAdvancedPasteOpenAI">
|
||||||
|
<parentCategory ref="AdvancedPaste" />
|
||||||
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_96_0" />
|
||||||
|
<enabledValue>
|
||||||
|
<decimal value="1" />
|
||||||
|
</enabledValue>
|
||||||
|
<disabledValue>
|
||||||
|
<decimal value="0" />
|
||||||
|
</disabledValue>
|
||||||
|
</policy>
|
||||||
|
<policy name="AllowAdvancedPasteAzureOpenAI" class="Both" displayName="$(string.AllowAdvancedPasteAzureOpenAI)" explainText="$(string.AllowAdvancedPasteAzureOpenAIDescription)" key="Software\Policies\PowerToys" valueName="AllowAdvancedPasteAzureOpenAI">
|
||||||
|
<parentCategory ref="AdvancedPaste" />
|
||||||
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_96_0" />
|
||||||
|
<enabledValue>
|
||||||
|
<decimal value="1" />
|
||||||
|
</enabledValue>
|
||||||
|
<disabledValue>
|
||||||
|
<decimal value="0" />
|
||||||
|
</disabledValue>
|
||||||
|
</policy>
|
||||||
|
<policy name="AllowAdvancedPasteAzureAIInference" class="Both" displayName="$(string.AllowAdvancedPasteAzureAIInference)" explainText="$(string.AllowAdvancedPasteAzureAIInferenceDescription)" key="Software\Policies\PowerToys" valueName="AllowAdvancedPasteAzureAIInference">
|
||||||
|
<parentCategory ref="AdvancedPaste" />
|
||||||
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_96_0" />
|
||||||
|
<enabledValue>
|
||||||
|
<decimal value="1" />
|
||||||
|
</enabledValue>
|
||||||
|
<disabledValue>
|
||||||
|
<decimal value="0" />
|
||||||
|
</disabledValue>
|
||||||
|
</policy>
|
||||||
|
<policy name="AllowAdvancedPasteMistral" class="Both" displayName="$(string.AllowAdvancedPasteMistral)" explainText="$(string.AllowAdvancedPasteMistralDescription)" key="Software\Policies\PowerToys" valueName="AllowAdvancedPasteMistral">
|
||||||
|
<parentCategory ref="AdvancedPaste" />
|
||||||
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_96_0" />
|
||||||
|
<enabledValue>
|
||||||
|
<decimal value="1" />
|
||||||
|
</enabledValue>
|
||||||
|
<disabledValue>
|
||||||
|
<decimal value="0" />
|
||||||
|
</disabledValue>
|
||||||
|
</policy>
|
||||||
|
<policy name="AllowAdvancedPasteGoogle" class="Both" displayName="$(string.AllowAdvancedPasteGoogle)" explainText="$(string.AllowAdvancedPasteGoogleDescription)" key="Software\Policies\PowerToys" valueName="AllowAdvancedPasteGoogle">
|
||||||
|
<parentCategory ref="AdvancedPaste" />
|
||||||
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_96_0" />
|
||||||
|
<enabledValue>
|
||||||
|
<decimal value="1" />
|
||||||
|
</enabledValue>
|
||||||
|
<disabledValue>
|
||||||
|
<decimal value="0" />
|
||||||
|
</disabledValue>
|
||||||
|
</policy>
|
||||||
|
<policy name="AllowAdvancedPasteAnthropic" class="Both" displayName="$(string.AllowAdvancedPasteAnthropic)" explainText="$(string.AllowAdvancedPasteAnthropicDescription)" key="Software\Policies\PowerToys" valueName="AllowAdvancedPasteAnthropic">
|
||||||
|
<parentCategory ref="AdvancedPaste" />
|
||||||
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_96_0" />
|
||||||
|
<enabledValue>
|
||||||
|
<decimal value="1" />
|
||||||
|
</enabledValue>
|
||||||
|
<disabledValue>
|
||||||
|
<decimal value="0" />
|
||||||
|
</disabledValue>
|
||||||
|
</policy>
|
||||||
|
<policy name="AllowAdvancedPasteOllama" class="Both" displayName="$(string.AllowAdvancedPasteOllama)" explainText="$(string.AllowAdvancedPasteOllamaDescription)" key="Software\Policies\PowerToys" valueName="AllowAdvancedPasteOllama">
|
||||||
|
<parentCategory ref="AdvancedPaste" />
|
||||||
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_96_0" />
|
||||||
|
<enabledValue>
|
||||||
|
<decimal value="1" />
|
||||||
|
</enabledValue>
|
||||||
|
<disabledValue>
|
||||||
|
<decimal value="0" />
|
||||||
|
</disabledValue>
|
||||||
|
</policy>
|
||||||
|
<policy name="AllowAdvancedPasteFoundryLocal" class="Both" displayName="$(string.AllowAdvancedPasteFoundryLocal)" explainText="$(string.AllowAdvancedPasteFoundryLocalDescription)" key="Software\Policies\PowerToys" valueName="AllowAdvancedPasteFoundryLocal">
|
||||||
|
<parentCategory ref="AdvancedPaste" />
|
||||||
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_96_0" />
|
||||||
|
<enabledValue>
|
||||||
|
<decimal value="1" />
|
||||||
|
</enabledValue>
|
||||||
|
<disabledValue>
|
||||||
|
<decimal value="0" />
|
||||||
|
</disabledValue>
|
||||||
|
</policy>
|
||||||
<policy name="MwbClipboardSharingEnabled" class="Both" displayName="$(string.MwbClipboardSharingEnabled)" explainText="$(string.MwbClipboardSharingEnabledDescription)" key="Software\Policies\PowerToys" valueName="MwbClipboardSharingEnabled">
|
<policy name="MwbClipboardSharingEnabled" class="Both" displayName="$(string.MwbClipboardSharingEnabled)" explainText="$(string.MwbClipboardSharingEnabledDescription)" key="Software\Policies\PowerToys" valueName="MwbClipboardSharingEnabled">
|
||||||
<parentCategory ref="MouseWithoutBorders" />
|
<parentCategory ref="MouseWithoutBorders" />
|
||||||
<supportedOn ref="SUPPORTED_POWERTOYS_0_83_0" />
|
<supportedOn ref="SUPPORTED_POWERTOYS_0_83_0" />
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright (c) Microsoft Corporation.
|
<!-- Copyright (c) Microsoft Corporation.
|
||||||
Licensed under the MIT License. -->
|
Licensed under the MIT License. -->
|
||||||
<policyDefinitionResources xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.17" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
|
<policyDefinitionResources xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.18" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
|
||||||
<displayName>PowerToys</displayName>
|
<displayName>PowerToys</displayName>
|
||||||
<description>PowerToys</description>
|
<description>PowerToys</description>
|
||||||
<resources>
|
<resources>
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
<string id="SUPPORTED_POWERTOYS_0_88_0">PowerToys version 0.88.0 or later</string>
|
<string id="SUPPORTED_POWERTOYS_0_88_0">PowerToys version 0.88.0 or later</string>
|
||||||
<string id="SUPPORTED_POWERTOYS_0_89_0">PowerToys version 0.89.0 or later</string>
|
<string id="SUPPORTED_POWERTOYS_0_89_0">PowerToys version 0.89.0 or later</string>
|
||||||
<string id="SUPPORTED_POWERTOYS_0_90_0">PowerToys version 0.90.0 or later</string>
|
<string id="SUPPORTED_POWERTOYS_0_90_0">PowerToys version 0.90.0 or later</string>
|
||||||
|
<string id="SUPPORTED_POWERTOYS_0_96_0">PowerToys version 0.96.0 or later</string>
|
||||||
<string id="SUPPORTED_POWERTOYS_0_64_0_TO_0_87_1">From PowerToys version 0.64.0 until PowerToys version 0.87.1</string>
|
<string id="SUPPORTED_POWERTOYS_0_64_0_TO_0_87_1">From PowerToys version 0.64.0 until PowerToys version 0.87.1</string>
|
||||||
|
|
||||||
<string id="ConfigureAllUtilityGlobalEnabledStateDescription">This policy configures the enabled state for all PowerToys utilities.
|
<string id="ConfigureAllUtilityGlobalEnabledStateDescription">This policy configures the enabled state for all PowerToys utilities.
|
||||||
@@ -291,6 +292,54 @@ If you don't configure this policy, the user will be able to control the setting
|
|||||||
<string id="ConfigureEnabledUtilityFileExplorerQOIPreview">QOI file preview: Configure enabled state</string>
|
<string id="ConfigureEnabledUtilityFileExplorerQOIPreview">QOI file preview: Configure enabled state</string>
|
||||||
<string id="ConfigureEnabledUtilityFileExplorerQOIThumbnails">QOI file thumbnail: Configure enabled state</string>
|
<string id="ConfigureEnabledUtilityFileExplorerQOIThumbnails">QOI file thumbnail: Configure enabled state</string>
|
||||||
<string id="AllowPowerToysAdvancedPasteOnlineAIModels">Allow using online AI models</string>
|
<string id="AllowPowerToysAdvancedPasteOnlineAIModels">Allow using online AI models</string>
|
||||||
|
<string id="AllowAdvancedPasteOpenAI">Advanced Paste: Allow OpenAI endpoint</string>
|
||||||
|
<string id="AllowAdvancedPasteOpenAIDescription">This policy controls whether users can use the OpenAI endpoint in Advanced Paste.
|
||||||
|
|
||||||
|
If you enable or don't configure this policy, users can configure and use OpenAI as their AI provider.
|
||||||
|
|
||||||
|
If you disable this policy, users will not be able to select or use OpenAI endpoint in Advanced Paste settings.</string>
|
||||||
|
<string id="AllowAdvancedPasteAzureOpenAI">Advanced Paste: Allow Azure OpenAI endpoint</string>
|
||||||
|
<string id="AllowAdvancedPasteAzureOpenAIDescription">This policy controls whether users can use the Azure OpenAI endpoint in Advanced Paste.
|
||||||
|
|
||||||
|
If you enable or don't configure this policy, users can configure and use Azure OpenAI as their AI provider.
|
||||||
|
|
||||||
|
If you disable this policy, users will not be able to select or use Azure OpenAI endpoint in Advanced Paste settings.</string>
|
||||||
|
<string id="AllowAdvancedPasteAzureAIInference">Advanced Paste: Allow Azure AI Inference endpoint</string>
|
||||||
|
<string id="AllowAdvancedPasteAzureAIInferenceDescription">This policy controls whether users can use the Azure AI Inference endpoint in Advanced Paste.
|
||||||
|
|
||||||
|
If you enable or don't configure this policy, users can configure and use Azure AI Inference as their AI provider.
|
||||||
|
|
||||||
|
If you disable this policy, users will not be able to select or use Azure AI Inference endpoint in Advanced Paste settings.</string>
|
||||||
|
<string id="AllowAdvancedPasteMistral">Advanced Paste: Allow Mistral endpoint</string>
|
||||||
|
<string id="AllowAdvancedPasteMistralDescription">This policy controls whether users can use the Mistral AI endpoint in Advanced Paste.
|
||||||
|
|
||||||
|
If you enable or don't configure this policy, users can configure and use Mistral as their AI provider.
|
||||||
|
|
||||||
|
If you disable this policy, users will not be able to select or use Mistral endpoint in Advanced Paste settings.</string>
|
||||||
|
<string id="AllowAdvancedPasteGoogle">Advanced Paste: Allow Google endpoint</string>
|
||||||
|
<string id="AllowAdvancedPasteGoogleDescription">This policy controls whether users can use the Google (Gemini) endpoint in Advanced Paste.
|
||||||
|
|
||||||
|
If you enable or don't configure this policy, users can configure and use Google as their AI provider.
|
||||||
|
|
||||||
|
If you disable this policy, users will not be able to select or use Google endpoint in Advanced Paste settings.</string>
|
||||||
|
<string id="AllowAdvancedPasteAnthropic">Advanced Paste: Allow Anthropic endpoint</string>
|
||||||
|
<string id="AllowAdvancedPasteAnthropicDescription">This policy controls whether users can use the Anthropic (Claude) endpoint in Advanced Paste.
|
||||||
|
|
||||||
|
If you enable or don't configure this policy, users can configure and use Anthropic as their AI provider.
|
||||||
|
|
||||||
|
If you disable this policy, users will not be able to select or use Anthropic endpoint in Advanced Paste settings.</string>
|
||||||
|
<string id="AllowAdvancedPasteOllama">Advanced Paste: Allow Ollama endpoint</string>
|
||||||
|
<string id="AllowAdvancedPasteOllamaDescription">This policy controls whether users can use the Ollama local model endpoint in Advanced Paste.
|
||||||
|
|
||||||
|
If you enable or don't configure this policy, users can configure and use Ollama as their AI provider.
|
||||||
|
|
||||||
|
If you disable this policy, users will not be able to select or use Ollama endpoint in Advanced Paste settings.</string>
|
||||||
|
<string id="AllowAdvancedPasteFoundryLocal">Advanced Paste: Allow Foundry Local endpoint</string>
|
||||||
|
<string id="AllowAdvancedPasteFoundryLocalDescription">This policy controls whether users can use the Foundry Local model endpoint in Advanced Paste.
|
||||||
|
|
||||||
|
If you enable or don't configure this policy, users can configure and use Foundry Local as their AI provider.
|
||||||
|
|
||||||
|
If you disable this policy, users will not be able to select or use Foundry Local endpoint in Advanced Paste settings.</string>
|
||||||
<string id="MwbClipboardSharingEnabled">Clipboard sharing enabled</string>
|
<string id="MwbClipboardSharingEnabled">Clipboard sharing enabled</string>
|
||||||
<string id="MwbFileTransferEnabled">File transfer enabled</string>
|
<string id="MwbFileTransferEnabled">File transfer enabled</string>
|
||||||
<string id="MwbUseOriginalUserInterface">Original user interface is available</string>
|
<string id="MwbUseOriginalUserInterface">Original user interface is available</string>
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using AdvancedPaste.Converters;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using Windows.UI;
|
||||||
|
|
||||||
|
namespace AdvancedPaste.UnitTests.ConvertersTests;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public sealed class HexColorToColorConverterTests
|
||||||
|
{
|
||||||
|
[TestMethod]
|
||||||
|
public void TestConvert_ValidSixDigitHex_ReturnsColor()
|
||||||
|
{
|
||||||
|
Color? result = HexColorConverterHelper.ConvertHexColorToRgb("#FFBFAB");
|
||||||
|
Assert.IsNotNull(result);
|
||||||
|
|
||||||
|
var color = (Windows.UI.Color)result;
|
||||||
|
Assert.AreEqual(255, color.R);
|
||||||
|
Assert.AreEqual(191, color.G);
|
||||||
|
Assert.AreEqual(171, color.B);
|
||||||
|
Assert.AreEqual(255, color.A);
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void TestConvert_ValidThreeDigitHex_ReturnsColor()
|
||||||
|
{
|
||||||
|
Color? result = HexColorConverterHelper.ConvertHexColorToRgb("#abc");
|
||||||
|
Assert.IsNotNull(result);
|
||||||
|
|
||||||
|
var color = (Windows.UI.Color)result;
|
||||||
|
|
||||||
|
// #abc should expand to #aabbcc
|
||||||
|
Assert.AreEqual(170, color.R); // 0xaa
|
||||||
|
Assert.AreEqual(187, color.G); // 0xbb
|
||||||
|
Assert.AreEqual(204, color.B); // 0xcc
|
||||||
|
Assert.AreEqual(255, color.A);
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void TestConvert_NullOrEmpty_ReturnsNull()
|
||||||
|
{
|
||||||
|
Assert.IsNull(HexColorConverterHelper.ConvertHexColorToRgb(null));
|
||||||
|
Assert.IsNull(HexColorConverterHelper.ConvertHexColorToRgb(string.Empty));
|
||||||
|
Assert.IsNull(HexColorConverterHelper.ConvertHexColorToRgb(" "));
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void TestConvert_InvalidHex_ReturnsNull()
|
||||||
|
{
|
||||||
|
Assert.IsNull(HexColorConverterHelper.ConvertHexColorToRgb("#GGGGGG"));
|
||||||
|
Assert.IsNull(HexColorConverterHelper.ConvertHexColorToRgb("#12345"));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using AdvancedPaste.Helpers;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|
||||||
|
namespace AdvancedPaste.UnitTests.HelpersTests;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public sealed class ClipboardItemHelperTests
|
||||||
|
{
|
||||||
|
[TestMethod]
|
||||||
|
[DataRow("#FFBFAB", true)]
|
||||||
|
[DataRow("#000000", true)]
|
||||||
|
[DataRow("#FFFFFF", true)]
|
||||||
|
[DataRow("#fff", true)]
|
||||||
|
[DataRow("#abc", true)]
|
||||||
|
[DataRow("#123456", true)]
|
||||||
|
[DataRow("#AbCdEf", true)]
|
||||||
|
[DataRow("FFBFAB", false)] // Missing #
|
||||||
|
[DataRow("#GGGGGG", false)] // Invalid hex characters
|
||||||
|
[DataRow("#12345", false)] // Wrong length
|
||||||
|
[DataRow("#1234567", false)] // Too long
|
||||||
|
[DataRow("", false)]
|
||||||
|
[DataRow(null, false)]
|
||||||
|
[DataRow(" #FFF ", true)] // Whitespace should be trimmed
|
||||||
|
[DataRow("Not a color", false)]
|
||||||
|
[DataRow("#", false)]
|
||||||
|
[DataRow("##FFFFFF", false)]
|
||||||
|
public void TestIsRgbHexColor(string input, bool expected)
|
||||||
|
{
|
||||||
|
bool result = ClipboardItemHelper.IsRgbHexColor(input);
|
||||||
|
Assert.AreEqual(expected, result, $"IsRgbHexColor(\"{input}\") should return {expected}");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
// Copyright (c) Microsoft Corporation
|
||||||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using AdvancedPaste.Models;
|
||||||
|
using AdvancedPaste.Settings;
|
||||||
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
|
|
||||||
|
namespace AdvancedPaste.UnitTests.Mocks;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Minimal <see cref="IUserSettings"/> implementation used by integration tests that
|
||||||
|
/// need to construct the runtime Advanced Paste services.
|
||||||
|
/// </summary>
|
||||||
|
internal sealed class IntegrationTestUserSettings : IUserSettings
|
||||||
|
{
|
||||||
|
private readonly PasteAIConfiguration _configuration;
|
||||||
|
private readonly IReadOnlyList<AdvancedPasteCustomAction> _customActions;
|
||||||
|
private readonly IReadOnlyList<PasteFormats> _additionalActions;
|
||||||
|
|
||||||
|
public IntegrationTestUserSettings()
|
||||||
|
{
|
||||||
|
var provider = new PasteAIProviderDefinition
|
||||||
|
{
|
||||||
|
Id = "integration-openai",
|
||||||
|
EnableAdvancedAI = true,
|
||||||
|
ServiceTypeKind = AIServiceType.OpenAI,
|
||||||
|
ModelName = "gpt-4o",
|
||||||
|
ModerationEnabled = true,
|
||||||
|
};
|
||||||
|
|
||||||
|
_configuration = new PasteAIConfiguration
|
||||||
|
{
|
||||||
|
ActiveProviderId = provider.Id,
|
||||||
|
Providers = new ObservableCollection<PasteAIProviderDefinition> { provider },
|
||||||
|
};
|
||||||
|
|
||||||
|
_customActions = Array.Empty<AdvancedPasteCustomAction>();
|
||||||
|
_additionalActions = Array.Empty<PasteFormats>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsAIEnabled => true;
|
||||||
|
|
||||||
|
public bool ShowCustomPreview => false;
|
||||||
|
|
||||||
|
public bool CloseAfterLosingFocus => false;
|
||||||
|
|
||||||
|
public bool EnableClipboardPreview => true;
|
||||||
|
|
||||||
|
public IReadOnlyList<AdvancedPasteCustomAction> CustomActions => _customActions;
|
||||||
|
|
||||||
|
public IReadOnlyList<PasteFormats> AdditionalActions => _additionalActions;
|
||||||
|
|
||||||
|
public PasteAIConfiguration PasteAIConfiguration => _configuration;
|
||||||
|
|
||||||
|
public event EventHandler Changed;
|
||||||
|
|
||||||
|
public Task SetActiveAIProviderAsync(string providerId)
|
||||||
|
{
|
||||||
|
_configuration.ActiveProviderId = providerId ?? string.Empty;
|
||||||
|
Changed?.Invoke(this, EventArgs.Empty);
|
||||||
|
return Task.CompletedTask;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,6 +13,8 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
using AdvancedPaste.Helpers;
|
using AdvancedPaste.Helpers;
|
||||||
using AdvancedPaste.Models;
|
using AdvancedPaste.Models;
|
||||||
|
using AdvancedPaste.Services;
|
||||||
|
using AdvancedPaste.Services.CustomActions;
|
||||||
using AdvancedPaste.Services.OpenAI;
|
using AdvancedPaste.Services.OpenAI;
|
||||||
using AdvancedPaste.UnitTests.Mocks;
|
using AdvancedPaste.UnitTests.Mocks;
|
||||||
using ManagedCommon;
|
using ManagedCommon;
|
||||||
@@ -79,7 +81,9 @@ public sealed class AIServiceBatchIntegrationTests
|
|||||||
Assert.IsTrue(results.Count <= inputs.Count);
|
Assert.IsTrue(results.Count <= inputs.Count);
|
||||||
CollectionAssert.AreEqual(results.Select(result => result.ToInput()).ToList(), inputs.Take(results.Count).ToList());
|
CollectionAssert.AreEqual(results.Select(result => result.ToInput()).ToList(), inputs.Take(results.Count).ToList());
|
||||||
|
|
||||||
|
#pragma warning disable IL2026, IL3050 // The tests rely on runtime JSON serialization for ad-hoc data files.
|
||||||
async Task WriteResultsAsync() => await File.WriteAllTextAsync(resultsFile, JsonSerializer.Serialize(results, SerializerOptions));
|
async Task WriteResultsAsync() => await File.WriteAllTextAsync(resultsFile, JsonSerializer.Serialize(results, SerializerOptions));
|
||||||
|
#pragma warning restore IL2026, IL3050
|
||||||
|
|
||||||
Logger.LogInfo($"Starting {nameof(TestGenerateBatchResults)}; Count={inputs.Count}, InCache={results.Count}");
|
Logger.LogInfo($"Starting {nameof(TestGenerateBatchResults)}; Count={inputs.Count}, InCache={results.Count}");
|
||||||
|
|
||||||
@@ -101,8 +105,12 @@ public sealed class AIServiceBatchIntegrationTests
|
|||||||
await WriteResultsAsync();
|
await WriteResultsAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async Task<List<T>> GetDataListAsync<T>(string filePath) =>
|
private static async Task<List<T>> GetDataListAsync<T>(string filePath)
|
||||||
File.Exists(filePath) ? JsonSerializer.Deserialize<List<T>>(await File.ReadAllTextAsync(filePath)) : [];
|
{
|
||||||
|
#pragma warning disable IL2026, IL3050 // Tests only run locally and can depend on runtime JSON serialization.
|
||||||
|
return File.Exists(filePath) ? JsonSerializer.Deserialize<List<T>>(await File.ReadAllTextAsync(filePath)) : [];
|
||||||
|
#pragma warning restore IL2026, IL3050
|
||||||
|
}
|
||||||
|
|
||||||
private static async Task<string> GetTextOutputAsync(BatchTestInput input, PasteFormats format)
|
private static async Task<string> GetTextOutputAsync(BatchTestInput input, PasteFormats format)
|
||||||
{
|
{
|
||||||
@@ -130,23 +138,35 @@ public sealed class AIServiceBatchIntegrationTests
|
|||||||
|
|
||||||
private static async Task<DataPackage> GetOutputDataPackageAsync(BatchTestInput batchTestInput, PasteFormats format)
|
private static async Task<DataPackage> GetOutputDataPackageAsync(BatchTestInput batchTestInput, PasteFormats format)
|
||||||
{
|
{
|
||||||
VaultCredentialsProvider credentialsProvider = new();
|
var services = CreateServices();
|
||||||
PromptModerationService promptModerationService = new(credentialsProvider);
|
|
||||||
NoOpProgress progress = new();
|
NoOpProgress progress = new();
|
||||||
CustomTextTransformService customTextTransformService = new(credentialsProvider, promptModerationService);
|
|
||||||
|
|
||||||
switch (format)
|
switch (format)
|
||||||
{
|
{
|
||||||
case PasteFormats.CustomTextTransformation:
|
case PasteFormats.CustomTextTransformation:
|
||||||
return DataPackageHelpers.CreateFromText(await customTextTransformService.TransformTextAsync(batchTestInput.Prompt, batchTestInput.Clipboard, CancellationToken.None, progress));
|
var transformResult = await services.CustomActionTransformService.TransformTextAsync(batchTestInput.Prompt, batchTestInput.Clipboard, CancellationToken.None, progress);
|
||||||
|
return DataPackageHelpers.CreateFromText(transformResult.Content ?? string.Empty);
|
||||||
|
|
||||||
case PasteFormats.KernelQuery:
|
case PasteFormats.KernelQuery:
|
||||||
var clipboardData = DataPackageHelpers.CreateFromText(batchTestInput.Clipboard).GetView();
|
var clipboardData = DataPackageHelpers.CreateFromText(batchTestInput.Clipboard).GetView();
|
||||||
KernelService kernelService = new(new NoOpKernelQueryCacheService(), credentialsProvider, promptModerationService, customTextTransformService);
|
return await services.KernelService.TransformClipboardAsync(batchTestInput.Prompt, clipboardData, isSavedQuery: false, CancellationToken.None, progress);
|
||||||
return await kernelService.TransformClipboardAsync(batchTestInput.Prompt, clipboardData, isSavedQuery: false, CancellationToken.None, progress);
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new InvalidOperationException($"Unexpected format {format}");
|
throw new InvalidOperationException($"Unexpected format {format}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static IntegrationTestServices CreateServices()
|
||||||
|
{
|
||||||
|
IntegrationTestUserSettings userSettings = new();
|
||||||
|
EnhancedVaultCredentialsProvider credentialsProvider = new(userSettings);
|
||||||
|
PromptModerationService promptModerationService = new(credentialsProvider);
|
||||||
|
PasteAIProviderFactory providerFactory = new();
|
||||||
|
ICustomActionTransformService customActionTransformService = new CustomActionTransformService(promptModerationService, providerFactory, credentialsProvider, userSettings);
|
||||||
|
IKernelService kernelService = new AdvancedAIKernelService(credentialsProvider, new NoOpKernelQueryCacheService(), promptModerationService, userSettings, customActionTransformService);
|
||||||
|
|
||||||
|
return new IntegrationTestServices(customActionTransformService, kernelService);
|
||||||
|
}
|
||||||
|
|
||||||
|
private readonly record struct IntegrationTestServices(ICustomActionTransformService CustomActionTransformService, IKernelService KernelService);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
using AdvancedPaste.Helpers;
|
using AdvancedPaste.Helpers;
|
||||||
using AdvancedPaste.Models;
|
using AdvancedPaste.Models;
|
||||||
|
using AdvancedPaste.Services;
|
||||||
|
using AdvancedPaste.Services.CustomActions;
|
||||||
using AdvancedPaste.Services.OpenAI;
|
using AdvancedPaste.Services.OpenAI;
|
||||||
using AdvancedPaste.Telemetry;
|
using AdvancedPaste.Telemetry;
|
||||||
using AdvancedPaste.UnitTests.Mocks;
|
using AdvancedPaste.UnitTests.Mocks;
|
||||||
@@ -27,16 +29,19 @@ namespace AdvancedPaste.UnitTests.ServicesTests;
|
|||||||
public sealed class KernelServiceIntegrationTests : IDisposable
|
public sealed class KernelServiceIntegrationTests : IDisposable
|
||||||
{
|
{
|
||||||
private const string StandardImageFile = "image_with_text_example.png";
|
private const string StandardImageFile = "image_with_text_example.png";
|
||||||
private KernelService _kernelService;
|
private IKernelService _kernelService;
|
||||||
private AdvancedPasteEventListener _eventListener;
|
private AdvancedPasteEventListener _eventListener;
|
||||||
|
|
||||||
[TestInitialize]
|
[TestInitialize]
|
||||||
public void TestInitialize()
|
public void TestInitialize()
|
||||||
{
|
{
|
||||||
VaultCredentialsProvider credentialsProvider = new();
|
IntegrationTestUserSettings userSettings = new();
|
||||||
|
EnhancedVaultCredentialsProvider credentialsProvider = new(userSettings);
|
||||||
PromptModerationService promptModerationService = new(credentialsProvider);
|
PromptModerationService promptModerationService = new(credentialsProvider);
|
||||||
|
PasteAIProviderFactory providerFactory = new();
|
||||||
|
CustomActionTransformService customActionTransformService = new(promptModerationService, providerFactory, credentialsProvider, userSettings);
|
||||||
|
|
||||||
_kernelService = new KernelService(new NoOpKernelQueryCacheService(), credentialsProvider, promptModerationService, new CustomTextTransformService(credentialsProvider, promptModerationService));
|
_kernelService = new AdvancedAIKernelService(credentialsProvider, new NoOpKernelQueryCacheService(), promptModerationService, userSettings, customActionTransformService);
|
||||||
_eventListener = new();
|
_eventListener = new();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,11 +33,14 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Remove="AdvancedPasteXAML\Controls\ClipboardHistoryItemPreviewControl.xaml" />
|
||||||
<None Remove="AdvancedPasteXAML\Controls\PromptBox.xaml" />
|
<None Remove="AdvancedPasteXAML\Controls\PromptBox.xaml" />
|
||||||
|
<None Remove="AdvancedPasteXAML\Styles\Button.xaml" />
|
||||||
<None Remove="Assets\AdvancedPaste\AIIcon.png" />
|
<None Remove="Assets\AdvancedPaste\AIIcon.png" />
|
||||||
<None Remove="Assets\AdvancedPaste\Gradient.png" />
|
<None Remove="Assets\AdvancedPaste\Gradient.png" />
|
||||||
<None Remove="AdvancedPasteXAML\Controls\AnimatedContentControl\AnimatedBorderBrush.xaml" />
|
<None Remove="AdvancedPasteXAML\Controls\AnimatedContentControl\AnimatedBorderBrush.xaml" />
|
||||||
<None Remove="AdvancedPasteXAML\Views\MainPage.xaml" />
|
<None Remove="AdvancedPasteXAML\Views\MainPage.xaml" />
|
||||||
|
<None Remove="Assets\AdvancedPaste\SemanticKernel.svg" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -49,7 +52,6 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="OpenAI" />
|
<PackageReference Include="OpenAI" />
|
||||||
<PackageReference Include="Azure.AI.OpenAI" />
|
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" />
|
<PackageReference Include="CommunityToolkit.Mvvm" />
|
||||||
<PackageReference Include="CommunityToolkit.WinUI.Animations" />
|
<PackageReference Include="CommunityToolkit.WinUI.Animations" />
|
||||||
<PackageReference Include="CommunityToolkit.WinUI.Converters" />
|
<PackageReference Include="CommunityToolkit.WinUI.Converters" />
|
||||||
@@ -57,10 +59,15 @@
|
|||||||
<PackageReference Include="CommunityToolkit.WinUI.Controls.Primitives" />
|
<PackageReference Include="CommunityToolkit.WinUI.Controls.Primitives" />
|
||||||
<!-- Including MessagePack to force version, since it's used by StreamJsonRpc but contains vulnerabilities. After StreamJsonRpc updates the version of MessagePack, we can upgrade StreamJsonRpc instead. -->
|
<!-- Including MessagePack to force version, since it's used by StreamJsonRpc but contains vulnerabilities. After StreamJsonRpc updates the version of MessagePack, we can upgrade StreamJsonRpc instead. -->
|
||||||
<PackageReference Include="MessagePack" />
|
<PackageReference Include="MessagePack" />
|
||||||
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.AzureAIInference" />
|
||||||
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Google" />
|
||||||
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.MistralAI" />
|
||||||
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Ollama" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Hosting" />
|
<PackageReference Include="Microsoft.Extensions.Hosting" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel" />
|
<PackageReference Include="Microsoft.SemanticKernel" />
|
||||||
<PackageReference Include="Microsoft.WindowsAppSDK" />
|
<PackageReference Include="Microsoft.WindowsAppSDK" />
|
||||||
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
|
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
|
||||||
|
<PackageReference Include="System.ClientModel" />
|
||||||
<PackageReference Include="Microsoft.Windows.Compatibility" />
|
<PackageReference Include="Microsoft.Windows.Compatibility" />
|
||||||
<PackageReference Include="Microsoft.Windows.CsWin32" />
|
<PackageReference Include="Microsoft.Windows.CsWin32" />
|
||||||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
|
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
|
||||||
@@ -102,6 +109,7 @@
|
|||||||
<!-- HACK: Common.UI is referenced, even if it is not used, to force dll versions to be the same as in other projects that use it. It's still unclear why this is the case, but this is need for flattening the install directory. -->
|
<!-- HACK: Common.UI is referenced, even if it is not used, to force dll versions to be the same as in other projects that use it. It's still unclear why this is the case, but this is need for flattening the install directory. -->
|
||||||
<ProjectReference Include="..\..\..\common\Common.UI\Common.UI.csproj" />
|
<ProjectReference Include="..\..\..\common\Common.UI\Common.UI.csproj" />
|
||||||
<ProjectReference Include="..\..\..\common\ManagedCommon\ManagedCommon.csproj" />
|
<ProjectReference Include="..\..\..\common\ManagedCommon\ManagedCommon.csproj" />
|
||||||
|
<ProjectReference Include="..\..\..\common\LanguageModelProvider\LanguageModelProvider.csproj" />
|
||||||
<ProjectReference Include="..\..\..\common\GPOWrapper\GPOWrapper.vcxproj" />
|
<ProjectReference Include="..\..\..\common\GPOWrapper\GPOWrapper.vcxproj" />
|
||||||
<ProjectReference Include="..\..\..\settings-ui\Settings.UI.Library\Settings.UI.Library.csproj" />
|
<ProjectReference Include="..\..\..\settings-ui\Settings.UI.Library\Settings.UI.Library.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
@@ -114,9 +122,38 @@
|
|||||||
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
|
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
|
||||||
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
|
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Update="AdvancedPasteXAML\Controls\ClipboardHistoryItemPreviewControl.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Page Update="AdvancedPasteXAML\Controls\PromptBox.xaml">
|
<Page Update="AdvancedPasteXAML\Controls\PromptBox.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Page Update="AdvancedPasteXAML\Styles\Button.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</Page>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<!-- Share AI Model Provider Icons from Settings.UI to avoid duplication -->
|
||||||
|
<!-- These icons are included from Settings.UI project -->
|
||||||
|
<Content Include="..\..\..\settings-ui\Settings.UI\Assets\Settings\Icons\Models\*.svg">
|
||||||
|
<Link>Assets\Settings\Icons\Models\%(Filename)%(Extension)</Link>
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<!-- AdvancedPaste specific assets -->
|
||||||
|
<Content Include="Assets\AdvancedPaste\*.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<Content Include="Assets\AdvancedPaste\*.ico">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
<!-- Keep SemanticKernel.svg as it's specific to AdvancedPaste -->
|
||||||
|
<Content Include="Assets\AdvancedPaste\SemanticKernel.svg">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
|
||||||
<ResourceDictionary Source="ms-appx:///AdvancedPasteXAML/Controls/AnimatedContentControl/AnimatedContentControl.xaml" />
|
<ResourceDictionary Source="ms-appx:///AdvancedPasteXAML/Controls/AnimatedContentControl/AnimatedContentControl.xaml" />
|
||||||
|
<ResourceDictionary Source="ms-appx:///AdvancedPasteXAML/Styles/Button.xaml" />
|
||||||
<!-- Other merged dictionaries here -->
|
<!-- Other merged dictionaries here -->
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
<!-- Other app resources here -->
|
<!-- Other app resources here -->
|
||||||
|
|||||||