Skip to content

Commit 0de4d6f

Browse files
authored
Replace Exec task with Unzip task (#267)
* Replace Exec task with Unzip task * Removes dependency on having unzip in path * Removing two properties not supported on Linux and MacOS * CI build failed
1 parent f3c91d2 commit 0de4d6f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Wasmtime.csproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,10 @@ The .NET embedding of Wasmtime enables .NET code to instantiate WebAssembly modu
163163
StandardOutputImportance="Low"
164164
StandardErrorImportance="Low"
165165
/>
166-
<Exec
166+
<Unzip
167167
Condition="('$(Packing)'=='true' Or '%(Wasmtime.Copy)'=='true') And %(Wasmtime.FileExtension) == 'zip' And !Exists('$(BaseIntermediateOutputPath)$(ReleaseFileNameBase)-%(Wasmtime.Arch)-%(Wasmtime.OS)-c-api')"
168-
Command="unzip $(ReleaseFileNameBase)-%(Wasmtime.Arch)-%(Wasmtime.OS)-c-api.%(Wasmtime.FileExtension)"
169-
WorkingDirectory="$(BaseIntermediateOutputPath)"
170-
StandardOutputImportance="Low"
171-
StandardErrorImportance="Low"
168+
SourceFiles="$(BaseIntermediateOutputPath)\$(ReleaseFileNameBase)-%(Wasmtime.Arch)-%(Wasmtime.OS)-c-api.%(Wasmtime.FileExtension)"
169+
DestinationFolder="$(BaseIntermediateOutputPath)"
172170
/>
173171

174172
<!-- The content here is specifically for packing -->

0 commit comments

Comments
 (0)