File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -2149,7 +2149,7 @@ if [[ "${INSTALLABLE_PACKAGE}" ]] ; then
2149
2149
echo " -- Create Installer --"
2150
2150
" ${SWIFT_SOURCE_DIR} /utils/toolchain-installer" " ${INSTALL_DESTDIR} /${TOOLCHAIN_PREFIX} " " ${DARWIN_TOOLCHAIN_BUNDLE_IDENTIFIER} " \
2151
2151
" ${DARWIN_TOOLCHAIN_INSTALLER_CERT} " " ${DARWIN_TOOLCHAIN_INSTALLER_PACKAGE} " " ${DARWIN_TOOLCHAIN_INSTALL_LOCATION} " \
2152
- " ${DARWIN_TOOLCHAIN_VERSION} "
2152
+ " ${DARWIN_TOOLCHAIN_VERSION} " " ${SWIFT_SOURCE_DIR} /utils/darwin-installer-scripts "
2153
2153
fi
2154
2154
2155
2155
(cd " ${INSTALL_DESTDIR} " &&
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # ===--- postinstall - Creates symlink after installing xctoolchain ----------===#
3
+ #
4
+ # # This source file is part of the Swift.org open source project
5
+ # #
6
+ # # Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
7
+ # # Licensed under Apache License v2.0 with Runtime Library Exception
8
+ # #
9
+ # # See http://swift.org/LICENSE.txt for license information
10
+ # # See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
11
+ #
12
+ # ===------------------------------------------------------------------------===#
13
+
14
+ INSTALLED_TOOLCHAIN=$2
15
+
16
+ ln -fs " ${INSTALLED_TOOLCHAIN} " " ${INSTALLED_TOOLCHAIN%/* } /swift-latest.xctoolchain"
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ DARWIN_INSTALLER_CERT=$3
17
17
DARWIN_INSTALLER_PACKAGE=$4
18
18
DARWIN_TOOLCHAIN_INSTALL_LOCATION=$5
19
19
DARWIN_TOOLCHAIN_VERSION=$6
20
+ DARWIN_SCRIPTS=$7
20
21
21
22
pkgbuild --root " ${TOOLCHAIN_PREFIX} " --install-location " ${DARWIN_TOOLCHAIN_INSTALL_LOCATION} " " ${DARWIN_INSTALLER_PACKAGE} " \
22
- --version " ${DARWIN_TOOLCHAIN_VERSION} " --identifier " ${DARWIN_BUNDLE_IDENTIFIER} " --sign " ${DARWIN_INSTALLER_CERT} "
23
+ --version " ${DARWIN_TOOLCHAIN_VERSION} " --identifier " ${DARWIN_BUNDLE_IDENTIFIER} " --sign " ${DARWIN_INSTALLER_CERT} " \
24
+ --scripts " ${DARWIN_SCRIPTS} "
You can’t perform that action at this time.
0 commit comments