From 01fd5151699df0f6e638c11d3ba2db410d261731 Mon Sep 17 00:00:00 2001 From: Tom David Mueller Date: Thu, 21 Nov 2024 10:01:27 +0100 Subject: [PATCH] ensure that offline deployment is selected --- .../build-windows-executable-app-with-pyinstaller.yaml | 3 +++ .github/workflows/build-windows-executable-app.yaml | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-windows-executable-app-with-pyinstaller.yaml b/.github/workflows/build-windows-executable-app-with-pyinstaller.yaml index 43cd29a8..03b339cc 100644 --- a/.github/workflows/build-windows-executable-app-with-pyinstaller.yaml +++ b/.github/workflows/build-windows-executable-app-with-pyinstaller.yaml @@ -220,6 +220,9 @@ jobs: call myenv\Scripts\activate.bat pyinstaller --onefile --additional-hooks-dir ./hooks run_app.py --clean + - name: Set to offline deployment + run: | + jq '.online_deployment = true' settings.json > tmp.json && mv tmp.json settings.json - name: Copy everything to dist directory run: | diff --git a/.github/workflows/build-windows-executable-app.yaml b/.github/workflows/build-windows-executable-app.yaml index 2305e59b..1f37bd73 100644 --- a/.github/workflows/build-windows-executable-app.yaml +++ b/.github/workflows/build-windows-executable-app.yaml @@ -208,7 +208,11 @@ jobs: run: | echo '@echo off' > run_app.bat echo '.\\python-${{ env.PYTHON_VERSION }}\\python -m streamlit run app.py local' >> run_app.bat - + + - name: Set to offline deployment + run: | + jq '.online_deployment = true' settings.json > tmp.json && mv tmp.json settings.json + - name: Create All-in-one executable folder run: | mkdir streamlit_exe