Revert "build/makefile fixes from develop (#8926)"

This reverts commit 65d6098613.
pull/8976/head
Matt Hook 2023-05-22 15:18:23 +12:00 committed by Prabhat Khera
parent 29a041e072
commit 292e525539
2 changed files with 26 additions and 11 deletions

View File

@ -1,7 +1,17 @@
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"

View File

@ -2,6 +2,11 @@
set -x
DEBUG=${DEBUG:-""}
if [ -n "$DEBUG" ]; then
set -x
fi
mkdir -p dist
# populate tool versions