Skip to content

Commit

Permalink
build shiv .pyz app for mac py311 and publish to github release
Browse files Browse the repository at this point in the history
I may try to use this for a fontmake export plugin for Glyphs.app..
  • Loading branch information
anthrotype committed Jul 31, 2023
1 parent 968c85b commit a1a284e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine shiv
- name: Extract release notes from annotated tag message
id: release_notes
env:
Expand Down Expand Up @@ -108,10 +108,15 @@ jobs:
fi
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Create .pyz
# currently this only builds a self-contained zip app for macOS python 3.11 only
# to be used for fontmake export plugin for Glyphs.app
run: ./build_pyz.sh
- name: Create GitHub release
id: create_release
uses: ncipollo/release-action@v1
with:
bodyFile: "${{ runner.temp }}/release_notes.md"
draft: false
prerelease: ${{ env.IS_PRERELEASE }}
artifacts: "shiv/*.zip"
2 changes: 1 addition & 1 deletion build_pyz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -x

HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

PLATFORMS=(macosx_11_0_universal2 win_amd64)
PLATFORMS=(macosx_11_0_universal2) # win_amd64)
PYTHON_VERSIONS=(3.11)
FONTMAKE_VERSION="$(python setup.py --version)"

Expand Down

0 comments on commit a1a284e

Please sign in to comment.