[swift-dev] buildbot configuration + etc
Mishal Shah
mishal_shah at apple.com
Tue Dec 15 03:50:19 CST 2015
Hi Travis,
(Hopefully this message will be sent, last message was blocked due to 40KB limit)
How to create OS X Toolchain?
Xcode toolchain is created using buildbot_osx_package preset, which supports two types of packages.
- Installer(.pkg)
This is similer to what is provide on swift.org <http://swift.org/> website, however you will need installer and application cert.
- Tarball(tar.gz)
This is not code signed and it will contain complete path from "install_toolchain_dir" argument, to install it you can use "sudo darwin install package.tar.gz"
Arguments for buildbot_osx_package preset:
install_destdir - "the path to use as the filesystem root for the installation"
installable_package - "the path to the archive of the installation directory"
install_toolchain_dir - "installation prefix"
install_symroot - "the path to install debug symbols into"
symbols_package - "the path to the archive of the symbols directory"
darwin_toolchain_bundle_identifier - "CFBundleIdentifier for xctoolchain info plist"
darwin_toolchain_display_name - "Display Name for xctoolcain info plist"
darwin_toolchain_xctoolchain_name - "Directory name for xctoolchain"
darwin_toolchain_version - "Version for xctoolchain info plist and installer pkg"
darwin_toolchain_app_cert - "Application Cert name to codesign xctoolchain"
darwin_toolchain_installer_cert - "Installer Cert name to create installer pkg"
darwin_toolchain_installer_package - "The path to installer pkg"
Examples:
Installer:
SRC_DIR="$(pwd)"
swift/utils/build-script \
--preset="buildbot_osx_package" \
install_destdir="${SRC_DIR}/swift_install" \
installable_package="${SRC_DIR}/swift-2.2-dev-osx.tar.gz" \
install_toolchain_dir="/Library/Developer/Toolchains/swift-2.2-dev.xctoolchain" \
install_symroot="${SRC_DIR}/swift_symroot" \
symbols_package="${SRC_DIR}/swift-2.2-dev-osx-symbols.tar.gz" \
darwin_toolchain_bundle_identifier="com.test.xyz <http://com.test.xyz/>" \
darwin_toolchain_display_name="Swift 2.2 Dev" \
darwin_toolchain_xctoolchain_name="swift-2.2-dev" \
darwin_toolchain_version="2.2-dev" \
darwin_toolchain_app_cert="Mac Developer: Name (xxxxxxxx)" \
darwin_toolchain_installer_cert="Developer ID Installer: Name (xxxxxxxx)" \
darwin_toolchain_installer_package="${SRC_DIR}/swift-2.2-dev-osx.pkg"
tar.gz only:
SRC_DIR="$(pwd)"
swift/utils/build-script \
--preset="buildbot_osx_package" \
install_destdir="${SRC_DIR}/swift_install" \
installable_package="${SRC_DIR}/swift-2.2-dev-osx.tar.gz" \
install_toolchain_dir="/Library/Developer/Toolchains/swift-2.2-dev.xctoolchain" \
install_symroot="${SRC_DIR}/swift_symroot" \
symbols_package="${SRC_DIR}/swift-2.2-dev-osx-symbols.tar.gz" \
darwin_toolchain_bundle_identifier="com.test.xyz <http://com.test.xyz/>" \
darwin_toolchain_display_name="Swift 2.2 Dev" \
darwin_toolchain_xctoolchain_name="swift-2.2-dev" \
darwin_toolchain_version="2.2-dev"
How to install tar.gz?
sudo darwinup install package.tar.gz
Hope this helps.
Thanks,
Mishal Shah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20151215/b2b204a1/attachment.html>
More information about the swift-dev
mailing list