Name change OSX -> MacOS.
Add a -MacOS suffix to mac package rather than -OSX. CHanged local names from osx to macos.
This commit is contained in:
parent
99c2a31749
commit
c96b64e91b
7 changed files with 18 additions and 20 deletions
|
@ -19,7 +19,7 @@
|
|||
copy /y "%TEMP%\pandoc\pandoc-citeproc.exe" C:\Utils\Console\
|
||||
rmdir /s /q "%TEMP%\pandoc\"
|
||||
|
||||
## Mac OS X
|
||||
## MacOS
|
||||
|
||||
- There is a package installer at pandoc's [download page].
|
||||
If you later want to uninstall the package, you can do so
|
||||
|
@ -27,7 +27,7 @@
|
|||
and running it with `perl uninstall-pandoc.pl`.
|
||||
|
||||
- It is possible to extract the pandoc and pandoc-citeproc
|
||||
executables from the osx pkg file, if you'd rather not run
|
||||
executables from the MacOS pkg file, if you'd rather not run
|
||||
the installer. To do this (for the version 1.19.1 package):
|
||||
|
||||
mkdir pandoc-extract
|
||||
|
|
6
Makefile
6
Makefile
|
@ -27,8 +27,8 @@ dist: man/pandoc.1
|
|||
debpkg: man/pandoc.1
|
||||
make -C deb
|
||||
|
||||
osxpkg: man/pandoc.1
|
||||
./osx/make_osx_package.sh
|
||||
macospkg: man/pandoc.1
|
||||
./macos/make_macos_package.sh
|
||||
|
||||
winpkg: pandoc-$(version)-windows.msi
|
||||
|
||||
|
@ -52,4 +52,4 @@ download_stats:
|
|||
clean:
|
||||
stack clean
|
||||
|
||||
.PHONY: deps quick full install clean test bench changes_github osxpkg dist prof download_stats
|
||||
.PHONY: deps quick full install clean test bench changes_github macospkg dist prof download_stats
|
||||
|
|
|
@ -11,7 +11,7 @@ _ Tag templates
|
|||
|
||||
_ Generate Windows package (make winpkg)
|
||||
|
||||
_ Generate Mac OSX package (make osxpkg)
|
||||
_ Generate MacOS package (make macospkg)
|
||||
|
||||
_ Generate Ubuntu/Debian deb package (make debpkg)
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
LOCALBIN=$HOME/.local/bin
|
||||
DIST=`pwd`/osx_package
|
||||
OSX=`pwd`/osx
|
||||
DIST=`pwd`/macos_package
|
||||
MACOS=`pwd`/macos
|
||||
VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
|
||||
RESOURCES=$DIST/Resources
|
||||
ROOT=$DIST/pandoc
|
||||
DEST=$ROOT/usr/local
|
||||
SCRIPTS=$OSX/osx-resources
|
||||
SCRIPTS=$MACOS/macos-resources
|
||||
BASE=pandoc-$VERSION
|
||||
ME=$(whoami)
|
||||
PACKAGEMAKER=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
|
||||
|
@ -16,7 +16,7 @@ DEVELOPER_ID_INSTALLER=${DEVELOPER_ID_INSTALLER:-Developer ID Installer: John Ma
|
|||
|
||||
# We need this for hsb2hs:
|
||||
PATH=$LOCALBIN:$PATH
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.7
|
||||
export MACMACOS_DEPLOYMENT_TARGET=10.7
|
||||
|
||||
# echo Removing old files...
|
||||
rm -rf $DIST
|
||||
|
@ -27,7 +27,7 @@ which hsb2hs || stack install hsb2hs
|
|||
|
||||
echo Building pandoc...
|
||||
stack clean
|
||||
stack install --stack-yaml=$OSX/stack.yaml --local-bin-path . pandoc pandoc-citeproc
|
||||
stack install --stack-yaml=$MACOS/stack.yaml --local-bin-path . pandoc pandoc-citeproc
|
||||
|
||||
echo Getting man pages...
|
||||
make man/pandoc.1
|
||||
|
@ -41,7 +41,7 @@ PANDOC_CITEPROC_PATH=$DIST/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}
|
|||
mkdir -p $DEST/bin
|
||||
mkdir -p $DEST/share/man/man1
|
||||
for f in pandoc pandoc-citeproc; do
|
||||
cp $OSX/$f $DEST/bin/;
|
||||
cp $MACOS/$f $DEST/bin/;
|
||||
done
|
||||
cp $PANDOC_CITEPROC_PATH/man/man1/pandoc-citeproc.1 $DEST/share/man/man1/
|
||||
cp man/pandoc.1 $DEST/share/man/man1/
|
||||
|
@ -49,7 +49,7 @@ cp man/pandoc.1 $DEST/share/man/man1/
|
|||
chown -R $ME:staff $DIST
|
||||
|
||||
echo Copying license...
|
||||
$OSX/pandoc --data data -t html5 -s COPYING.md -o $RESOURCES/license.html
|
||||
$MACOS/pandoc --data data -t html5 -s COPYING.md -o $RESOURCES/license.html
|
||||
|
||||
# Removing executable signing because of a problem that arose in El Capitan
|
||||
# "source=obsolete resource envelope"
|
||||
|
@ -60,17 +60,15 @@ $OSX/pandoc --data data -t html5 -s COPYING.md -o $RESOURCES/license.html
|
|||
# make sure it's valid... returns nonzero exit code if it isn't:
|
||||
#spctl --assess --type execute $DEST/bin/pandoc
|
||||
|
||||
echo Creating OSX package...
|
||||
# remove old package first
|
||||
rm -rf $BASE.pkg
|
||||
echo Creating MacOS package...
|
||||
|
||||
sed -e "s/PANDOCVERSION/$VERSION/" $OSX/distribution.xml.in > $OSX/distribution.xml
|
||||
sed -e "s/PANDOCVERSION/$VERSION/" $MACOS/distribution.xml.in > $MACOS/distribution.xml
|
||||
|
||||
pkgbuild --root $DIST/pandoc --identifier net.johnmacfarlane.pandoc --version 1.13 --ownership recommended $DIST/pandoc.pkg
|
||||
productbuild --distribution $OSX/distribution.xml --resources $DIST/Resources --package-path $DIST --version $VERSION --sign "${DEVELOPER_ID_INSTALLER}" $BASE-osx.pkg
|
||||
productbuild --distribution $MACOS/distribution.xml --resources $DIST/Resources --package-path $DIST --version $VERSION --sign "${DEVELOPER_ID_INSTALLER}" $BASE-MacOS.pkg
|
||||
|
||||
# verify signature
|
||||
spctl --assess --type install $BASE-osx.pkg
|
||||
spctl --assess --type install $BASE-MacOS.pkg
|
||||
|
||||
# cleanup
|
||||
rm -r $DIST $OSX/pandoc $OSX/pandoc-citeproc
|
||||
rm -r $DIST $MACOS/pandoc $MACOS/pandoc-citeproc
|
Loading…
Reference in a new issue