Added File Transfer Modal Ui, and camera recording and mic fixes #13
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Windows EXE | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Version override (e.g. 1.2.3). Falls back to release tag or package.json version.' | |
| required: false | |
| default: '' | |
| release: | |
| types: [published] # Triggers automatically when a release is created/published | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| # Resolve the version: release tag > manual input > package.json | |
| - name: Resolve version | |
| id: version | |
| shell: pwsh | |
| run: | | |
| $version = '${{ github.event.release.tag_name }}' | |
| if (-not $version) { $version = '${{ inputs.version }}' } | |
| $version = $version.Trim().TrimStart('v') | |
| if (-not $version) { | |
| $version = (Get-Content package.json -Raw | ConvertFrom-Json).version | |
| } | |
| Write-Host "Building version: $version" | |
| "version=$version" >> $env:GITHUB_OUTPUT | |
| # Update package.json + package-lock.json so the exe/installer | |
| # carries the release version instead of the stale repo version. | |
| - name: Bump version | |
| shell: pwsh | |
| run: npm version ${{ steps.version.outputs.version }} --no-git-tag-version --allow-same-version | |
| - run: npm ci | |
| - run: npm run dist | |
| env: | |
| CI: false | |
| - name: Upload Unzipped EXE (Artifact Test) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows-exe | |
| path: dist/*.exe # Uploads raw .exe file directly | |
| - name: Attach EXE to GitHub Release | |
| if: github.event_name == 'release' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: dist/*.exe # Attaches raw unzipped .exe to release assets |