Skip to content

Commit be2043c

Browse files
committed
Simplify using a bind
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 21330ca commit be2043c

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

templates/content/wasi-cli/.template.config/template.json

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,9 @@
1616
},
1717
"symbols": {
1818
"platform": {
19-
"type": "generated",
20-
"generator": "switch",
21-
"datatype": "string",
22-
"parameters": {
23-
"evaluator": "C++",
24-
"datatype": "string",
25-
"cases": [
26-
{
27-
"condition": "(OS == \"Windows_NT\")",
28-
"value": "windows"
29-
},
30-
{
31-
"condition": "(OS == \"Linux\")",
32-
"value": "linux"
33-
},
34-
{
35-
"value": "linux"
36-
}
37-
]
38-
}
19+
"type": "bind",
20+
"binding": "env:OS",
21+
"defaultValue": "linux"
3922
}
4023
},
4124
"postActions": [

templates/content/wasi-cli/wasi-cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="BytecodeAlliance.Componentize.DotNet.Wasm.SDK" Version="0.5.0-preview00008" />
18-
<PackageReference Condition="'$(platform)' == 'windows'" Include="runtime.win-x64.microsoft.dotnet.ilcompiler.llvm" Version="10.0.0-alpha.1.24573.1" />
18+
<PackageReference Condition="'$(platform)' == 'Windows_NT'" Include="runtime.win-x64.microsoft.dotnet.ilcompiler.llvm" Version="10.0.0-alpha.1.24573.1" />
1919
<PackageReference Condition="'$(platform)' == 'linux'" Include="runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm" Version="10.0.0-alpha.1.24573.1" />
2020
</ItemGroup>
2121
</Project>

0 commit comments

Comments
 (0)