SPB Git

Repository Public

build.sh 1012 B 16 lines shellscript

1#!/usr/bin/env bash2# Author: Simon-Pierre Boucher — contact@spboucher.ai3# File: Scripts/build.sh4# Description: Generates the Xcode project and builds the app with its File Provider extension (errors only on the console).5#6# Usage: Scripts/build.sh [Debug|Release] [lines]     Debug = the development variant "SP Drive Dev".7# Products go outside ~/Desktop (the system services that load the extension cannot read there).8set -uo pipefail9cd "$(dirname "$0")/.."10CONFIG="${1:-Debug}"; DD="$HOME/Library/Developer/SPDrive/DerivedData"; mkdir -p Build "$DD"11[[ -d Build/profiles ]] || { echo "profiles missing: run Scripts/provision.py"; exit 1; }12xcodegen generate --quiet13xcodebuild -project SPDrive.xcodeproj -scheme SPDrive -configuration "$CONFIG" -derivedDataPath "$DD" build 2>&1 | sed 's/\x1b\[[0-9;]*m//g' > Build/build.log14grep -E "error:|warning: unre|BUILD" Build/build.log | sed -E "s#$PWD/##" | grep -v "^ *|" | sort -u | cut -c1-300 | head -"${2:-50}"15grep -q "BUILD SUCCEEDED" Build/build.log16
Files main
Menu

Theme