Skip to content

Commit

Permalink
build script properly works from unrelated directories
Browse files Browse the repository at this point in the history
Lysann Schlegel committed Aug 3, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent aba2886 commit 2d20b36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/Create-Release-Build.ps1
Original file line number Diff line number Diff line change
@@ -10,15 +10,15 @@ $root="$PSScriptRoot/.."
$files = New-Object System.Collections.ArrayList

# build FileDBGenerator
dotnet restore src/FileDBGenerator
dotnet restore "$root/src/FileDBGenerator"
msbuild "$root/RDAExplorer.sln" /target:"src\FileDBGenerator" /property:Configuration=Release
if (!$?) { throw "Failed to build FileDBGenerator" }
$files.AddRange(("$root/src/FileDBGenerator/bin/Release/FileDBGenerator.exe", `
"$root/src/FileDBGenerator/bin/Release/FileDBGenerator.exe.config", `
"$root/src/FileDBGenerator/bin/Release/*.dll"))

# build RDAExplorerGUI
dotnet restore src/RDAExplorerGUI
dotnet restore "$root/src/RDAExplorerGUI"
msbuild "$root/RDAExplorer.sln" /target:"src\RDAExplorerGUI" /property:Configuration=Release
if (!$?) { throw "Failed to build RDAExplorerGUI" }
$files.AddRange(("$root/src/RDAExplorerGUI/bin/Release/RDAExplorerGUI.exe", `
@@ -27,7 +27,7 @@ $files.AddRange(("$root/src/RDAExplorerGUI/bin/Release/RDAExplorerGUI.exe", `

# create zip
$version = (dir "$root/src/RDAExplorerGUI/bin/Release/RDAExplorerGUI.exe").VersionInfo.ProductVersion
$archiveName = "RDAExplorer-" + $version + ".zip"
$archiveName = "$root/RDAExplorer-" + $version + ".zip"
Compress-Archive $files `
-DestinationPath $archiveName `
-Force

0 comments on commit 2d20b36

Please sign in to comment.