Skip to content

Commit c882fe2

Browse files
committed
copy license from macOS arm64 binary
1 parent 033a506 commit c882fe2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ jobs:
132132
133133
# Compress the server to an archive
134134
ARCHIVE="$GITHUB_WORKSPACE/kallichore-${{ needs.get_version.outputs.KALLICHORE_VERSION }}${{ env.DEBUG_FLAG }}-darwin-${{ matrix.arch }}.zip"
135-
zip -Xry $ARCHIVE kcserver
135+
[ -e LICENSE.txt ] || cp "$GITHUB_WORKSPACE/LICENSE.txt" LICENSE.txt
136+
zip -Xry $ARCHIVE kcserver LICENSE.txt
136137
137138
popd
138139
@@ -288,6 +289,9 @@ jobs:
288289
# Create a universal binary
289290
lipo -create x64/kcserver arm64/kcserver -output kcserver
290291
292+
# Copy the license
293+
cp arm64/LICENSE.txt LICENSE.txt
294+
291295
# Compress and bundle
292296
ARCHIVE="$GITHUB_WORKSPACE/kallichore-${{ env.RELEASE_TAG }}${{ env.DEBUG_FLAG }}-darwin-universal.zip"
293297
[ -e LICENSE.txt ] || cp "$GITHUB_WORKSPACE/LICENSE.txt" LICENSE.txt

0 commit comments

Comments
 (0)