8214780: Create pandoc package for Windows
Reviewed-by: erikj
This commit is contained in:
parent
fcc8504537
commit
044dd119da
@ -425,7 +425,7 @@ var getJibProfilesProfiles = function (input, common, data) {
|
||||
"windows-x64": {
|
||||
target_os: "windows",
|
||||
target_cpu: "x64",
|
||||
dependencies: ["devkit", "graalunit_lib"],
|
||||
dependencies: ["devkit", "pandoc", "graalunit_lib"],
|
||||
configure_args: concat(common.configure_args_64bit),
|
||||
},
|
||||
|
||||
|
@ -41,6 +41,9 @@ if [[ $TARGET_PLATFORM == linux_x64 ]] ; then
|
||||
elif [[ $TARGET_PLATFORM == macosx_x64 ]] ; then
|
||||
PANDOC_PLATFORM=macOS
|
||||
PANDOC_SUFFIX=zip
|
||||
elif [[ $TARGET_PLATFORM == windows_x64 ]] ; then
|
||||
PANDOC_PLATFORM=windows-x86_64
|
||||
PANDOC_SUFFIX=zip
|
||||
else
|
||||
echo "Unknown platform"
|
||||
exit 1
|
||||
@ -59,7 +62,12 @@ fi
|
||||
cd ..
|
||||
|
||||
mkdir pandoc
|
||||
cp tmp/pandoc-$PANDOC_VERSION/bin/pandoc pandoc
|
||||
if [[ $TARGET_PLATFORM == windows_x64 ]] ; then
|
||||
cp tmp/pandoc-$PANDOC_VERSION-$PANDOC_PLATFORM/pandoc.exe pandoc
|
||||
chmod +x pandoc/pandoc.exe
|
||||
else
|
||||
cp tmp/pandoc-$PANDOC_VERSION/bin/pandoc pandoc
|
||||
fi
|
||||
|
||||
tar -cvzf ../$BUNDLE_NAME pandoc
|
||||
cp ../$BUNDLE_NAME "$ORIG_DIR"
|
||||
|
Loading…
Reference in New Issue
Block a user