Skip to content

Commit

Permalink
chore: remove tuner from sdk install
Browse files Browse the repository at this point in the history
(cherry picked from commit 79e9f80)
  • Loading branch information
jeromelaban authored and mergify[bot] committed May 12, 2023
1 parent 1b157b0 commit 0634594
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
22 changes: 0 additions & 22 deletions src/Uno.Wasm.Bootstrap/UnoInstallSDKTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ public class UnoInstallSDKTask_v0 : Microsoft.Build.Utilities.Task, ICancelableT
[Required]
public string PackagerOverrideFolderPath { get; set; } = "";

[Required]
public string WasmTunerOverrideFolderPath { get; set; } = "";

[Required]
public string CilStripOverrideFolderPath { get; set; } = "";

Expand Down Expand Up @@ -75,8 +72,6 @@ public class UnoInstallSDKTask_v0 : Microsoft.Build.Utilities.Task, ICancelableT

[Output]
public string? PackagerBinPath { get; set; }
[Output]
public string? WasmTunerBinPath { get; set; }

[Output]
public string? PackagerProjectFile { get; private set; }
Expand Down Expand Up @@ -136,7 +131,6 @@ private async Task InstallNetCoreWasmSdk(CancellationToken ct)
{
void WriteTools()
{
WriteWasmTuner();
WriteCilStrip();
}

Expand Down Expand Up @@ -267,22 +261,6 @@ private void MarkSDKExecutable()
}
}

private void WriteWasmTuner()
{
if (!string.IsNullOrEmpty(WasmTunerOverrideFolderPath))
{
var basePath = Path.Combine(SdkPath, "tools");
Directory.CreateDirectory(basePath);

foreach (var file in Directory.EnumerateFiles(WasmTunerOverrideFolderPath))
{
var destFileName = Path.Combine(basePath, Path.GetFileName(file));
Log.LogMessage($"Copy wasm-tuner {file} to {destFileName}");
File.Copy(file, destFileName, true);
}
}
}

private void WriteCilStrip()
{
if (!string.IsNullOrEmpty(CilStripOverrideFolderPath))
Expand Down
1 change: 0 additions & 1 deletion src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@
TargetFramework="$(TargetFramework)"
TargetFrameworkIdentifier="$(TargetFrameworkIdentifier)"
TargetFrameworkVersion="$(TargetFrameworkVersion)"
WasmTunerOverrideFolderPath="$(MSBuildThisFileDirectory)/wasm-tuner/$(_WasmShellToolSuffix)"
>
<Output TaskParameter="SdkPath" PropertyName="_UnoMonoSdkPath" />
<Output TaskParameter="PackagerBinPath" PropertyName="_UnoMonoPackagerBinPath" />
Expand Down

0 comments on commit 0634594

Please sign in to comment.