Skip to content

Commit 6d44521

Browse files
build,win: add winget config to set up env
1 parent 29cf623 commit 6d44521

File tree

4 files changed

+151
-0
lines changed

4 files changed

+151
-0
lines changed
+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
2+
# Reference: https://github.com/nodejs/node/blob/main/BUILDING.md#windows
3+
properties:
4+
resources:
5+
- resource: Microsoft.WinGet.DSC/WinGetPackage
6+
id: pythonPackage
7+
directives:
8+
description: Install Python 3.12
9+
module: Microsoft.WinGet.DSC
10+
settings:
11+
id: Python.Python.3.12
12+
source: winget
13+
- resource: Microsoft.WinGet.DSC/WinGetPackage
14+
id: vsPackage
15+
directives:
16+
description: Install Visual Studio 2022 Community
17+
allowPrerelease: true
18+
settings:
19+
id: Microsoft.VisualStudio.2022.Community
20+
source: winget
21+
useLatest: true
22+
- resource: Microsoft.VisualStudio.DSC/VSComponents
23+
id: vsComponents
24+
dependsOn:
25+
- vsPackage
26+
directives:
27+
description: Install required VS workloads and components
28+
settings:
29+
productId: Microsoft.VisualStudio.Product.Community
30+
channelId: VisualStudio.17.Release
31+
includeRecommended: true
32+
components:
33+
- Microsoft.VisualStudio.Workload.NativeDesktop
34+
- Microsoft.VisualStudio.Component.VC.Llvm.Clang
35+
- Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset
36+
- resource: Microsoft.WinGet.DSC/WinGetPackage
37+
id: gitPackage
38+
directives:
39+
description: Install Git
40+
settings:
41+
id: Git.Git
42+
source: winget
43+
- resource: Microsoft.WinGet.DSC/WinGetPackage
44+
id: nasmPackage
45+
directives:
46+
description: Install NetWide Assembler (NASM)
47+
settings:
48+
id: Nasm.Nasm
49+
source: winget
50+
configurationVersion: 0.1.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
2+
# Reference: https://github.com/nodejs/node/blob/main/BUILDING.md#windows
3+
properties:
4+
resources:
5+
- resource: Microsoft.WinGet.DSC/WinGetPackage
6+
id: pythonPackage
7+
directives:
8+
description: Install Python 3.12
9+
module: Microsoft.WinGet.DSC
10+
settings:
11+
id: Python.Python.3.12
12+
source: winget
13+
- resource: Microsoft.WinGet.DSC/WinGetPackage
14+
id: vsPackage
15+
directives:
16+
description: Install Visual Studio 2022 Enterprise
17+
allowPrerelease: true
18+
settings:
19+
id: Microsoft.VisualStudio.2022.Enterprise
20+
source: winget
21+
useLatest: true
22+
- resource: Microsoft.VisualStudio.DSC/VSComponents
23+
id: vsComponents
24+
dependsOn:
25+
- vsPackage
26+
directives:
27+
description: Install required VS workloads and components
28+
settings:
29+
productId: Microsoft.VisualStudio.Product.Enterprise
30+
channelId: VisualStudio.17.Release
31+
includeRecommended: true
32+
components:
33+
- Microsoft.VisualStudio.Workload.NativeDesktop
34+
- Microsoft.VisualStudio.Component.VC.Llvm.Clang
35+
- Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset
36+
- resource: Microsoft.WinGet.DSC/WinGetPackage
37+
id: gitPackage
38+
directives:
39+
description: Install Git
40+
settings:
41+
id: Git.Git
42+
source: winget
43+
- resource: Microsoft.WinGet.DSC/WinGetPackage
44+
id: nasmPackage
45+
directives:
46+
description: Install NetWide Assembler (NASM)
47+
settings:
48+
id: Nasm.Nasm
49+
source: winget
50+
configurationVersion: 0.1.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
2+
# Reference: https://github.com/nodejs/node/blob/main/BUILDING.md#windows
3+
properties:
4+
resources:
5+
- resource: Microsoft.WinGet.DSC/WinGetPackage
6+
id: pythonPackage
7+
directives:
8+
description: Install Python 3.12
9+
module: Microsoft.WinGet.DSC
10+
settings:
11+
id: Python.Python.3.12
12+
source: winget
13+
- resource: Microsoft.WinGet.DSC/WinGetPackage
14+
id: vsPackage
15+
directives:
16+
description: Install Visual Studio 2022 Professional
17+
allowPrerelease: true
18+
settings:
19+
id: Microsoft.VisualStudio.2022.Professional
20+
source: winget
21+
useLatest: true
22+
- resource: Microsoft.VisualStudio.DSC/VSComponents
23+
id: vsComponents
24+
dependsOn:
25+
- vsPackage
26+
directives:
27+
description: Install required VS workloads and components
28+
settings:
29+
productId: Microsoft.VisualStudio.Product.Professional
30+
channelId: VisualStudio.17.Release
31+
includeRecommended: true
32+
components:
33+
- Microsoft.VisualStudio.Workload.NativeDesktop
34+
- Microsoft.VisualStudio.Component.VC.Llvm.Clang
35+
- Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset
36+
- resource: Microsoft.WinGet.DSC/WinGetPackage
37+
id: gitPackage
38+
directives:
39+
description: Install Git
40+
settings:
41+
id: Git.Git
42+
source: winget
43+
- resource: Microsoft.WinGet.DSC/WinGetPackage
44+
id: nasmPackage
45+
directives:
46+
description: Install NetWide Assembler (NASM)
47+
settings:
48+
id: Nasm.Nasm
49+
source: winget
50+
configurationVersion: 0.1.0

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
!.mailmap
2222
!.nycrc
2323
!.yamllint.yaml
24+
!.configurations/
2425

2526
# === Rules for root dir ===
2627
/core

0 commit comments

Comments
 (0)