Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate ADMX/ADML policy declaration files from static analysis #148632

Merged
merged 34 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0fe07c1
wip: generate policies
joaomoreno Apr 27, 2022
2f54cb9
fix native modules in /build
joaomoreno Apr 28, 2022
5c1be8d
nice
joaomoreno Apr 29, 2022
bf40655
cleaner
joaomoreno Apr 29, 2022
1b910db
extract description
joaomoreno Apr 29, 2022
c017a66
refactor for reuse
joaomoreno Apr 29, 2022
3396567
:lipstick:
joaomoreno Apr 29, 2022
24c637c
wip: render ADML
joaomoreno May 3, 2022
1d62fb2
end to end render of policies
joaomoreno May 3, 2022
2541c95
working policy xml
joaomoreno May 3, 2022
0b0b0de
nls
joaomoreno May 3, 2022
060c757
localized policies
joaomoreno May 3, 2022
5057992
oops
joaomoreno May 3, 2022
48a64d1
better policy file names
joaomoreno May 3, 2022
ad7828b
clean todos
joaomoreno May 3, 2022
af5c8e5
generate policies at build
joaomoreno May 3, 2022
a0b4595
parallel
joaomoreno May 3, 2022
87e6063
restructure
joaomoreno May 3, 2022
16025c4
:lipstick:
joaomoreno May 3, 2022
8d3f969
Merge remote-tracking branch 'origin/main' into joao/generate-policies
joaomoreno May 3, 2022
44e07e6
do not localize supported version
joaomoreno May 3, 2022
43a486e
fix build
joaomoreno May 4, 2022
f30c764
build: fix policy definition generation
joaomoreno May 4, 2022
ad2f220
policy generation should run on distro only
joaomoreno May 4, 2022
c532174
policy: extract category from config title
joaomoreno May 4, 2022
40c2994
policy types
joaomoreno May 4, 2022
c1e70cd
StringPolicy
joaomoreno May 7, 2022
70ce316
BooleanPolicy
joaomoreno May 7, 2022
862a272
IntPolicy
joaomoreno May 7, 2022
46c3868
argh
joaomoreno May 9, 2022
c1a1fe2
bump cache salt
joaomoreno May 10, 2022
7bdae57
Merge remote-tracking branch 'origin/main' into joao/generate-policies
joaomoreno May 10, 2022
dd12a4e
fix build
joaomoreno May 10, 2022
df19868
compile build
joaomoreno May 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/.cachesalt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-03-02T05:48:19.264Z
2022-05-10T08:20:50.162Z
1 change: 1 addition & 0 deletions build/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.yarnrc
7 changes: 7 additions & 0 deletions build/azure-pipelines/win32/product-build-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ steps:
displayName: Download Electron
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))

- powershell: |
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
exec { node build\lib\policies }
displayName: Generate Group Policy definitions
condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))

- powershell: |
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
Expand Down
4 changes: 3 additions & 1 deletion build/gulpfile.vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
result = es.merge(result, gulp.src('resources/win32/VisualElementsManifest.xml', { base: 'resources/win32' })
.pipe(rename(product.nameShort + '.VisualElementsManifest.xml')));

result = es.merge(result, gulp.src('resources/win32/policies/**', { base: 'resources/win32' }));
result = es.merge(result, gulp.src('.build/policies/win32/**', { base: '.build/policies/win32' })
.pipe(rename(f => f.dirname = `policies/${f.dirname}`)));

} else if (platform === 'linux') {
result = es.merge(result, gulp.src('resources/linux/bin/code.sh', { base: '.' })
.pipe(replace('@@PRODNAME@@', product.nameLong))
Expand Down
Loading