From 274d67193d0b054e9b93bf491fd7fb5f25d48c7b Mon Sep 17 00:00:00 2001 From: Arslan Date: Wed, 27 Nov 2024 00:27:43 +0100 Subject: [PATCH] dynamic variable used --- .github/workflows/test-win-exe-w-embed-py.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-win-exe-w-embed-py.yaml b/.github/workflows/test-win-exe-w-embed-py.yaml index d1179712..c9db55dc 100644 --- a/.github/workflows/test-win-exe-w-embed-py.yaml +++ b/.github/workflows/test-win-exe-w-embed-py.yaml @@ -10,6 +10,7 @@ jobs: env: PYTHON_VERSION: 3.11.9 + APP_NAME: OpenMS-StreamlitTemplateApp steps: - name: Checkout code @@ -73,7 +74,7 @@ jobs: run: | echo '' > streamlit_exe.wxs echo '' >> streamlit_exe.wxs - echo ' ' >> streamlit_exe.wxs + echo ' ' >> streamlit_exe.wxs echo ' ' >> streamlit_exe.wxs echo ' ' >> streamlit_exe.wxs echo ' ' >> streamlit_exe.wxs @@ -89,7 +90,7 @@ jobs: echo ' > streamlit_exe.wxs echo ' ExeCommand="cmd.exe /c echo This is readme > [INSTALLFOLDER]Readme.txt" />' >> streamlit_exe.wxs echo ' > streamlit_exe.wxs - echo ' ExeCommand="cmd.exe /c echo @echo off > [INSTALLFOLDER]temp.bat && echo [INSTALLFOLDER]python-3.11.0\\python.exe -m streamlit run [INSTALLFOLDER]app.py local >> [INSTALLFOLDER]OpenMS-StreamlitTemplateApp.bat" />' >> streamlit_exe.wxs + echo ' ExeCommand="cmd.exe /c echo @echo off > [INSTALLFOLDER]temp.bat && echo [INSTALLFOLDER]python-${{ env.PYTHON_VERSION }}\\python.exe -m streamlit run [INSTALLFOLDER]app.py local >> [INSTALLFOLDER]${{ env.APP_NAME }}.bat" />' >> streamlit_exe.wxs echo ' > streamlit_exe.wxs echo ' ExeCommand="cmd.exe /c "[INSTALLFOLDER]run_app.bat"" />' >> streamlit_exe.wxs echo ' ' >> streamlit_exe.wxs @@ -109,11 +110,11 @@ jobs: - name: Build msi run: | ./wix/candle.exe streamlit_exe.wxs streamlit_exe_files.wxs - ./wix/light.exe -ext WixUIExtension -sice:ICE60 -o OpenMS-StreamlitTemplateApp.msi streamlit_exe_files.wixobj streamlit_exe.wixobj + ./wix/light.exe -ext WixUIExtension -sice:ICE60 -o ${{ env.APP_NAME }}.msi streamlit_exe_files.wixobj streamlit_exe.wixobj - name: Archive build artifacts uses: actions/upload-artifact@v4 with: - name: OpenMS-StreamlitTemplateApp + name: ${{ env.APP_NAME }} path: | - OpenMS-StreamlitTemplateApp.msi + ${{ env.APP_NAME }}.msi