Add build time to scripts
This commit is contained in:
parent
88bc5ad4d4
commit
b868eae686
|
|
@ -50,6 +50,8 @@ fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "Building VideoTools..."
|
echo "Building VideoTools..."
|
||||||
|
# Build timer
|
||||||
|
build_start=$(date +%s)
|
||||||
# Fyne needs cgo for GLFW/OpenGL bindings; build with CGO enabled.
|
# Fyne needs cgo for GLFW/OpenGL bindings; build with CGO enabled.
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
export GOCACHE="$PROJECT_ROOT/.cache/go-build"
|
export GOCACHE="$PROJECT_ROOT/.cache/go-build"
|
||||||
|
|
@ -70,7 +72,10 @@ if [ -n "$GST_TAG" ]; then
|
||||||
export GOFLAGS="${GOFLAGS:-} -tags ${GST_TAG}"
|
export GOFLAGS="${GOFLAGS:-} -tags ${GST_TAG}"
|
||||||
fi
|
fi
|
||||||
if go build -o "$BUILD_OUTPUT" .; then
|
if go build -o "$BUILD_OUTPUT" .; then
|
||||||
|
build_end=$(date +%s)
|
||||||
|
build_secs=$((build_end - build_start))
|
||||||
echo "Build successful! (VideoTools $APP_VERSION)"
|
echo "Build successful! (VideoTools $APP_VERSION)"
|
||||||
|
echo "Build time: ${build_secs}s"
|
||||||
echo ""
|
echo ""
|
||||||
echo "════════════════════════════════════════════════════════════════"
|
echo "════════════════════════════════════════════════════════════════"
|
||||||
echo "BUILD COMPLETE - $APP_VERSION"
|
echo "BUILD COMPLETE - $APP_VERSION"
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ case "$OS" in
|
||||||
echo "→ Building VideoTools $APP_VERSION for Windows..."
|
echo "→ Building VideoTools $APP_VERSION for Windows..."
|
||||||
echo ""
|
echo ""
|
||||||
cd "$PROJECT_ROOT"
|
cd "$PROJECT_ROOT"
|
||||||
|
build_start=$(date +%s)
|
||||||
|
|
||||||
echo "Cleaning previous builds..."
|
echo "Cleaning previous builds..."
|
||||||
rm -f VideoTools.exe 2>/dev/null || true
|
rm -f VideoTools.exe 2>/dev/null || true
|
||||||
|
|
@ -71,7 +72,10 @@ case "$OS" in
|
||||||
export GOFLAGS="${GOFLAGS:-} -mod=mod"
|
export GOFLAGS="${GOFLAGS:-} -mod=mod"
|
||||||
fi
|
fi
|
||||||
if go build -ldflags="-H windowsgui -s -w" -o VideoTools.exe .; then
|
if go build -ldflags="-H windowsgui -s -w" -o VideoTools.exe .; then
|
||||||
|
build_end=$(date +%s)
|
||||||
|
build_secs=$((build_end - build_start))
|
||||||
echo "Build successful! (VideoTools $APP_VERSION)"
|
echo "Build successful! (VideoTools $APP_VERSION)"
|
||||||
|
echo "Build time: ${build_secs}s"
|
||||||
echo ""
|
echo ""
|
||||||
if [ -f "setup-windows.bat" ]; then
|
if [ -f "setup-windows.bat" ]; then
|
||||||
echo "════════════════════════════════════════════════════════════════"
|
echo "════════════════════════════════════════════════════════════════"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user