Skip to content

Commit

Permalink
Revert NUKE upgrade to fix NJsonSchema conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Nov 4, 2024
1 parent c8ef153 commit 8069f0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 8 additions & 6 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,11 @@ public static class FileVersionProvider
.DependsOn(BuildElectronApp)
.Executes(() =>
{
(SourceDirectory / "ipa-bcfier-ui" / "dist" / "ipa-bcfier-ui" / "browser")
.Copy(SourceDirectory / "IPA.Bcfier.Revit" / "Resources" / "Browser",
ExistsPolicy.MergeAndOverwrite);

CopyDirectoryRecursively(SourceDirectory / "ipa-bcfier-ui" / "dist" / "ipa-bcfier-ui" / "browser",
SourceDirectory / "IPA.Bcfier.Revit" / "Resources" / "Browser",
DirectoryExistsPolicy.Merge,
FileExistsPolicy.Overwrite);
var revitPluginOutputDirectory = OutputDirectory / "RevitPlugin";
var navisworksPluginOutputDirectory = OutputDirectory / "NavisworksPlugin";

Expand Down Expand Up @@ -304,7 +306,7 @@ public static class FileVersionProvider
using var zipStream = File.OpenRead(OutputDirectory / "electron" / "IPA.Bcfier_Unzipped_Windows_X64.zip");
ZipFile.ExtractToDirectory(zipStream, installerDirectory / "bcfier-app");

(SourceDirectory / "IPA.Bcfier.Revit" / "InstallerAssets").Copy(installerDirectory / "InstallerAssets", ExistsPolicy.MergeAndOverwrite);
CopyDirectoryRecursively(SourceDirectory / "IPA.Bcfier.Revit" / "InstallerAssets", installerDirectory / "InstallerAssets", DirectoryExistsPolicy.Merge, FileExistsPolicy.Overwrite);
foreach (var configuration in configurations)
{
(installerDirectory / configuration).CreateOrCleanDirectory();
Expand Down Expand Up @@ -352,7 +354,7 @@ public static class FileVersionProvider
.DependsOn(Compile)
.Executes(() =>
{
(SourceDirectory / "ipa-bcfier-ui" / "dist" / "ipa-bcfier-ui" / "browser").Copy(SourceDirectory / "IPA.Bcfier.App" / "wwwroot" / "dist" / "en", ExistsPolicy.MergeAndOverwrite);
CopyDirectoryRecursively(SourceDirectory / "ipa-bcfier-ui" / "dist" / "ipa-bcfier-ui" / "browser", SourceDirectory / "IPA.Bcfier.App" / "wwwroot" / "dist" / "en", DirectoryExistsPolicy.Merge, FileExistsPolicy.Overwrite);

// To ensure the tool is always up to date
DotNet("tool update ElectronNET.CLI -g");
Expand Down Expand Up @@ -423,7 +425,7 @@ private void BuildElectronAppInternal(params string[][] electronOptions)
);

var exeFile = (SourceDirectory / "IPA.Bcfier.App" / "bin" / "Desktop").GlobFiles("IPA.Bcfier*.exe").Single();
exeFile.Move(OutputDirectory / "electron" / $"IPA.Bcfier.Setup_{releaseIdentifier}.exe");
MoveFile(exeFile, OutputDirectory / "electron" / $"IPA.Bcfier.Setup_{releaseIdentifier}.exe");

var unpackedDir = (SourceDirectory / "IPA.Bcfier.App" / "bin" / "Desktop").GlobDirectories("*unpacked").Single();
(SourceDirectory / "IPA.Bcfier.App" / "bin" / "Desktop").GlobFiles("**/*.pdb").ForEach(f => f.DeleteFile());
Expand Down
6 changes: 3 additions & 3 deletions build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nuke.GitHub" Version="6.0.0" />
<PackageReference Include="Nuke.WebDocu" Version="6.0.0" />
<PackageReference Include="Nuke.GitHub" Version="5.0.1" />
<PackageReference Include="Nuke.WebDocu" Version="5.0.1" />
<PackageDownload Include="GitVersion.CommandLine" Version="[5.12.0]" />
<PackageReference Include="Nuke.Common" Version="8.1.2" />
<PackageReference Include="Nuke.Common" Version="8.0.0" />
<PackageReference Include="NSwag.CodeGeneration.TypeScript" Version="14.0.7" />
<PackageReference Include="NSwag.MSBuild" Version="14.0.3">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit 8069f0d

Please sign in to comment.