23
23
--output=* )
24
24
output_directory=" ${1#* =} "
25
25
;;
26
+ --include-arm64-artifacts=* )
27
+ arm64_artifacts_directory=" ${1#* =} "
28
+ ;;
26
29
-* )
27
30
die " Unknown option: $1 "
28
31
;;
@@ -105,13 +108,22 @@ hardlink_all_dlls () {
105
108
106
109
hardlink_all_dlls
107
110
108
-
109
111
# Make a list of files to include
110
112
LIST=" $( ARCH=$ARCH BITNESS=$BITNESS \
111
113
PACKAGE_VERSIONS_FILE=" $SCRIPT_PATH " /root/etc/package-versions.txt \
112
114
sh " $SCRIPT_PATH " /../make-file-list.sh " $@ " ) " ||
113
115
die " Could not generate file list"
114
116
117
+ # ARM64 Windows handling
118
+ ARM64_FOLDER=
119
+ if test -n " $arm64_artifacts_directory "
120
+ then
121
+ echo " Including ARM64 artifacts from $arm64_artifacts_directory " ;
122
+ TARGET=" $( cygpath -au " $output_directory " ) " /Git-" $VERSION " -arm64.tar.bz2
123
+ mkdir -p " $SCRIPT_PATH /root/arm64"
124
+ cp -ar $arm64_artifacts_directory /* " $SCRIPT_PATH /root/arm64"
125
+ ARM64_FOLDER=" arm64"
126
+ fi
115
127
116
128
# Create the archive
117
129
@@ -120,8 +132,8 @@ pacman -Sy --noconfirm tar ||
120
132
die " Could not install tar"
121
133
122
134
echo " Creating .tar.bz2 archive" &&
123
- if ! tar -c -j -f " $TARGET " --directory=/ --exclude=etc/post-install/* $LIST --directory=$SCRIPT_PATH /root bin dev etc tmp mingw$BITNESS && test $? = 1
135
+ if ! tar -c -j -f " $TARGET " --directory=/ --exclude=etc/post-install/* $LIST --directory=$SCRIPT_PATH /root bin dev etc tmp mingw$BITNESS $ARM64_FOLDER && test $? = 1
124
136
then
125
- tar -c -j -f " $TARGET " --directory=/ --exclude=etc/post-install/* $LIST --directory=$SCRIPT_PATH /root bin dev etc tmp mingw$BITNESS
137
+ tar -c -j -f " $TARGET " --directory=/ --exclude=etc/post-install/* $LIST --directory=$SCRIPT_PATH /root bin dev etc tmp mingw$BITNESS $ARM64_FOLDER
126
138
fi &&
127
139
echo " Success! You will find the new archive at \" $TARGET \" ."
0 commit comments