-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Owen Schwartz
committed
Jun 28, 2020
0 parents
commit a4f66fc
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ | ||
|