Skip to content

Commit b4733c1

Browse files
committed
resolved conflicts
2 parents 05cfa3d + 6a7766a commit b4733c1

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/build-windows-executable-app.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ jobs:
195195
$content.version = $VERSION
196196
$content | ConvertTo-Json -Depth 100 | Set-Content settings.json
197197
198-
199198
- name: Download package as artifact
200199
uses: actions/download-artifact@v4
201200
with:
@@ -210,7 +209,7 @@ jobs:
210209
cp -r openms-package/share ../share
211210
212211
- name: Set up Python (regular distribution)
213-
uses: actions/setup-python@v4
212+
uses: actions/setup-python@v5
214213
with:
215214
python-version: ${{ env.PYTHON_VERSION }} # Use the same version as the embeddable version
216215

@@ -259,9 +258,18 @@ jobs:
259258
260259
- name: Create .bat file
261260
run: |
262-
echo "start /min .\python-${{ env.PYTHON_VERSION }}\python -m redis-server" > ${{ env.APP_NAME }}.bat
263-
echo "start /min .\python-${{ env.PYTHON_VERSION }}\python -m rq worker --with-scheduler" >> ${{ env.APP_NAME }}.bat
264-
echo "start /min .\python-${{ env.PYTHON_VERSION }}\python -m streamlit run app.py local" >> ${{ env.APP_NAME }}.bat
261+
262+
echo '@echo off' > ${{ env.APP_NAME }}.bat
263+
echo '' >> ${{ env.APP_NAME }}.bat
264+
echo 'REM Create .streamlit directory in user''s home if it doesn''t exist' >> ${{ env.APP_NAME }}.bat
265+
echo 'if not exist "%USERPROFILE%\.streamlit" mkdir "%USERPROFILE%\.streamlit"' >> ${{ env.APP_NAME }}.bat
266+
echo '' >> ${{ env.APP_NAME }}.bat
267+
echo 'REM Create credentials.toml with empty email to disable email prompt' >> ${{ env.APP_NAME }}.bat
268+
echo 'copy /Y ".streamlit\credentials.toml" "%USERPROFILE%\.streamlit\credentials.toml" > nul' >> ${{ env.APP_NAME }}.bat
269+
echo '' >> ${{ env.APP_NAME }}.bat
270+
echo 'start /min .\python-${{ env.PYTHON_VERSION }}\python -m redis-server' > ${{ env.APP_NAME }}.bat
271+
echo 'start /min .\python-${{ env.PYTHON_VERSION }}\python -m rq worker --with-scheduler' >> ${{ env.APP_NAME }}.bat
272+
echo 'start /min .\python-${{ env.PYTHON_VERSION }}\python -m streamlit run app.py local' >> ${{ env.APP_NAME }}.bat
265273
266274
- name: Create All-in-one executable folder
267275
run: |

.streamlit/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[browser]
2+
gatherUsageStats = false
3+
14
[global]
25
developmentMode = false
36

.streamlit/credentials.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[general]
2+
email = ""

0 commit comments

Comments
 (0)