2929 unzip python-${PYTHON_VERSION}-embed-amd64.zip -d python-${PYTHON_VERSION}
3030 rm python-${PYTHON_VERSION}-embed-amd64.zip
3131
32- - name : Install pip into embeddable Python
33- shell : bash
34- run : |
35- curl -LO https://bootstrap.pypa.io/get-pip.py
36- ./python-${PYTHON_VERSION}/python get-pip.py --no-warn-script-location
37- rm get-pip.py
38-
3932 - name : Enable site-packages (import site)
4033 shell : bash
4134 run : |
7366 # Get-ChildItem streamlit_exe -Recurse -Directory -Filter "__pycache__" | Remove-Item -Recurse -Force
7467 # Get-ChildItem streamlit_exe -Recurse -Directory -Match "test","tests" | Remove-Item -Recurse -Force
7568
69+ # ----------------------------------------------------------------------
70+ # Prepare SourceDir first
71+ # ----------------------------------------------------------------------
72+ - name : Prepare SourceDir
73+ run : |
74+ Remove-Item -Recurse -Force SourceDir -ErrorAction SilentlyContinue
75+ mkdir SourceDir
76+ mv streamlit_exe/* SourceDir
77+ cp assets/openms_license.rtf SourceDir
78+ cp assets/openms.ico SourceDir
79+
7680 # ----------------------------------------------------------------------
7781 # Install WiX Toolset 3.11
7882 # ----------------------------------------------------------------------
@@ -84,22 +88,22 @@ jobs:
8488 rm wix311-binaries.zip
8589
8690 # ----------------------------------------------------------------------
87- # Split harvesting
91+ # Harvest application files in final SourceDir location
8892 # ----------------------------------------------------------------------
8993 - name : Harvest application files (no Python)
9094 shell : bash
9195 run : |
92- ./wix/heat.exe dir streamlit_exe -gg -sfrag -sreg -srd -template component -cg AppFiles -dr AppSubFolder -x streamlit_exe /python-${PYTHON_VERSION} -ke -out app_files.wxs
96+ ./wix/heat.exe dir SourceDir -gg -sfrag -sreg -srd -template component -cg AppFiles -dr AppSubFolder -x SourceDir /python-${PYTHON_VERSION} -ke -out app_files.wxs
9397
9498 - name : Harvest Python runtime (no site-packages)
9599 shell : bash
96100 run : |
97- ./wix/heat.exe dir streamlit_exe /python-${PYTHON_VERSION} -gg -sfrag -sreg -srd -template component -cg PythonRuntime -dr AppSubFolder -x streamlit_exe /python-${PYTHON_VERSION}/Lib/site-packages -ke -out python_runtime.wxs
101+ ./wix/heat.exe dir SourceDir /python-${PYTHON_VERSION} -gg -sfrag -sreg -srd -template component -cg PythonRuntime -dr AppSubFolder -x SourceDir /python-${PYTHON_VERSION}/Lib/site-packages -ke -out python_runtime.wxs
98102
99103 - name : Harvest Python site-packages
100104 shell : bash
101105 run : |
102- ./wix/heat.exe dir streamlit_exe /python-${PYTHON_VERSION}/Lib/site-packages -gg -sfrag -sreg -srd -template component -cg PythonPackages -dr AppSubFolder -ke -out python_packages.wxs
106+ ./wix/heat.exe dir SourceDir /python-${PYTHON_VERSION}/Lib/site-packages -gg -sfrag -sreg -srd -template component -cg PythonPackages -dr AppSubFolder -ke -out python_packages.wxs
103107
104108 # ----------------------------------------------------------------------
105109 # Assign DiskId per harvest to avoid CAB overflow
@@ -111,16 +115,6 @@ jobs:
111115 sed -i 's/<File /<File DiskId="2" /' python_runtime.wxs
112116 sed -i 's/<File /<File DiskId="3" /' python_packages.wxs
113117
114- # ----------------------------------------------------------------------
115- # Prepare SourceDir
116- # ----------------------------------------------------------------------
117- - name : Prepare SourceDir
118- run : |
119- mkdir SourceDir
120- mv streamlit_exe/* SourceDir
121- cp assets/openms_license.rtf SourceDir
122- cp assets/openms.ico SourceDir
123-
124118 # ----------------------------------------------------------------------
125119 # Main WiX product file
126120 # ----------------------------------------------------------------------
0 commit comments