0dba9b709d
* Revert "build/makefile fixes from develop (#8926)" This reverts commit65d6098613. * Revert "chore(build): remove grunt and add makefile [EE-4824] (#8803)" This reverts commit5fd36ee986.
22 lines
485 B
PowerShell
Executable File
22 lines
485 B
PowerShell
Executable File
param (
|
|
[string]$platform,
|
|
[string]$arch
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop";
|
|
|
|
$binary = "portainer.exe"
|
|
$project_path = $((Get-Location).Path)
|
|
|
|
New-Item -Name dist -Path "$project_path" -ItemType Directory | Out-Null
|
|
Set-Location -Path "$project_path\api\cmd\portainer"
|
|
|
|
# copy templates
|
|
Copy-Item -Path "./mustache-templates" -Destination "./dist" -Recurse
|
|
|
|
|
|
C:\go\bin\go.exe get -t -d -v ./...
|
|
C:\go\bin\go.exe build -v
|
|
|
|
Move-Item -Path "$($binary)" -Destination "..\..\..\dist"
|