Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (14 sloc) 444 Bytes
#!/bin/bash
SWIFT_VERSION="4.1.2-RELEASE"
SWIFT="Toolchains/swift-$SWIFT_VERSION.xctoolchain/usr/bin/swift"
. bootstrap.sh
# Generate Xcode projects
if [ $(program_is_installed xcrun) == 1 ]; then
echo "Generate Xcode project..."
$SWIFT package generate-xcodeproj
fi
# Run
$(npm bin)/webpack
$SWIFT run -c release --static-swift-stdlib --build-path .build/swift-$SWIFT_VERSION &
$(npm bin)/webpack -w
killall -9 PlaygroundServer