Skip to content

Commit

Permalink
Merge pull request #39 from Fdawgs/patch-1
Browse files Browse the repository at this point in the history
Poppler 22.04.0
  • Loading branch information
oschwartz10612 committed Apr 30, 2022
2 parents 9316092 + cb2b3cf commit 3c7e950
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ jobs:
env:
PKGS_PATH_DIR: /c/Users/runneradmin/conda_pkgs_dir

- name: Zip Release
run: Compress-Archive D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }} Release-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}.zip
shell: pwsh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Poppler-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}
path: D:\a\poppler-windows\poppler-windows\Release-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}.zip

- name: Remove Poppler
shell: bash -l {0}
run: conda remove -c conda-forge poppler -y

- name: Test pdfattach
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdfattach.exe D:\a\poppler-windows\poppler-windows\sample.pdf D:\a\poppler-windows\poppler-windows\sample.pdf test.pdf
- name: Test pdfdetach
Expand All @@ -43,13 +56,4 @@ jobs:
- name: Test pdftotext
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdftotext.exe -v
- name: Test pdfunite
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdfunite.exe -v

- name: Zip Release
run: Compress-Archive D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }} Release-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}.zip
shell: pwsh
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Poppler-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}
path: D:\a\poppler-windows\poppler-windows\Release-${{ env.POPPLER_VERSION }}-${{ env.BUILD }}.zip
run: D:\a\poppler-windows\poppler-windows\poppler-${{ env.POPPLER_VERSION }}\Library\bin\pdfunite.exe -v
5 changes: 3 additions & 2 deletions package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POPPLER_VERSION=22.01.0
POPPLER_VERSION=22.04.0
POPPLER_DATA_URL="https://poppler.freedesktop.org/poppler-data-0.4.11.tar.gz"
BUILD="0"

Expand All @@ -25,7 +25,8 @@ cp "$PKGS_PATH_DIR"/libdeflate*/Library/bin/libdeflate.dll ./Library/bin/
cp "$PKGS_PATH_DIR"/lerc*/Library/bin/Lerc.dll ./Library/bin/
cp "$PKGS_PATH_DIR"/jbig*/Library/bin/jbig.dll ./Library/bin/
cp "$PKGS_PATH_DIR"/lcms2*/Library/bin/lcms2.dll ./Library/bin/
cp "$PKGS_PATH_DIR"/libxml2*/Library/bin/libxml2.dll ./Library/bin/
cp "$PKGS_PATH_DIR"/fontconfig*/Library/bin/fontconfig-1.dll ./Library/bin/
cp "$PKGS_PATH_DIR"/expat*/Library/bin/libexpat.dll ./Library/bin/
cp -a "$PKGS_PATH_DIR"/libiconv*/Library/bin/. ./Library/bin/

rm -rf "$PKGS_PATH_DIR"
Expand Down

0 comments on commit 3c7e950

Please sign in to comment.