2021-12-18 10:15:31 +08:00
|
|
|
# This build should never run as CI or against a pull request.
|
|
|
|
trigger: none
|
|
|
|
pr: none
|
|
|
|
|
|
|
|
pool:
|
2023-09-12 03:33:12 +08:00
|
|
|
name: SHINE-INT-L
|
2023-09-21 17:42:06 +08:00
|
|
|
demands: ImageOverride -equals SHINE-VS17-Preview
|
2021-12-18 10:15:31 +08:00
|
|
|
|
|
|
|
parameters:
|
|
|
|
- name: buildConfigurations
|
|
|
|
type: object
|
|
|
|
default:
|
|
|
|
- Release
|
|
|
|
- name: buildPlatforms
|
|
|
|
type: object
|
|
|
|
default:
|
|
|
|
- x64
|
2022-05-19 21:02:08 +08:00
|
|
|
- arm64
|
2021-12-18 10:15:31 +08:00
|
|
|
- name: versionNumber
|
|
|
|
type: string
|
|
|
|
default: '0.0.1'
|
|
|
|
|
|
|
|
variables:
|
|
|
|
IsPipeline: 1 # The installer uses this to detect whether it should pick up localizations
|
2022-12-10 08:09:26 +08:00
|
|
|
SkipCppCodeAnalysis: 1 # Skip the code analysis to speed up release CI. It runs on PR CI, anyway
|
2023-02-15 10:38:53 +08:00
|
|
|
IsExperimentationLive: 1 # The build and installer use this to turn on experimentation
|
2021-12-18 10:15:31 +08:00
|
|
|
|
|
|
|
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: self
|
|
|
|
type: git
|
|
|
|
ref: main
|
|
|
|
jobs:
|
|
|
|
- job: Build
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
${{ each config in parameters.buildConfigurations }}:
|
|
|
|
${{ each platform in parameters.buildPlatforms }}:
|
|
|
|
${{ config }}_${{ platform }}:
|
|
|
|
BuildConfiguration: ${{ config }}
|
|
|
|
BuildPlatform: ${{ platform }}
|
2022-12-14 20:37:23 +08:00
|
|
|
NUGET_RESTORE_MSBUILD_ARGS: /p:Platform=${{ platform }} # Required for nuget to work due to self contained
|
2022-12-17 01:46:07 +08:00
|
|
|
NODE_OPTIONS: --max_old_space_size=16384
|
2021-12-18 10:15:31 +08:00
|
|
|
displayName: Build
|
|
|
|
timeoutInMinutes: 120 # Some of the loc stuff adds quite a bit of time.
|
|
|
|
cancelTimeoutInMinutes: 1
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
submodules: true
|
|
|
|
persistCredentials: True
|
|
|
|
|
|
|
|
# Sets versions for all PowerToy created DLLs
|
|
|
|
- task: PowerShell@1
|
|
|
|
displayName: Set Versions.Prop
|
|
|
|
inputs:
|
|
|
|
scriptName: .pipelines/versionSetting.ps1
|
|
|
|
arguments: -versionNumber '${{ parameters.versionNumber }}' -DevEnvironment ''
|
|
|
|
|
2022-02-07 22:08:30 +08:00
|
|
|
# Guardian tool needs 'Microsoft.NETCore.App', version '2.1.0' (x64)
|
|
|
|
- task: UseDotNet@2
|
|
|
|
displayName: 'Use .NET Core 2.1 SDK'
|
|
|
|
inputs:
|
|
|
|
packageType: sdk
|
|
|
|
version: '2.1.x'
|
|
|
|
|
|
|
|
- task: UseDotNet@2
|
2023-09-21 17:42:06 +08:00
|
|
|
displayName: 'Use .NET 8 SDK'
|
2022-02-07 22:08:30 +08:00
|
|
|
inputs:
|
|
|
|
packageType: sdk
|
2023-09-21 17:42:06 +08:00
|
|
|
version: '8.x'
|
|
|
|
includePreviewVersions: true
|
2022-02-07 22:08:30 +08:00
|
|
|
|
2023-08-17 00:31:10 +08:00
|
|
|
- task: NuGetAuthenticate@1
|
2022-02-07 22:08:30 +08:00
|
|
|
|
|
|
|
- task: NuGetToolInstaller@1
|
|
|
|
displayName: Use NuGet Installer latest
|
|
|
|
|
|
|
|
# this will restore the following nugets:
|
|
|
|
# - main solution
|
|
|
|
# - Bug report tool
|
|
|
|
# - Webcam report tool
|
|
|
|
# - Installer
|
|
|
|
# - Bootstrapper Installer
|
2022-05-30 17:38:36 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Download and install WiX 3.14 development build
|
|
|
|
inputs:
|
|
|
|
targetType: filePath
|
|
|
|
filePath: '$(build.sourcesdirectory)\.pipelines\installWiX.ps1'
|
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@1
|
|
|
|
displayName: 'Download Localization Files -- PowerToys 37400'
|
|
|
|
inputs:
|
|
|
|
teamId: 37400
|
|
|
|
authId: '$(TouchdownApplicationID)'
|
|
|
|
authKey: '$(TouchdownApplicationKey)'
|
|
|
|
resourceFilePath: |
|
|
|
|
**\Resources.resx
|
|
|
|
**\Resource.resx
|
|
|
|
**\Resources.resw
|
|
|
|
appendRelativeDir: true
|
|
|
|
localizationTarget: false
|
2022-02-11 05:52:28 +08:00
|
|
|
# pseudoSetting: Included
|
2022-02-07 22:08:30 +08:00
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Move Loc files into correct locations
|
|
|
|
inputs:
|
|
|
|
targetType: inline
|
|
|
|
script: >-
|
|
|
|
$VerbosePreference = "Continue"
|
|
|
|
|
|
|
|
./tools/build/move-and-rename-resx.ps1
|
|
|
|
|
|
|
|
./tools/build/move-uwp-resw.ps1
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: CmdLine@2
|
|
|
|
displayName: Moving telem files
|
|
|
|
inputs:
|
|
|
|
script: |
|
|
|
|
call nuget.exe restore -configFile .pipelines/release-nuget.config -PackagesDirectory . .pipelines/packages.config || exit /b 1
|
|
|
|
move /Y "Microsoft.PowerToys.Telemetry.2.0.0\build\include\TraceLoggingDefines.h" "src\common\Telemetry\TraceLoggingDefines.h" || exit /b 1
|
|
|
|
move /Y "Microsoft.PowerToys.Telemetry.2.0.0\build\include\TelemetryBase.cs" "src\common\Telemetry\TelemetryBase.cs" || exit /b 1
|
|
|
|
|
|
|
|
## ALL BUT INSTALLER BUILDING
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build PowerToys main project
|
|
|
|
inputs:
|
|
|
|
solution: '**\PowerToys.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: -restore /p:RestorePackagesConfig=true /p:RestoreConfigFile="$(Build.SourcesDirectory)\.pipelines\release-nuget.config" /p:CIBuild=true /bl:$(Build.SourcesDirectory)\msbuild.binlog
|
2021-12-18 10:15:31 +08:00
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
clean: true
|
2022-11-15 02:38:25 +08:00
|
|
|
maximumCpuCount: true
|
2021-12-18 10:15:31 +08:00
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build BugReportTool
|
|
|
|
inputs:
|
|
|
|
solution: '**/tools/BugReportTool/BugReportTool.sln'
|
2022-02-15 03:41:10 +08:00
|
|
|
vsVersion: 17.0
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: -restore /p:RestorePackagesConfig=true /p:RestoreConfigFile="$(Build.SourcesDirectory)\.pipelines\release-nuget.config" /p:CIBuild=true /bl:$(Build.SourcesDirectory)\msbuild.binlog
|
2021-12-18 10:15:31 +08:00
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
clean: true
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Build WebcamReportTool
|
|
|
|
inputs:
|
|
|
|
solution: '**/tools/WebcamReportTool/WebcamReportTool.sln'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: -restore /p:RestorePackagesConfig=true /p:RestoreConfigFile="$(Build.SourcesDirectory)\.pipelines\release-nuget.config" /p:CIBuild=true /bl:$(Build.SourcesDirectory)\msbuild.binlog
|
2021-12-18 10:15:31 +08:00
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
clean: true
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
2022-04-28 04:21:00 +08:00
|
|
|
- task: VSBuild@1
|
2022-04-28 19:20:05 +08:00
|
|
|
displayName: Build StylesReportTool
|
2022-04-28 04:21:00 +08:00
|
|
|
inputs:
|
2022-04-28 19:20:05 +08:00
|
|
|
solution: '**/tools/StylesReportTool/StylesReportTool.sln'
|
2022-04-28 04:21:00 +08:00
|
|
|
vsVersion: 17.0
|
2023-08-17 00:31:10 +08:00
|
|
|
msbuildArgs: -restore /p:RestorePackagesConfig=true /p:RestoreConfigFile="$(Build.SourcesDirectory)\.pipelines\release-nuget.config" /p:CIBuild=true /bl:$(Build.SourcesDirectory)\msbuild.binlog
|
2022-04-28 04:21:00 +08:00
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
clean: true
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Publish Settings for Packaging
|
|
|
|
inputs:
|
2022-04-20 04:00:28 +08:00
|
|
|
solution: 'src/settings-ui/Settings.UI/PowerToys.Settings.csproj'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2021-12-18 10:15:31 +08:00
|
|
|
msbuildArgs: >-
|
|
|
|
/target:Publish
|
|
|
|
/p:Configuration=$(BuildConfiguration);Platform=$(BuildPlatform);AppxBundle=Never
|
|
|
|
/p:VCRTForwarders-IncludeDebugCRT=false
|
|
|
|
/p:PowerToysRoot=$(Build.SourcesDirectory)
|
|
|
|
/p:PublishProfile=InstallationPublishProfile.pubxml
|
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Publish Launcher for Packaging
|
|
|
|
inputs:
|
|
|
|
solution: 'src/modules/launcher/PowerLauncher/PowerLauncher.csproj'
|
2022-02-07 22:08:30 +08:00
|
|
|
vsVersion: 17.0
|
2021-12-18 10:15:31 +08:00
|
|
|
# The arguments should be the same as the ones for Settings; make sure they are.
|
|
|
|
msbuildArgs: >-
|
|
|
|
/target:Publish
|
|
|
|
/p:Configuration=$(BuildConfiguration);Platform=$(BuildPlatform);AppxBundle=Never
|
|
|
|
/p:VCRTForwarders-IncludeDebugCRT=false
|
|
|
|
/p:PowerToysRoot=$(Build.SourcesDirectory)
|
|
|
|
/p:PublishProfile=InstallationPublishProfile.pubxml
|
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
2022-05-11 23:49:28 +08:00
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Publish Monaco Preview Handler for Packaging
|
|
|
|
inputs:
|
|
|
|
solution: 'src/modules/previewpane/MonacoPreviewHandler/MonacoPreviewHandler.csproj'
|
|
|
|
vsVersion: 17.0
|
|
|
|
# The arguments should be the same as the ones for Settings; make sure they are.
|
|
|
|
msbuildArgs: >-
|
|
|
|
/target:Publish
|
|
|
|
/p:Configuration=$(BuildConfiguration);Platform=$(BuildPlatform);AppxBundle=Never
|
|
|
|
/p:VCRTForwarders-IncludeDebugCRT=false
|
|
|
|
/p:PowerToysRoot=$(Build.SourcesDirectory)
|
|
|
|
/p:PublishProfile=InstallationPublishProfile.pubxml
|
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Publish Markdown Preview Handler for Packaging
|
|
|
|
inputs:
|
|
|
|
solution: 'src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandler.csproj'
|
|
|
|
vsVersion: 17.0
|
|
|
|
# The arguments should be the same as the ones for Settings; make sure they are.
|
|
|
|
msbuildArgs: >-
|
|
|
|
/target:Publish
|
|
|
|
/p:Configuration=$(BuildConfiguration);Platform=$(BuildPlatform);AppxBundle=Never
|
|
|
|
/p:VCRTForwarders-IncludeDebugCRT=false
|
|
|
|
/p:PowerToysRoot=$(Build.SourcesDirectory)
|
|
|
|
/p:PublishProfile=InstallationPublishProfile.pubxml
|
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Publish Svg Preview Handler for Packaging
|
|
|
|
inputs:
|
|
|
|
solution: 'src/modules/previewpane/SvgPreviewHandler/SvgPreviewHandler.csproj'
|
|
|
|
vsVersion: 17.0
|
|
|
|
# The arguments should be the same as the ones for Settings; make sure they are.
|
|
|
|
msbuildArgs: >-
|
|
|
|
/target:Publish
|
|
|
|
/p:Configuration=$(BuildConfiguration);Platform=$(BuildPlatform);AppxBundle=Never
|
|
|
|
/p:VCRTForwarders-IncludeDebugCRT=false
|
|
|
|
/p:PowerToysRoot=$(Build.SourcesDirectory)
|
|
|
|
/p:PublishProfile=InstallationPublishProfile.pubxml
|
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Publish Svg Thumbnail Provider for Packaging
|
|
|
|
inputs:
|
|
|
|
solution: 'src/modules/previewpane/SvgThumbnailProvider/SvgThumbnailProvider.csproj'
|
|
|
|
vsVersion: 17.0
|
|
|
|
# The arguments should be the same as the ones for Settings; make sure they are.
|
|
|
|
msbuildArgs: >-
|
|
|
|
/target:Publish
|
|
|
|
/p:Configuration=$(BuildConfiguration);Platform=$(BuildPlatform);AppxBundle=Never
|
2022-08-27 07:17:20 +08:00
|
|
|
/p:VCRTForwarders-IncludeDebugCRT=false
|
|
|
|
/p:PowerToysRoot=$(Build.SourcesDirectory)
|
|
|
|
/p:PublishProfile=InstallationPublishProfile.pubxml
|
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
[New PowerToy] File Locksmith (#20930)
* Imported offline solution
* Make solution compile
* Add Windows sample, doesn't work?
* Added new project to implement the dll
* Remove unneeded header
* Implemented IUnknown part of ExplorerCommand
* Implemented IExplorerCommand methods
* Implemented ClassFactory
* Implemented DLL register/unregister
* Implemented other DLL exports, not working?
* Implemented IShellExtInit inferface
* Implemented IContextMenu, it works!
* Implement command data fetching
* Make sample project compile on VS 2022
* Add plan
* Implement Lib as separate project
* Implemented IPC, not tested
* Console UI project skeleton
* Implemented basic console UI
* Implemented piping, there are bugs
* Prototype works
* Remove old project
* Added GUI project skeleton
* Mitigate issue with WinUI3
* Added a control for displaying results
* Add button
* Implement core functions in lib project
* Call new library function from console main
* Implement showing results
* Improve UI
* Implemented subdirectory search
* Remove useless code
* Set window size
* UI adjustments
* Implement killing process
* Rename variable
* Add lib project to main solution
* Add Ext and GUI projects to solution
* Tweak packages for GUI project
* Add a settings page
* Add a few resource strings
* Add one more resources string
* VS keeps trying to correct this
* Add references to File Locksmith in /,github
* Implement some parts of FileLocksmithModule
* Change output directory
* Change target name and add to runner
* Add logger
* Started implementing settings backend
* Fix log folder
* Settings work
* Add some basic tracing
* Attempt at adding resources
* Remove junk files
* Added missing defines
* Replaced some constants with resources
Something's not working
* Move resources to the Ext project
* Remove experiment
* Add binaries for signing
* Improve tracing
* Remove old Settings calls
* Show something when there are no results
* Change window title
* Move computation to another thread, improve UX
* Increase font size for default text
* Remove entries for killed processes
* Show user name
* Remove nonrecursive implementation
* Implement back end for getting file names
* Show list of files, UI tweaks
* Remove useless includes
* Implement back end for getting full process path
* Dark title bar on dark themes
* Using Expander, other UI adjustments
* Show "No results" after killing all processes
* Show progress ring
* Update configuration mapping
* Revert "Update configuration mapping"
This reverts commit d8e13206f3c7de3c6dbf880299bfff3bf9f27a37.
* Fixed solution configuration, ARM64 should build
* Backend for refreshing
* Variable window size
* Add refresh button
* New WinUI3 C# project for FL
* Started porting functionality
* Add Interop project
* Move IPC to Ext project
* Ported native functions to Interop
* Ported finding processes
* Ported most of Main Window functionality
* Display paths of files
* Implement killing processes
* Use resource string for "End Task"
* Remove entries for terminated processes
* Show User name
* Set default window size
* Make the new UI the default
* Reading paths from stdin, completed port to C#
* Fix small bug
* Moving to MVVM
* Adding Labs
* Merge branch 'ivan/file-locksmith' of https://github.com/microsoft/PowerToys into ivan/file-locksmith
Removing one parent commit for cleaner history
Co-Authored-By: Niels Laute <niels.laute@live.nl>
* Reintroducing features
* Moving UI strings to resources file
* Restored functionality
* Add missing dlls
* Add FIle Locksmith to publish.cmd
* Rebase fixes
* Try updating nuget.config
* Fix copy-paste blunder
* Add File Locksmith UI for publishing
* Add .pubxml file in FileLocksmith
* Change build output folder
* Fix installer build issues
Remove old projects from solution so MSBuild doesn't build them.
Downgrade target framework to what most other projects are using.
Fix publishing profile and project runtimes.
Remove unused CsWinRT references.
* [CI] Add clear to nuget packages
* Fix module reference counting
* Fix nuget for release CI
* Fix version and signing
* Fix path for resources
* Fix incorrect results when running 2 instances
* Fix default nuget source
* Windows 10 icon and fallback for UI
* Code clean-up and spaces instead of tabs
* Add gif showcasing FL
* Add screenshot of File Locksmith for Settings
* Add new files to the installer
* Add OOBE page
* Showing selected paths in the header
* Tweak path list
* Added new, wider gif
* Add GPO
* Add some logs
* [CI]Get CommunityToolkit.Labs from BigPark feed
* [CI]Use azure package feed for Nuget in release
* [CI]Another try for the labs source
* Revert changes to feed
* Use RestoreAdditionalProjectSources
* Add tooltip to file list
* Change tooltip to not trim the lines
* Add Tips and tricks section mentioning elevated
* Add some more logs messages.
* Grammar fix
* Add to bug report tool
* Fix UI virtualization not working
* Disable virtualization to avoid crashes
* Get better virtualization
* Add dialog instead of tooltip to show list of items
* No results refresh icon is now a button too
* Use managed methods for handling processes
* Remove registry code from Ext.
* Support drives too
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
2022-10-28 21:51:21 +08:00
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: Publish File Locksmith UI for Packaging
|
|
|
|
inputs:
|
|
|
|
solution: 'src/modules/FileLocksmith/FileLocksmithUI/FileLocksmithUI.csproj'
|
|
|
|
vsVersion: 17.0
|
|
|
|
# The arguments should be the same as the ones for Settings; make sure they are.
|
|
|
|
msbuildArgs: >-
|
|
|
|
/target:Publish
|
|
|
|
/p:Configuration=$(BuildConfiguration);Platform=$(BuildPlatform);AppxBundle=Never
|
|
|
|
/p:VCRTForwarders-IncludeDebugCRT=false
|
|
|
|
/p:PowerToysRoot=$(Build.SourcesDirectory)
|
|
|
|
/p:PublishProfile=InstallationPublishProfile.pubxml
|
|
|
|
platform: $(BuildPlatform)
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
maximumCpuCount: true
|
|
|
|
|
2023-07-20 07:12:46 +08:00
|
|
|
# Check if deps.json files don't reference different dll versions.
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Audit deps.json files for all applications
|
|
|
|
inputs:
|
|
|
|
filePath: '.pipelines/verifyDepsJsonLibraryVersions.ps1'
|
|
|
|
arguments: -targetDir '$(build.sourcesdirectory)\$(BuildPlatform)\$(BuildConfiguration)'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
# Check if asset files on the main application paths are playing nice and avoiding basic conflicts.
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Audit base applications path asset conflicts
|
|
|
|
inputs:
|
|
|
|
filePath: '.pipelines/verifyPossibleAssetConflicts.ps1'
|
|
|
|
arguments: -targetDir '$(build.sourcesdirectory)\$(BuildPlatform)\$(BuildConfiguration)'
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Audit WinAppSDK applications path asset conflicts
|
|
|
|
inputs:
|
|
|
|
filePath: '.pipelines/verifyPossibleAssetConflicts.ps1'
|
|
|
|
arguments: -targetDir '$(build.sourcesdirectory)\$(BuildPlatform)\$(BuildConfiguration)\WinUI3Apps'
|
|
|
|
pwsh: true
|
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
#### MAIN SIGNING AREA
|
|
|
|
# reference https://dev.azure.com/microsoft/Dart/_git/AppDriver?path=/ESRPSigning.json&version=GBarm64-netcore&_a=contents for winappdriver
|
|
|
|
# https://dev.azure.com/microsoft/Dart/_git/AppDriver?path=/CIPolicy.xml&version=GBarm64-netcore&_a=contents
|
2022-02-07 22:08:30 +08:00
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
|
|
|
|
displayName: Sign Core PT
|
|
|
|
inputs:
|
|
|
|
ConnectedServiceName: 'Terminal/Console/WinAppDriver Team Code Signing Connection'
|
2022-06-24 20:06:44 +08:00
|
|
|
FolderPath: '$(BuildPlatform)/$(BuildConfiguration)' # Video conf uses x86 and x64.
|
2021-12-18 10:15:31 +08:00
|
|
|
signType: batchSigning
|
|
|
|
batchSignPolicyFile: '$(build.sourcesdirectory)\.pipelines\ESRPSigning_core.json'
|
|
|
|
ciPolicyFile: '$(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
|
2022-06-24 20:06:44 +08:00
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
|
|
|
|
displayName: Sign x86 directshow VCM
|
|
|
|
inputs:
|
|
|
|
ConnectedServiceName: 'Terminal/Console/WinAppDriver Team Code Signing Connection'
|
2022-06-24 20:06:44 +08:00
|
|
|
FolderPath: 'x86/$(BuildConfiguration)' # Video conf uses x86 and x64.
|
2021-12-18 10:15:31 +08:00
|
|
|
signType: batchSigning
|
|
|
|
batchSignPolicyFile: '$(build.sourcesdirectory)\.pipelines\ESRPSigning_vcm.json'
|
|
|
|
ciPolicyFile: '$(build.sourcesdirectory)\.pipelines\CIPolicy.xml'
|
|
|
|
#### END SIGNING
|
|
|
|
## END MAIN
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: 'Publish Artifact: binlog'
|
|
|
|
condition: failed()
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: $(Build.SourcesDirectory)\msbuild.binlog
|
|
|
|
ArtifactName: binlog-$(BuildPlatform)
|
|
|
|
|
|
|
|
- task: ComponentGovernanceComponentDetection@0
|
|
|
|
displayName: Component Detection
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
2022-02-26 00:42:39 +08:00
|
|
|
displayName: Copying files for symbols
|
|
|
|
inputs:
|
|
|
|
contents: >-
|
|
|
|
**/*.pdb
|
|
|
|
flattenFolders: True
|
2022-05-19 21:02:08 +08:00
|
|
|
targetFolder: $(Build.ArtifactStagingDirectory)/Symbols-$(BuildPlatform)/
|
2022-02-26 00:42:39 +08:00
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: 'Remove unneeded files from ArtifactStagingDirectory'
|
|
|
|
inputs:
|
|
|
|
targetType: 'inline'
|
|
|
|
script: |
|
2022-05-19 21:02:08 +08:00
|
|
|
cd $(Build.ArtifactStagingDirectory)/Symbols-$(BuildPlatform)/
|
2022-02-26 00:42:39 +08:00
|
|
|
Remove-Item vc143.pdb
|
|
|
|
Remove-Item *test*
|
|
|
|
|
|
|
|
- task: PublishSymbols@2
|
|
|
|
displayName: Publish symbols path
|
|
|
|
continueOnError: True
|
|
|
|
inputs:
|
|
|
|
SearchPattern: |
|
2022-05-19 21:02:08 +08:00
|
|
|
$(Build.ArtifactStagingDirectory)/Symbols-$(BuildPlatform)/**/*.*
|
2022-02-26 00:42:39 +08:00
|
|
|
IndexSources: false
|
|
|
|
SymbolServerType: TeamServices
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: 'Publish Artifact: Symbols'
|
|
|
|
inputs:
|
2022-05-19 21:02:08 +08:00
|
|
|
PathtoPublish: $(System.ArtifactsDirectory)/Symbols-$(BuildPlatform)/
|
2022-07-14 15:54:58 +08:00
|
|
|
ArtifactName: Symbols-${{ parameters.versionNumber }}-$(BuildPlatform)
|
2022-02-26 00:42:39 +08:00
|
|
|
|
|
|
|
- task: DeleteFiles@1
|
|
|
|
displayName: 'Remove symbols from ArtifactStagingDirectory'
|
|
|
|
inputs:
|
|
|
|
Contents: '*'
|
2022-05-19 21:02:08 +08:00
|
|
|
SourceFolder: $(Build.ArtifactStagingDirectory)/Symbols-$(BuildPlatform)/
|
2022-02-26 00:42:39 +08:00
|
|
|
RemoveSourceFolder: True
|
|
|
|
|
2023-03-31 18:23:57 +08:00
|
|
|
- template: installer-steps.yml
|
|
|
|
parameters:
|
|
|
|
versionNumber: ${{ parameters.versionNumber }}
|
|
|
|
perUserArg: "false"
|
|
|
|
buildSubDir: "MachineSetup"
|
|
|
|
installerPrefix: "PowerToysSetup"
|
|
|
|
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: Clean installer dir before building per-user installer
|
|
|
|
inputs:
|
|
|
|
targetType: inline
|
|
|
|
script: git clean -xfd -e *exe -- .\installer\
|
|
|
|
pwsh: true
|
|
|
|
|
|
|
|
- template: installer-steps.yml
|
|
|
|
parameters:
|
|
|
|
versionNumber: ${{ parameters.versionNumber }}
|
|
|
|
perUserArg: "true"
|
|
|
|
buildSubDir: "UserSetup"
|
|
|
|
installerPrefix: "PowerToysUserSetup"
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: Copying setup file over
|
|
|
|
inputs:
|
|
|
|
contents: "**/PowerToys*Setup-*.exe"
|
|
|
|
flattenFolders: True
|
|
|
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
|
|
|
|
2023-04-10 15:23:29 +08:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: 'Calculating SHA256 hash'
|
|
|
|
inputs:
|
|
|
|
targetType: 'inline'
|
|
|
|
script: |
|
|
|
|
$p = "$(System.ArtifactsDirectory)\";
|
|
|
|
$staging = "$(Build.ArtifactStagingDirectory)\"
|
|
|
|
$userHash = ((get-item $p\PowerToysUserSetup*.exe | Get-FileHash).Hash);
|
|
|
|
$machineHash = ((get-item $p\PowerToysSetup*.exe | Get-FileHash).Hash);
|
|
|
|
$userPlat = "hash_user_$(BuildPlatform).txt";
|
|
|
|
$machinePlat = "hash_machine_$(BuildPlatform).txt";
|
|
|
|
$combinedUserPath = $staging + $userPlat;
|
|
|
|
$combinedMachinePath = $staging + $machinePlat;
|
|
|
|
|
|
|
|
echo $p
|
|
|
|
|
|
|
|
echo $userPlat
|
|
|
|
echo $userHash
|
|
|
|
echo $combinedUserPath
|
|
|
|
|
|
|
|
echo $machinePlat
|
|
|
|
echo $machineHash
|
|
|
|
echo $combinedMachinePath
|
|
|
|
|
|
|
|
$userHash | out-file -filepath $combinedUserPath
|
|
|
|
$machineHash | out-file -filepath $combinedMachinePath
|
|
|
|
pwsh: true
|
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
- task: PublishBuildArtifacts@1
|
2023-03-31 18:23:57 +08:00
|
|
|
displayName: "Publish Artifact: PowerToySetup"
|
2021-12-18 10:15:31 +08:00
|
|
|
inputs:
|
|
|
|
PathtoPublish: $(System.ArtifactsDirectory)
|
2022-02-26 00:42:39 +08:00
|
|
|
ArtifactName: setup-$(BuildPlatform)
|
2022-10-17 03:49:11 +08:00
|
|
|
|
2023-05-10 04:40:42 +08:00
|
|
|
# Publishing the GPO files with a version number
|
2022-10-26 21:02:31 +08:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: 'Publish Artifact: GPO Files'
|
|
|
|
inputs:
|
2022-12-29 02:01:00 +08:00
|
|
|
PathtoPublish: src\gpo\assets
|
2023-05-10 04:40:42 +08:00
|
|
|
ArtifactName: GroupPolicyObjectsFiles-${{ parameters.versionNumber }}
|
2022-10-26 21:02:31 +08:00
|
|
|
|
2022-10-17 03:49:11 +08:00
|
|
|
|
2021-12-18 10:15:31 +08:00
|
|
|
...
|