"Fossies" - the Fresh Open Source Software Archive

Member "texstudio-4.1.1/.github/scripts/package_win.sh" (20 Nov 2021, 2423 Bytes) of package /linux/misc/texstudio-4.1.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/env sh
    2 
    3 # Exit on errors
    4 set -e
    5 
    6 . .github/scripts/get-version.sh
    7  
    8 echo "package build into zip for win"
    9 
   10 echo "copy dlls and qt5 plugins"
   11 /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.shared-peldd texstudio.exe -a -w d3d11.dll -w dxgi.dll|grep dll|xargs cp -t .
   12 pwd
   13 cp -r /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/platforms .
   14 cp -r /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/styles .
   15 cp -r /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/imageformats/ .
   16 echo "make installer"
   17 cp ./utilities/texstudio.nsi .
   18 cp ./utilities/FileAssociation.nsh .
   19 /usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-makensis texstudio.nsi
   20 echo "Assembling package"
   21 mkdir -p "package-zip/share"
   22 mkdir -p "package-zip/config"
   23 cp texstudio.exe package-zip/
   24 cp *.dll package-zip
   25 cp -r platforms package-zip/
   26 cp -r ./imageformats package-zip/
   27 cp -r ./styles package-zip/
   28 cp -r ./translation package-zip/translations
   29 cp -r ./templates package-zip
   30 cp -r ./utilities/manual package-zip/help
   31 cp ./utilities/latex2e.css package-zip/help
   32 cp ./utilities/latex2e.html package-zip/help
   33 cp -r ./utilities/dictionaries package-zip/dictionaries
   34 cp -r ./utilities/TexTablet package-zip/TexTablet
   35 cp -r ./travis-ci/mxe/fonts package-zip/share/
   36 
   37 POPPLERDATA_VERSION="0.4.8"
   38 POPPLERDATA_SUBDIR="poppler-data-${POPPLERDATA_VERSION}"
   39 POPPLERDATA_FILE="poppler-data-${POPPLERDATA_VERSION}.tar.gz"
   40 POPPLERDATA_URL="https://poppler.freedesktop.org/${POPPLERDATA_FILE}"
   41 POPPLERDATA_SHA256="1096a18161f263cccdc6d8a2eb5548c41ff8fcf9a3609243f1b6296abdf72872"
   42 
   43 echo "Fetching poppler data"
   44     wget --no-check-certificate "${POPPLERDATA_URL}"
   45     CHKSUM=$(openssl dgst -sha256 "${POPPLERDATA_FILE}" 2> /dev/null)
   46     if [ "${CHKSUM}" != "SHA256(${POPPLERDATA_FILE})= ${POPPLERDATA_SHA256}" ]; then
   47         echo "Wrong checksum"
   48         echo "${CHKSUM}"
   49         echo "(expected: ${POPPLERDATA_SHA256})"
   50         exit 1
   51     fi
   52 tar -x -C package-zip/share/ -f ./${POPPLERDATA_FILE} && mv package-zip/share/${POPPLERDATA_SUBDIR} package-zip/share/poppler
   53 
   54     
   55 cd package-zip && zip -r ./texstudio-win-${VERSION_NAME}.zip *
   56 cd ..
   57 sha256sum ./texstudio_installer.exe
   58 sha256sum ./texstudio.exe
   59 sha256sum ./package-zip/texstudio-win-${VERSION_NAME}.zip
   60 cp ./package-zip/texstudio-win-${VERSION_NAME}.zip ./texstudio-${GIT_VERSION}-win-portable-qt5.zip
   61 cp ./texstudio_installer.exe ./texstudio-${GIT_VERSION}-win-qt5.exe
   62 cp ./texstudio_installer.exe ./texstudio-win-${VERSION_NAME}.exe
   63 
   64