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\
|
copy /y "%TEMP%\pandoc\pandoc-citeproc.exe" C:\Utils\Console\
|
||||||
rmdir /s /q "%TEMP%\pandoc\"
|
rmdir /s /q "%TEMP%\pandoc\"
|
||||||
|
|
||||||
## Mac OS X
|
## MacOS
|
||||||
|
|
||||||
- There is a package installer at pandoc's [download page].
|
- There is a package installer at pandoc's [download page].
|
||||||
If you later want to uninstall the package, you can do so
|
If you later want to uninstall the package, you can do so
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
and running it with `perl uninstall-pandoc.pl`.
|
and running it with `perl uninstall-pandoc.pl`.
|
||||||
|
|
||||||
- It is possible to extract the pandoc and pandoc-citeproc
|
- 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):
|
the installer. To do this (for the version 1.19.1 package):
|
||||||
|
|
||||||
mkdir pandoc-extract
|
mkdir pandoc-extract
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -27,8 +27,8 @@ dist: man/pandoc.1
|
||||||
debpkg: man/pandoc.1
|
debpkg: man/pandoc.1
|
||||||
make -C deb
|
make -C deb
|
||||||
|
|
||||||
osxpkg: man/pandoc.1
|
macospkg: man/pandoc.1
|
||||||
./osx/make_osx_package.sh
|
./macos/make_macos_package.sh
|
||||||
|
|
||||||
winpkg: pandoc-$(version)-windows.msi
|
winpkg: pandoc-$(version)-windows.msi
|
||||||
|
|
||||||
|
@ -52,4 +52,4 @@ download_stats:
|
||||||
clean:
|
clean:
|
||||||
stack 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 Windows package (make winpkg)
|
||||||
|
|
||||||
_ Generate Mac OSX package (make osxpkg)
|
_ Generate MacOS package (make macospkg)
|
||||||
|
|
||||||
_ Generate Ubuntu/Debian deb package (make debpkg)
|
_ Generate Ubuntu/Debian deb package (make debpkg)
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
LOCALBIN=$HOME/.local/bin
|
LOCALBIN=$HOME/.local/bin
|
||||||
DIST=`pwd`/osx_package
|
DIST=`pwd`/macos_package
|
||||||
OSX=`pwd`/osx
|
MACOS=`pwd`/macos
|
||||||
VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
|
VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
|
||||||
RESOURCES=$DIST/Resources
|
RESOURCES=$DIST/Resources
|
||||||
ROOT=$DIST/pandoc
|
ROOT=$DIST/pandoc
|
||||||
DEST=$ROOT/usr/local
|
DEST=$ROOT/usr/local
|
||||||
SCRIPTS=$OSX/osx-resources
|
SCRIPTS=$MACOS/macos-resources
|
||||||
BASE=pandoc-$VERSION
|
BASE=pandoc-$VERSION
|
||||||
ME=$(whoami)
|
ME=$(whoami)
|
||||||
PACKAGEMAKER=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
|
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:
|
# We need this for hsb2hs:
|
||||||
PATH=$LOCALBIN:$PATH
|
PATH=$LOCALBIN:$PATH
|
||||||
export MACOSX_DEPLOYMENT_TARGET=10.7
|
export MACMACOS_DEPLOYMENT_TARGET=10.7
|
||||||
|
|
||||||
# echo Removing old files...
|
# echo Removing old files...
|
||||||
rm -rf $DIST
|
rm -rf $DIST
|
||||||
|
@ -27,7 +27,7 @@ which hsb2hs || stack install hsb2hs
|
||||||
|
|
||||||
echo Building pandoc...
|
echo Building pandoc...
|
||||||
stack clean
|
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...
|
echo Getting man pages...
|
||||||
make man/pandoc.1
|
make man/pandoc.1
|
||||||
|
@ -41,7 +41,7 @@ PANDOC_CITEPROC_PATH=$DIST/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}
|
||||||
mkdir -p $DEST/bin
|
mkdir -p $DEST/bin
|
||||||
mkdir -p $DEST/share/man/man1
|
mkdir -p $DEST/share/man/man1
|
||||||
for f in pandoc pandoc-citeproc; do
|
for f in pandoc pandoc-citeproc; do
|
||||||
cp $OSX/$f $DEST/bin/;
|
cp $MACOS/$f $DEST/bin/;
|
||||||
done
|
done
|
||||||
cp $PANDOC_CITEPROC_PATH/man/man1/pandoc-citeproc.1 $DEST/share/man/man1/
|
cp $PANDOC_CITEPROC_PATH/man/man1/pandoc-citeproc.1 $DEST/share/man/man1/
|
||||||
cp man/pandoc.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
|
chown -R $ME:staff $DIST
|
||||||
|
|
||||||
echo Copying license...
|
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
|
# Removing executable signing because of a problem that arose in El Capitan
|
||||||
# "source=obsolete resource envelope"
|
# "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:
|
# make sure it's valid... returns nonzero exit code if it isn't:
|
||||||
#spctl --assess --type execute $DEST/bin/pandoc
|
#spctl --assess --type execute $DEST/bin/pandoc
|
||||||
|
|
||||||
echo Creating OSX package...
|
echo Creating MacOS package...
|
||||||
# remove old package first
|
|
||||||
rm -rf $BASE.pkg
|
|
||||||
|
|
||||||
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
|
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
|
# verify signature
|
||||||
spctl --assess --type install $BASE-osx.pkg
|
spctl --assess --type install $BASE-MacOS.pkg
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
rm -r $DIST $OSX/pandoc $OSX/pandoc-citeproc
|
rm -r $DIST $MACOS/pandoc $MACOS/pandoc-citeproc
|
Loading…
Add table
Reference in a new issue