We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e7d30a commit 90cf0afCopy full SHA for 90cf0af
1 file changed
templates/installPandoc.sh
@@ -3,7 +3,14 @@
3
# This file was automatically generated with PreTeXt {VERSION}.
4
# If you modify this file, PreTeXt will no longer automatically update it.
5
6
-wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-amd64.deb -O pandoc.deb
+# Detect architecture and download appropriate Pandoc version
7
+if uname -m | grep -q "aarch64\|arm64"; then
8
+ # ARM architecture
9
+ wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-arm64.deb -O pandoc.deb
10
+else
11
+ # x86/amd64 architecture
12
+ wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-amd64.deb -O pandoc.deb
13
+fi
14
15
# wait for 60 second and then double check that no other script is using apt-get:
16
sleep 60
0 commit comments