File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,21 @@ if (Test-Path var/lib/pacman/local/mingw-w64-*-asciidoctor-extensions-[0-9]* -Pa
99
99
# Uninstall mingw-w64-asciidoctor-extensions
100
100
test ! -d /var/lib/pacman/local/mingw-w64-$carch-asciidoctor-extensions-[0-9]* || {
101
101
pacman -R --noconfirm mingw-w64-$carch-asciidoctor-extensions &&
102
- # Uninstall the `asciidoctor` gem and install `mingw-w64-asciidoctor` instead
102
+ # Uninstall the `asciidoctor` gem
103
103
gem uninstall asciidoctor
104
104
} || exit 1
105
-
106
- pacman -S --noconfirm mingw-w64-$carch-asciidoctor || exit 1
107
105
done
108
106
'@
109
- if (! $? ) { die " Could not re-install asciidoctor" }
107
+ if (! $? ) { die " Could not remove asciidoctor-extensions" }
108
+ }
109
+
110
+ # asciidoctor is needed to build mingw-w64-git. Let's install it if it's not present.
111
+ if (! (Test-Path var / lib/ pacman/ local/ mingw- w64-*- asciidoctor- [0 - 9 ]* - PathType Container)) {
112
+ bash - lc @'
113
+ set -x
114
+ pacman -S --noconfirm mingw-w64-clang-aarch64-asciidoctor || exit 1
115
+ '@
116
+ if (! $? ) { die " Could not install asciidoctor" }
110
117
}
111
118
112
119
# Pacman sometimes writes `.pacnew` files; We want to rename them and let
You can’t perform that action at this time.
0 commit comments