Added macOS support (#968)
Co-authored-by: DevilXD <4180725+DevilXD@users.noreply.github.com>
This commit is contained in:
1 parent
b685b445e9
commit
1166170fae
6 files changed
+143
-25
No files matched your search
Executable → Regular
+11
-1
@@ -19,7 +19,7 @@ if TYPE_CHECKING:
|
||||
from PyInstaller.building.splash import Splash
|
||||
from PyInstaller.building.build_main import Analysis
|
||||
from PyInstaller.building.datastruct import _TOCTuple
|
||||
from PyInstaller.building.api import PYZ, EXE, COLLECT
|
||||
from PyInstaller.building.api import PYZ, EXE, COLLECT, BUNDLE
|
||||
|
||||
|
||||
PYZTypeCOLLECT: TypeAlias = "abc.Iterable[_TOCTuple] | PYZ"
|
||||
@@ -142,3 +142,13 @@ if one_dir:
|
||||
upx=upx,
|
||||
name=app_name,
|
||||
)
|
||||
|
||||
# macOS bundle support
|
||||
if sys.platform == "darwin":
|
||||
source = coll if one_dir else exe
|
||||
app = BUNDLE(
|
||||
source,
|
||||
name=f'{app_name}.app',
|
||||
icon="icons/pickaxe.ico",
|
||||
bundle_identifier='com.twitchdrops.miner',
|
||||
)
|
||||
Reference in new issue
Block a user