diff --git a/Misc/swiftshell-init b/Misc/swiftshell-init index a14a0ce..daf6d59 100755 --- a/Misc/swiftshell-init +++ b/Misc/swiftshell-init @@ -22,5 +22,9 @@ swift build # Uncomment to automatically place a symbolic link to the compiled executable in a folder in your $PATH. #ln -s `pwd`/.build/debug/$NAME /$NAME -swift package generate-xcodeproj -open $NAME.xcodeproj/ +platform=$(uname) + +if [[ "$platform" == 'Darwin' ]]; then + swift package generate-xcodeproj + open $NAME.xcodeproj/ +fi