Skip to content

Commit 6a087dc

Browse files
committed
Make it work on linux
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent 9a06abf commit 6a087dc

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: dotnet pack -c Release /p:BuildNumber=${{ github.run_number }}
3737
- name: Test Template
3838
run: |
39-
dotnet new install .\artifacts\BytecodeAlliance.Componentize.DotNet.Templates.*.nupkg
39+
dotnet new install ./artifacts/BytecodeAlliance.Componentize.DotNet.Templates.*.nupkg
4040
dotnet new componentize.wasi.cli -o test
4141
cd test
4242
dotnet build

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
"datatype": "string",
2525
"cases": [
2626
{
27-
"condition": "(OS == \"Windows_NT\")",
27+
"condition": "(env:OS == \"Windows_NT\")",
2828
"value": "windows"
2929
},
3030
{
31-
"condition": "(OS == \"Linux\")",
32-
"value": "lunux"
31+
"condition": "(env:OS != \"Windows_NT\")",
32+
"value": "linux"
3333
}
3434
]
3535
}
@@ -40,13 +40,9 @@
4040
"description": "Welcome to Componetize dotnet",
4141
"manualInstructions": [
4242
{
43-
"text": "To get started run dotnet build. Learn more at https://github.com/bytecodealliance/componentize-dotnet."
43+
"text": "To get started run `dotnet build` inside your new project. Learn more at https://github.com/bytecodealliance/componentize-dotnet."
4444
}
4545
],
46-
"args": {
47-
"executable": "dotnet build",
48-
"args": "<your project name>"
49-
},
5046
"actionId": "AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C",
5147
"continueOnError": true
5248
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// See https://aka.ms/new-console-template for more information
2-
Console.WriteLine("Hello, world!");
2+
Console.WriteLine("Hello, world from compontize-dotnet!");

0 commit comments

Comments
 (0)