Skip to content

Commit

Permalink
Build zip archive as part of fat binary generation
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Jun 13, 2024
1 parent babb61d commit 6caf1c6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion package/windows/pyinstaller.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- mode: python -*-
import importlib.metadata
import os.path
from pathlib import Path
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -152,4 +151,19 @@ def innosetup():
os.remove(config_name)



def make_zip():
"""Create a zip archive of the fat binary files"""
from silx import strictversion

base_name = os.path.join(SPECPATH, "artifacts", f"silx-{strictversion}-windows-application")
shutil.make_archive(
base_name,
format="zip",
root_dir=os.path.join(SPECPATH, "dist"),
base_dir="silx",
)


innosetup()
make_zip()

0 comments on commit 6caf1c6

Please sign in to comment.