diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml new file mode 100644 index 0000000..d2230fd --- /dev/null +++ b/.github/workflows/package.yaml @@ -0,0 +1,48 @@ +name: Package For Windows + +on: + push: + tags: + - 'v*' + +jobs: + package: + name: Package + runs-on: windows-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Setup Miniconda + uses: goanpeca/setup-miniconda@v1.6.0 + - name: Install Poppler + shell: bash -l {0} + run: conda install -c conda-forge poppler -y + - name: Run Package Script + shell: bash -l {0} + run: ./package.sh + env: + POPPLER_VERSION: "0.89.0" + PKGS_PATH_DIR: /c/Users/runneradmin/conda_pkgs_dir + - name: Zip Release + run: Compress-Archive D:\a\poppler-windows\poppler-windows\poppler* release.zip + shell: pwsh + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: D:\a\poppler-windows\poppler-windows\release.zip + asset_name: release.zip + asset_content_type: application/zip \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..0f6c28f --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# Poppler Packaged for Windows + +The latest Poppler prebuilt-binaries packaged with dependencies. Built with the help of conda-forge. + +## Download + +You can download the latest build from [releases](https://github.com/oschwartz10612/poppler-windows/releases/). + +## Out of Date? + +Create a new pull request and bump POPPLER_VERSION to the latest. Make sure to tag the release incrementing it properly. diff --git a/package.sh b/package.sh new file mode 100755 index 0000000..673f4dd --- /dev/null +++ b/package.sh @@ -0,0 +1,18 @@ +mkdir "poppler-$POPPLER_VERSION" +cd "poppler-$POPPLER_VERSION" + +cp -a $PKGS_PATH_DIR/poppler-$POPPLER_VERSION*/Library/. . +cp $PKGS_PATH_DIR/freetype*/Library/bin/freetype.dll ./bin/ +cp $PKGS_PATH_DIR/zlib*/Library/bin/zlib.dll ./bin/ +cp -a $PKGS_PATH_DIR/zstd*/Library/bin/. ./bin/ +cp $PKGS_PATH_DIR/libtiff*/Library/bin/tiff.dll ./bin/ +cp $PKGS_PATH_DIR/libtiff*/Library/bin/libtiff.dll ./bin/ +cp $PKGS_PATH_DIR/libssh2*/Library/bin/libssh2.dll ./bin/ +cp $PKGS_PATH_DIR/libpng*/Library/bin/libpng16.dll ./bin/ +cp $PKGS_PATH_DIR/libcurl*/Library/bin/libcurl.dll ./bin/ +cp $PKGS_PATH_DIR/openssl*/Library/bin/libcrypto-1_1-x64.dll ./bin/ +cp $PKGS_PATH_DIR/openjpeg*/Library/bin/openjp2.dll ./bin/ +cp $PKGS_PATH_DIR/xz*/Library/bin/liblzma.dll ./bin/ + +ls ./bin/ +