forked from aws/porting-advisor-for-graviton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.ps1
More file actions
25 lines (20 loc) · 687 Bytes
/
Copy pathBuild.ps1
File metadata and controls
25 lines (20 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<#
.Synopsis
Converts the porting-advisor python module into a Windows executable.
#>
if (!(Test-Path -Path .venv)) {
.\Setup-Environment.ps1
}
$Filename = .\Get-Binary-Name.ps1
Write-Host "*** Will use $Filename as name ***"
try {
mvn package --file .\src\advisor\tools\graviton-ready-java\pom.xml
} catch {
Write-Host "Could not find Maven. Skipping jar generation for Graviton Ready Java tool."
}
Write-Host "🏗️ Generating executable"
pyinstaller --clean porting-advisor-win-x64.spec --noconfirm
if($LASTEXITCODE -ne 0) {
throw "**ERROR**: pyinstaller failed, binary was not created"
}
Write-Output "🎉 *** Success: Executable saved at dist\$Filename ***"