https://github.com/cakebake/weasyprint-stand-alone-executable
WIP: Stand Alone Executable from WeasyPrint
https://github.com/cakebake/weasyprint-stand-alone-executable
binary converter cross-platform css executable html linux macos pdf pyinstaller weasyprint windows
Last synced: about 2 months ago
JSON representation
WIP: Stand Alone Executable from WeasyPrint
- Host: GitHub
- URL: https://github.com/cakebake/weasyprint-stand-alone-executable
- Owner: cakebake
- Created: 2019-02-15T09:03:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T14:30:26.000Z (about 7 years ago)
- Last Synced: 2025-01-05T05:26:05.686Z (over 1 year ago)
- Topics: binary, converter, cross-platform, css, executable, html, linux, macos, pdf, pyinstaller, weasyprint, windows
- Language: Shell
- Homepage:
- Size: 11.9 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
WIP: weasyprint-stand-alone-executable
======================================
[](https://travis-ci.org/cakebake/weasyprint-stand-alone-executable)
Stand Alone Executable from WeasyPrint - **work in progress**.
Todo
----
- [ ] Build linux executable with Travis CI
- [ ] Build macos executable with Travis CI
- [ ] Build windows executable with App Veyor
- ...
Local linux build for testing
-----------------------------
```bash
docker build \
--pull \
--file ./travis/linux/Dockerfile \
--tag wpimg \
--build-arg WEASYPRINT_VERSION=45 \
--build-arg STATICX_VERSION=0.7.0 \
--build-arg PYINSTALLER_VERSION=3.4 \
.
```
```bash
docker run --rm \
-e "HOST_OWNER_UID=$UID" \
-e "HOST_OWNER_GID=$GID" \
-v $PWD:/workdir \
wpimg \
/workdir/travis/linux/build.sh
```
```bash
docker run --rm \
-u $UID:$GID \
-v $PWD:/workdir \
ubuntu:16.04 \
/workdir/travis/linux/test.sh
```
```bash
./dist/weasyprint https://weasyprint.org/ dist/weasyprint.pdf
```