mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
More macos release candidate tweaks.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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,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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user