Skip to content

Commit

Permalink
hooks: add hook for toga_cocoa
Browse files Browse the repository at this point in the history
Add hook for `toga_cocoa` (the macOS backend for `toga`) to collect
images (default icon, camera icon) from `resources`.
  • Loading branch information
rokm committed Sep 13, 2024
1 parent 9cdb762 commit c89288c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions _pyinstaller_hooks_contrib/stdhooks/hook-toga_cocoa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ------------------------------------------------------------------
# Copyright (c) 2024 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE, distributed with
# this software.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

from PyInstaller.utils.hooks import collect_data_files

# Collect icons from `resources`.
datas = collect_data_files('toga_cocoa')

0 comments on commit c89288c

Please sign in to comment.