mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
Linux: Fix xcompile condition
This commit is contained in:
parent
efb124c0f4
commit
319c374656
@ -103,13 +103,13 @@ public static class TargetsHelper
|
||||
}
|
||||
if ((allPkg || packageType == "deb") && (!requireCompatiblePlatform || OperatingSystem.IsLinux()))
|
||||
{
|
||||
if (allPlat || platform == "linux" && (!requireCompatiblePlatform ||
|
||||
if ((allPlat || platform == "linux") && (!requireCompatiblePlatform ||
|
||||
xCompile ||
|
||||
RuntimeInformation.OSArchitecture == Architecture.X64))
|
||||
{
|
||||
yield return new PackageTarget(PackageType.Deb, Platform.Linux);
|
||||
}
|
||||
if (allPlat || platform == "linuxarm" && (!requireCompatiblePlatform ||
|
||||
if ((allPlat || platform == "linuxarm") && (!requireCompatiblePlatform ||
|
||||
xCompile ||
|
||||
RuntimeInformation.OSArchitecture == Architecture.Arm64))
|
||||
{
|
||||
@ -118,13 +118,13 @@ public static class TargetsHelper
|
||||
}
|
||||
if ((allPkg || packageType == "rpm") && (!requireCompatiblePlatform || OperatingSystem.IsLinux()))
|
||||
{
|
||||
if (allPlat || platform == "linux" && (!requireCompatiblePlatform ||
|
||||
if ((allPlat || platform == "linux") && (!requireCompatiblePlatform ||
|
||||
xCompile ||
|
||||
RuntimeInformation.OSArchitecture == Architecture.X64))
|
||||
{
|
||||
yield return new PackageTarget(PackageType.Rpm, Platform.Linux);
|
||||
}
|
||||
if (allPlat || platform == "linuxarm" && (!requireCompatiblePlatform ||
|
||||
if ((allPlat || platform == "linuxarm") && (!requireCompatiblePlatform ||
|
||||
xCompile ||
|
||||
RuntimeInformation.OSArchitecture == Architecture.Arm64))
|
||||
{
|
||||
@ -133,13 +133,13 @@ public static class TargetsHelper
|
||||
}
|
||||
if ((allPkg || packageType == "flatpak") && (!requireCompatiblePlatform || OperatingSystem.IsLinux()))
|
||||
{
|
||||
if (allPlat || platform == "linux" && (!requireCompatiblePlatform ||
|
||||
if ((allPlat || platform == "linux") && (!requireCompatiblePlatform ||
|
||||
xCompile ||
|
||||
RuntimeInformation.OSArchitecture == Architecture.X64))
|
||||
{
|
||||
yield return new PackageTarget(PackageType.Flatpak, Platform.Linux);
|
||||
}
|
||||
if (allPlat || platform == "linuxarm" && (!requireCompatiblePlatform ||
|
||||
if ((allPlat || platform == "linuxarm") && (!requireCompatiblePlatform ||
|
||||
xCompile ||
|
||||
RuntimeInformation.OSArchitecture == Architecture.Arm64))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user