Skip to content

Commit

Permalink
remove pdf references
Browse files Browse the repository at this point in the history
  • Loading branch information
vot4anto committed Nov 21, 2024
1 parent 44c2677 commit 5e684a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
12 changes: 7 additions & 5 deletions installers/windows/nsis/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ sed "s@](\([^:]\+)\)@](https://github.com/gem/oq-engine/blob/${OQ_BRANCH}/\1@g;s
python3 -m markdown /tmp/README.$$.md > README.html
rm /tmp/README.$$.md

# Get a copy of the OQ manual if not yet available
if [ ! -f OpenQuake\ manual.pdf ]; then
wget -O- https://docs.openquake.org/manuals/OpenQuake%20Manual%20%28master%29.pdf > OpenQuake\ manual.pdf
fi
# AE remove on 11/21/24
## Get a copy of the OQ manual if not yet available
#if [ ! -f OpenQuake\ manual.pdf ]; then
# wget -O- https://docs.openquake.org/manuals/OpenQuake%20Manual%20%28master%29.pdf > OpenQuake\ manual.pdf
#fi


if [[ $OQ_OUTPUT = *"exe"* ]]; then
Expand All @@ -187,5 +188,6 @@ if [[ $OQ_OUTPUT = *"zip"* ]]; then
cd $DIR/python-dist
zip -qr $DIR/${ZIP} python3
cd $DIR
zip -qr $DIR/${ZIP} *.bat *.pdf demos README.html LICENSE.txt
#zip -qr $DIR/${ZIP} *.bat *.pdf demos README.html LICENSE.txt
zip -qr $DIR/${ZIP} *.bat demos README.html LICENSE.txt
fi
11 changes: 5 additions & 6 deletions installers/windows/nsis/installer.nsi.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ Section "!OpenQuake Engine demos and documentation" SecDocDemo
SectionIn RO
# Install manual and demos in 'User\MyDocuments'
# keep disabled for now. It may be dangerous.
#SetOutPath "$DOCUMENTS\OpenQuake"
#File "OpenQuake manual.pdf"
#SetOutPath "$DOCUMENTS\OpenQuake\demos"
#File /r /x ".gitignore" "demos\*.*"
# SetOutPath "$DOCUMENTS\OpenQuake"
# SetOutPath "$DOCUMENTS\OpenQuake\demos"
# File "OpenQuake manual.pdf"
# File /r /x ".gitignore" "demos\*.*"

# Keep a copy in the installation folder
# File "OpenQuake manual.pdf"
SetOutPath "$INSTDIR"
File "OpenQuake manual.pdf"
SetOutPath "$INSTDIR\demos"
File /r /x ".gitignore" "demos\*.*"
SectionEnd
Expand Down Expand Up @@ -251,7 +251,6 @@ Section "Uninstall"
; Uninstall files
Delete "$INSTDIR\README.html"
Delete "$INSTDIR\LICENSE.txt"
Delete "$INSTDIR\OpenQuake manual.pdf"
Delete "$INSTDIR\openquake_black.ico"
Delete "$INSTDIR\openquake.ico"
Delete "$INSTDIR\oq-server.bat"
Expand Down

0 comments on commit 5e684a3

Please sign in to comment.