IntialCommit

This commit is contained in:
2025-07-14 00:29:30 -04:00
commit 32dacbe27b
91 changed files with 4368 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
param(
[Parameter(Mandatory=$true)]
[string]
$EnginePath,
[Parameter(Mandatory=$true)]
[string]
$EngineVersion
)
function New-TemporaryDirectory {
$parent = [System.IO.Path]::GetTempPath()
$name = [System.IO.Path]::GetRandomFileName()
New-Item -ItemType Directory -Path (Join-Path $parent $name)
}
$PackagePath = New-TemporaryDirectory
& msbuild "-p:UnrealEngine=$EnginePath;OutputPath=$PackagePath;Versioned=true"
# Add EnabledByDefault property in the descriptor file
Write-Host "Patch plugin descriptor file"
$descriptor = "$PackagePath/VisualStudioTools.uplugin"
$a = Get-Content $descriptor | ConvertFrom-Json
$a | Add-Member -NotePropertyName EnabledByDefault -NotePropertyValue $true -ErrorAction Ignore
$a | ConvertTo-Json -depth 100 | Out-File $descriptor -Encoding utf8
Write-Host "Copy Config folder"
Copy-Item -Path Config -Destination $PackagePath/Config -Recurse
$PublishPath = "publish"
If(!(test-path -PathType Container $PublishPath))
{
New-Item -ItemType Directory -Path $PublishPath | Out-Null
}
Write-Host "Create ZIP package"
$tag = $EngineVersion.Replace(".", "")
$files = Get-ChildItem $PackagePath -Exclude @("Binaries", "Intermediate")
$zip = "$PublishPath/VisualStudioTools_v$($a.VersionName)_ue$tag.zip"
Compress-Archive -Path $files -DestinationPath "$PublishPath/VisualStudioTools_v$($a.VersionName)_ue$tag.zip" -CompressionLevel Fastest
Remove-Item $PackagePath -Force -Recurse
Write-Host "Done: $($zip | Resolve-Path)"

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="SignFiles" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="packages\Microsoft.VisualStudioEng.MicroBuild.Core.0.4.1\build\Microsoft.VisualStudioEng.MicroBuild.Core.props" />
<PropertyGroup>
<BaseOutputDirectory>$(MSBuildThisFileDirectory)../../out/</BaseOutputDirectory>
<!-- These properties are required by MicroBuild, which only signs files that are under these paths -->
<IntermediateOutputPath>$(BaseOutputDirectory)</IntermediateOutputPath>
<OutDir>$(BaseOutputDirectory)</OutDir>
</PropertyGroup>
<ItemGroup>
<FilesToSign Include="$(OutDir)\VisualStudioTools.zip.cat">
<Authenticode>Microsoft400</Authenticode>
</FilesToSign>
</ItemGroup>
<Import Project="packages\Microsoft.VisualStudioEng.MicroBuild.Core.0.4.1\build\Microsoft.VisualStudioEng.MicroBuild.Core.targets" />
</Project>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.VisualStudioEng.MicroBuild.Core" version="0.4.1" targetFramework="native" developmentDependency="true" />
</packages>