You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/package.sh
+31-9Lines changed: 31 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,10 @@ function tools::install() {
111
111
util::tools::pack::install \
112
112
--directory "${BIN_DIR}" \
113
113
--token "${token}"
114
+
115
+
util::tools::yj::install \
116
+
--directory "${BIN_DIR}" \
117
+
--token "${token}"
114
118
}
115
119
116
120
functionbuildpack::archive() {
@@ -131,7 +135,7 @@ function buildpack::release::archive() {
131
135
132
136
util::print::title "Packaging buildpack into ${BUILD_DIR}/buildpack-release-artifact.tgz..."
133
137
134
-
tmp_dir=$(mktemp -d -p $ROOT_DIR)
138
+
tmp_dir=$(mktemp -d -p $BUILD_DIR)
135
139
136
140
cat <<'README_EOF' > $tmp_dir/README.md
137
141
# Composite buildpack release artifact
@@ -143,7 +147,7 @@ It contains the following files:
143
147
* `buildpack.toml` - this is needed because it contains the buildpacks and ordering information for the composite buildpack
144
148
* `package.toml` - this is needed because it contains the dependencies (and URIs) that let pack know where to find the buildpacks referenced in `buildpack.toml`.
145
149
* `package.toml` can contain targets (platforms) for multi-arch support
146
-
* `build/buildpack.tgz` - this is needed because it contains the actual buildpack referenced in `package.toml`
150
+
* `build/buildpack.tgz` - this is added because it is referenced in `package.toml` by some buildpacks
147
151
148
152
## package locally
149
153
@@ -173,36 +177,54 @@ README_EOF
173
177
# add the buildpack.toml from the tgz file because it has the version populated
174
178
tar -xzf ${BUILD_DIR}/buildpack.tgz -C $tmp_dir/ buildpack.toml
175
179
176
-
tar -cvzf${BUILD_DIR}/buildpack-release-artifact.tgz -C $tmp_dir$(ls $tmp_dir)
180
+
tar -czf${BUILD_DIR}/buildpack-release-artifact.tgz -C $tmp_dir$(ls $tmp_dir)
0 commit comments