2019-09-05 00:26:26 +08:00
|
|
|
environment:
|
|
|
|
host:
|
|
|
|
os: 'windows'
|
|
|
|
flavor: 'server'
|
|
|
|
version: '2016'
|
|
|
|
runtime:
|
|
|
|
provider: 'appcontainer'
|
2019-10-10 03:21:21 +08:00
|
|
|
image: 'cdpxwin.azurecr.io/user/powertoys/vs2019:3.0'
|
|
|
|
source_mode: 'map'
|
|
|
|
|
|
|
|
version:
|
|
|
|
name: 'PowerToys'
|
|
|
|
major: 1
|
|
|
|
minor: 0
|
2019-09-05 00:26:26 +08:00
|
|
|
|
|
|
|
signing_options:
|
2019-10-10 03:21:21 +08:00
|
|
|
profile: 'external_distribution'
|
2019-09-05 00:26:26 +08:00
|
|
|
|
|
|
|
package_sources:
|
|
|
|
nuget:
|
|
|
|
feeds:
|
2019-10-10 03:21:21 +08:00
|
|
|
'Nuget': 'https://api.nuget.org/v3/index.json'
|
|
|
|
'PipelineBuildSupplement': 'https://msazure.pkgs.visualstudio.com/_packaging/PipelineBuildSupplement/nuget/v3/index.json'
|
2019-09-05 00:26:26 +08:00
|
|
|
|
|
|
|
restore:
|
|
|
|
commands:
|
|
|
|
- !!defaultcommand
|
2019-10-10 03:21:21 +08:00
|
|
|
name: 'Restore Power Toys Telemetry'
|
|
|
|
command: '.pipelines\restore-telemetry.cmd'
|
|
|
|
- !!defaultcommand
|
|
|
|
name: 'Restore Power Toys'
|
2019-09-05 00:26:26 +08:00
|
|
|
command: '.pipelines\restore.cmd'
|
2019-10-10 03:21:21 +08:00
|
|
|
- !!defaultcommand
|
|
|
|
name: 'Restore Installer'
|
|
|
|
command: '.pipelines\restore-installer.cmd'
|
|
|
|
|
|
|
|
|
2019-09-05 00:26:26 +08:00
|
|
|
build:
|
|
|
|
commands:
|
|
|
|
- !!buildcommand
|
2019-10-10 03:21:21 +08:00
|
|
|
name: 'Build Power Toys'
|
2019-09-05 00:26:26 +08:00
|
|
|
command: '.pipelines\build.cmd'
|
|
|
|
artifacts:
|
2019-10-10 03:21:21 +08:00
|
|
|
- from: 'x64/Release'
|
2019-09-05 00:26:26 +08:00
|
|
|
to: 'Build_Output'
|
|
|
|
include:
|
2019-10-10 03:21:21 +08:00
|
|
|
- 'PowerToys.exe'
|
|
|
|
- 'PowerToysSettings.exe'
|
|
|
|
- 'modules\FancyZonesEditor.exe'
|
|
|
|
- 'modules\fancyzones.dll'
|
|
|
|
- 'modules\shortcut_guide.dll'
|
|
|
|
signing_options:
|
|
|
|
sign_inline: true # This does signing a soon as this command completes
|
|
|
|
- !!buildcommand
|
|
|
|
name: 'Build Power Toys Installer'
|
|
|
|
command: '.pipelines\build-installer.cmd'
|
|
|
|
artifacts:
|
|
|
|
- from: 'installer\PowerToysSetup\x64\Release'
|
|
|
|
to: 'Build_Installer_Output'
|
|
|
|
include:
|
|
|
|
- 'PowerToysSetup.msi'
|
|
|
|
signing_options:
|
|
|
|
sign_inline: true # This does signing a soon as this command completes
|
2019-10-10 23:25:09 +08:00
|
|
|
|
|
|
|
static_analysis_options:
|
|
|
|
binskim_options:
|
|
|
|
files_to_scan:
|
|
|
|
- from: 'installer/packages'
|
|
|
|
exclude:
|
|
|
|
exclude:
|
|
|
|
- 'WiX.3.11.1/**/*.dll'
|
|
|
|
- 'Wix.3.11.1/**/*.exe'
|
2019-10-15 05:08:08 +08:00
|
|
|
moderncop_options:
|
|
|
|
files_to_scan:
|
|
|
|
- from: 'src'
|
|
|
|
exclude:
|
|
|
|
- '**/just.config.js'
|
|
|
|
- '**/webpack.config.js'
|
|
|
|
- '**/webpack.serve.config.js'
|
|
|
|
- '**/dist/bundle.js'
|
2019-10-10 23:25:09 +08:00
|
|
|
|