mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
18 lines
422 B
PowerShell
18 lines
422 B
PowerShell
|
param (
|
||
|
[string]$platform,
|
||
|
[string]$arch
|
||
|
)
|
||
|
|
||
|
$ErrorActionPreference = "Stop";
|
||
|
|
||
|
$binary = "portainer.exe"
|
||
|
$project_path = (Get-ITEM -Path env:APPVEYOR_BUILD_FOLDER).Value
|
||
|
|
||
|
New-Item -Name dist -Path "$project_path" -ItemType Directory | Out-Null
|
||
|
Set-Location -Path "$project_path\api\cmd\portainer"
|
||
|
|
||
|
C:\go\bin\go.exe get -t -d -v ./...
|
||
|
C:\go\bin\go.exe build -v
|
||
|
|
||
|
Move-Item -Path "$($binary)" -Destination "..\..\..\dist"
|