Date: Thu, 6 Mar 2025 14:21:09 +0530
Subject: [PATCH 5/7] updated the version display style as mentioned.
{App name from settings.json}
Version {Version number from settings.json}
---
src/common/common.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/common/common.py b/src/common/common.py
index 58299c8e..c2c1bd7c 100644
--- a/src/common/common.py
+++ b/src/common/common.py
@@ -360,8 +360,9 @@ def change_workspace():
""",
unsafe_allow_html=True
)
- version_info = st.session_state.settings["version"]
- st.markdown(f'OpenMS WebApp: V{version_info}
', unsafe_allow_html=True)
+ version_info = st.session_state.settings["version"]
+ app_name = st.session_state.settings["app-name"]
+ st.markdown(f'{app_name}
Version: V{version_info}
', unsafe_allow_html=True)
return params
From 440991e86baac0432854f4596d3e0f0d8beda8e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=20David=20M=C3=BCller?=
<57191390+t0mdavid-m@users.noreply.github.com>
Date: Thu, 6 Mar 2025 12:32:36 +0100
Subject: [PATCH 6/7] remove V from version box
---
src/common/common.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/common.py b/src/common/common.py
index c2c1bd7c..80430de0 100644
--- a/src/common/common.py
+++ b/src/common/common.py
@@ -362,7 +362,7 @@ def change_workspace():
)
version_info = st.session_state.settings["version"]
app_name = st.session_state.settings["app-name"]
- st.markdown(f'{app_name}
Version: V{version_info}
', unsafe_allow_html=True)
+ st.markdown(f'{app_name}
Version: {version_info}
', unsafe_allow_html=True)
return params
From 7f0600ac880004f509827b6799a268196e235705 Mon Sep 17 00:00:00 2001
From: Achal Bajpai <111895109+achalbajpai@users.noreply.github.com>
Date: Sat, 8 Mar 2025 02:01:30 +0530
Subject: [PATCH 7/7] docs: Add explanatory comments for WiX Toolset commands
---
docs/win_exe_with_embed_py.md | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/docs/win_exe_with_embed_py.md b/docs/win_exe_with_embed_py.md
index 69824285..35719958 100644
--- a/docs/win_exe_with_embed_py.md
+++ b/docs/win_exe_with_embed_py.md
@@ -118,10 +118,16 @@ After creating your executable folder, you can package it into an MSI installer
Set these variables for consistent naming throughout the process:
```batch
-set APP_NAME=OpenMS-StreamlitTemplateApp
-set APP_UpgradeCode=4abc2e23-3ba5-40e4-95c9-09e6cb8ecaeb
+APP_NAME=OpenMS-StreamlitTemplateApp
+APP_UpgradeCode=4abc2e23-3ba5-40e4-95c9-09e6cb8ecaeb
```
+To create a new GUID for your application's UpgradeCode, you can use:
+
+- PowerShell: `[guid]::NewGuid().ToString()`
+- Online GUID generator: https://www.guidgen.com/
+- Windows Command Prompt: `powershell -Command "[guid]::NewGuid().ToString()"`
+
### 2. Install WiX Toolset
1. Download WiX Toolset binaries:
@@ -142,11 +148,8 @@ set APP_UpgradeCode=4abc2e23-3ba5-40e4-95c9-09e6cb8ecaeb
2. Create Readme.txt:
```batch
- echo Welcome to %APP_NAME% app! > SourceDir\Readme.txt
- echo. >> SourceDir\Readme.txt
- echo To launch the application: >> SourceDir\Readme.txt
- echo 1. Navigate to the installation directory. >> SourceDir\Readme.txt
- echo 2. Double-click on the file: %APP_NAME%.bat or %APP_NAME% shortcut. >> SourceDir\Readme.txt
+ # Create a Readme.txt file in the SourceDir folder with instructions
+ # for launching the application
```
3. Add necessary assets:
@@ -249,11 +252,14 @@ set APP_UpgradeCode=4abc2e23-3ba5-40e4-95c9-09e6cb8ecaeb
1. Compile WiX source files:
```batch
+ # Generate wixobj files from the WiX source files
wix\candle.exe streamlit_exe.wxs streamlit_exe_files.wxs
```
2. Link and create MSI:
```batch
+ # Create the MSI installer from the wixobj files
+ # The -sice:ICE60 flag stops a warning about duplicate component GUIDs, which can happen when heat.exe auto-generates components
wix\light.exe -ext WixUIExtension -sice:ICE60 -o %APP_NAME%.msi streamlit_exe_files.wixobj streamlit_exe.wixobj
```