使Windows上的字体渲染更加清晰 #18
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 installer for Windows | |
| on: | |
| push: | |
| branches: | |
| - java25 | |
| jobs: | |
| build-app: | |
| strategy: | |
| matrix: | |
| os: [ windows-2025 ] | |
| name: Build the application | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 25 | |
| - run: $Env:Path += ";C:\Program Files (x86)\WiX Toolset v3.11\bin" | |
| - name: build | |
| run: .\gradlew.bat jpackage | |
| shell: pwsh | |
| - name: copy | |
| run: New-Item -Name "staging" -ItemType "directory"; Copy-Item ".\build\build-package\*.msi" -Destination "staging" | |
| shell: pwsh | |
| - name: get current time | |
| uses: josStorer/get-current-time@v2 | |
| id: current-time | |
| with: | |
| format: YYYYMMDD-HH | |
| utcOffset: "+08:00" | |
| - name: upload build result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: JavaFXSample-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.os }} | |
| path: staging |