More macos release candidate tweaks.

This commit is contained in:
John MacFarlane
2023-03-12 20:36:45 -07:00
parent 2c7b7620ab
commit 7916940c23
3 changed files with 4 additions and 12 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: macos-amd64
path: macos-amd64
name: macos-x86_64
path: macos-x86_64
# linux:
+1 -1
View File
@@ -8,7 +8,7 @@
<!-- <welcome file="welcome.html" mime-type="text/html" /> -->
<license file="license.html" mime-type="text/html" />
<!-- <conclusion file="conclusion.html" mime-type="text/html" /> -->
<options hostArchitectures="x86_64" />
<options hostArchitectures="ARCHITECTURE" />
<!-- List all component packages -->
<pkg-ref id="net.johnmacfarlane.pandoc"
version="PANDOCVERSION"
+1 -9
View File
@@ -1,14 +1,6 @@
#!/bin/sh -e
MACHINE=$(uname -m)
case "$MACHINE" in
x86_64) ARCHITECTURE=amd64;;
i686) ARCHITECTURE=i386;;
i386) ARCHITECTURE=i386;;
aarch64) ARCHITECTURE=arm64;;
armv6l | armv7l) ARCHITECTURE=armhf;;
*) ARCHITECTURE=unknown;;
esac
VERSION=$(grep '^[Vv]ersion:' pandoc.cabal | awk '{print $2;}')
ARTIFACTS=macos-$MACHINE
@@ -46,7 +38,7 @@ cp man/pandoc-lua.1 "$DEST/share/man/man1/pandoc-lua.1"
# Prepare distribution directory; after downloading, run 'make' to notarize
echo "Preparing distribution directory..."
chown -R "$ME:staff" "$ROOT"
sed -e "s/PANDOCVERSION/$VERSION/" macos/distribution.xml.in > "$ARTIFACTS/distribution.xml"
sed -e "s/PANDOCVERSION/$VERSION/; s/ARCHITECTURE/$MACHINE/;" macos/distribution.xml.in > "$ARTIFACTS/distribution.xml"
cp macos/Makefile "$ARTIFACTS/"
echo "$VERSION" > "$ARTIFACTS/version.txt"