Skip to content

Commit

Permalink
cli.py: Add additional logging and skip patching temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Aug 28, 2024
1 parent 6607b45 commit 7c3e9e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
run: echo "BACKUP_FOLDER=$(python3 metallib.py --fetch ${{ steps.extract.outputs.DMG_FILE }})" >> $GITHUB_OUTPUT
id: fetch

- name: Patch metal libraries
if: steps.fetch.outputs.BACKUP_FOLDER != ''
run: python3 metallib.py --patch ${{ steps.fetch.outputs.BACKUP_FOLDER }}
# - name: Patch metal libraries
# if: steps.fetch.outputs.BACKUP_FOLDER != ''
# run: python3 metallib.py --patch ${{ steps.fetch.outputs.BACKUP_FOLDER }}

- name: Build sys_patch_dict.py
if: steps.fetch.outputs.BACKUP_FOLDER != ''
Expand Down
7 changes: 7 additions & 0 deletions metal_libraries/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ def build_pkg(input: str, pkg_signing_identity: str = None, notarization_team_id
"""
Builds a macOS package from a given directory
"""
import logging
logging.basicConfig(
level=logging.INFO,
format="[%(asctime)s] [%(filename)-22s] [%(levelname)-8s] [%(lineno)-3d]: %(message)s",
handlers=[logging.StreamHandler()]
)

name = Path(input).name
assert macos_pkg_builder.Packages(
pkg_output=f"MetallibSupportPkg-{name}.pkg",
Expand Down

0 comments on commit 7c3e9e0

Please sign in to comment.