From 0027048a5f68320a2694308df4360bf24fe3755e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 16 Oct 2025 03:14:50 +0000 Subject: [PATCH 1/2] Initial plan From ca05e4f5fb19f85237fe798819dd9529f9a62983 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 16 Oct 2025 03:18:41 +0000 Subject: [PATCH 2/2] Add GitHub Actions workflow for PyInstaller builds Co-authored-by: ZC-TigerRoot <66396101+ZC-TigerRoot@users.noreply.github.com> --- .github/workflows/pyinstaller-build.yml | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/pyinstaller-build.yml diff --git a/.github/workflows/pyinstaller-build.yml b/.github/workflows/pyinstaller-build.yml new file mode 100644 index 0000000..ad96f73 --- /dev/null +++ b/.github/workflows/pyinstaller-build.yml @@ -0,0 +1,45 @@ +name: Build ExcleTransform.exe with PyInstaller + +on: + push: + paths: + - 'ExcleTransform.py' + - 'requirements.txt' + - '.github/workflows/pyinstaller-build.yml' + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + cache: 'pip' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if (Test-Path requirements.txt) { + pip install -r requirements.txt + pip install pyinstaller + } else { + pip install pyinstaller pandas xlrd openpyxl + } + shell: pwsh + + - name: Build with PyInstaller + run: pyinstaller --noconfirm --onefile --name ExcleTransform ExcleTransform.py + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ExcleTransform-exe + path: dist/ExcleTransform.exe + if-no-files-found: error + retention-days: 7