lib/generators/swift.rb in minke-generator-swift-0.2.2 vs lib/generators/swift.rb in minke-generator-swift-0.4
- old
+ new
@@ -12,11 +12,13 @@
config.template_location = File.expand_path(File.dirname(__FILE__)) + '/swift/scaffold'
config.build_settings = Minke::Generators::BuildSettings.new
config.build_settings.build_commands = Minke::Generators::BuildCommands.new.tap do |bc|
- bc.fetch = [['/bin/bash', '-c', 'swift package fetch'], ['/bin/bash', '-c', 'find Packages/ -type d -name Tests | xargs rm -rf'], ['/bin/bash', '-c', 'swift package generate-xcodeproj']]
- bc.build = [['/bin/bash', '-c', 'swift build -Xcc -fblocks']]
+ bc.fetch = [['/bin/bash', '-c', 'swift package fetch'],
+ ['/bin/bash', '-c', 'find Packages/ -type d -name Tests | xargs rm -rf'],
+ ['/bin/bash', '-c', 'swift package generate-xcodeproj']]
+ bc.build = [['/bin/bash', '-c', 'swift build -c release -Xcc -fblocks -Xlinker -rpath -Xlinker .build/release']]
bc.test = [['/bin/bash', '-c', 'swift test']]
end
config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs|
bs.image = 'ibmcom/kitura-ubuntu:latest'