Refactor output path

This commit is contained in:
CHINBOY
2025-03-10 20:46:28 +08:00
parent 47b45005de
commit 23cba087ae
3 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -3,7 +3,8 @@
<PackageOutputPath>$(MSBuildThisFileDirectory)..\output\Nuget\</PackageOutputPath>
<OutputPathWithoutFramework>$(MSBuildThisFileDirectory)..\output\bin\$(Configuration)\</OutputPathWithoutFramework>
<OutputPath>$(OutputPathWithoutFramework)\$(TargetFramework)\</OutputPath>
<IntermediateOutputPathWithoutFramework>$(MSBuildThisFileDirectory)..\output\$(MSBuildProjectName)\obj\$(Configuration)\</IntermediateOutputPathWithoutFramework>
<IntermediateOutputPath>$(IntermediateOutputPathWithoutFramework)$(TargetFramework)\</IntermediateOutputPath>
<IntermediateOutputPathWithoutFramework>$(BaseIntermediateOutputPath)\</IntermediateOutputPathWithoutFramework>
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)..\output\$(MSBuildProjectName)\obj\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)\$(TargetFramework)\</IntermediateOutputPath>
</PropertyGroup>
</Project>
+3 -3
View File
@@ -65,8 +65,8 @@
</ItemGroup>
<PropertyGroup>
<AtomUINativeWindowsX64Artifact>$(OutputPath)$(AtomUINativeWindowsX64DeployPath)/$(AtomUINativeWindowsArtifactName)</AtomUINativeWindowsX64Artifact>
<AtomUINativeMacOSArtifact>$(OutputPath)$(AtomUINativeMacOSDeployPath)/$(AtomUINativeMacOSArtifactName)</AtomUINativeMacOSArtifact>
<AtomUINativeWindowsX64Artifact>$(OutputPathWithoutFramework)$(AtomUINativeWindowsX64DeployPath)/$(AtomUINativeWindowsArtifactName)</AtomUINativeWindowsX64Artifact>
<AtomUINativeMacOSArtifact>$(OutputPathWithoutFramework)$(AtomUINativeMacOSDeployPath)/$(AtomUINativeMacOSArtifactName)</AtomUINativeMacOSArtifact>
</PropertyGroup>
<ItemGroup Condition=" '$(Configuration)' == 'Release' ">
@@ -105,7 +105,7 @@
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
<Content Include="$(AtomUIPackageOutput)/$(AtomUINativeDeployPath)/$(AtomUINativeArtifactName)">
<Content Include="$(AtomUIPackageOutputWithoutFramework)/$(AtomUINativeDeployPath)/$(AtomUINativeArtifactName)">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>$(AtomUINativeDeployPath)/$(AtomUINativeArtifactName)</Link>
</Content>
+1 -1
View File
@@ -20,7 +20,7 @@ $buildMarker = Join-Path -Path $buildDir -ChildPath ".native_compiled"
if (-not (Test-Path -Path $buildMarker -PathType Leaf)) {
# 如果文件不存在,则创建(自动创建父目录)
New-Item -Path $buildMarker -ItemType File -Force
New-Item -Path $buildMarker -ItemType File -Force | Out-Null
} else {
return
}