OWASP / owasp-masvs

The OWASP MASVS (Mobile Application Security Verification Standard) is the industry standard for mobile app security.

Home Page:https://mas.owasp.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make local build working for non macOS

sushi2k opened this issue · comments

commented

The current description of a local build only covers macOS:

#531
https://github.com/OWASP/owasp-masvs#create-new-pdf-epub-mobi-and-word-document

The local build should be working for:

  • macOS
  • macOS M1
  • Linux
  • Windows

Extended for Linux, windows will probably be a bit more work.

We should try tu run sed in the docker container so that the script can be run anywhere.

Not working on macOS M1. I opened an issue including a solution: dalibo/pandocker#227

It should work on Windows thanks to #584, could you please test it @sushi2k / @TheDauntless ?

Testing local M1 build:

PANDOCKER="docker run --rm --volume `pwd`:/pandoc dalibo/pandocker:buster-latest ${PANDOC_PARAMS}"

# remove the HTML comment from \pagebreak
docker run --rm --entrypoint '/bin/sh' --volume `pwd`:/pandoc dalibo/pandocker:buster-latest -c 'sed -i "s#<!-- \(.*\) -->#\1#g" Document/*.md'