5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 22:50:59 +08:00

Merge branch 'v3-alpha' into fix-hidden-menuitem

This commit is contained in:
Lea Anthony 2025-03-13 06:16:29 +11:00 committed by GitHub
commit 7bd3a1a15c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 60 additions and 44 deletions

View File

@ -91,7 +91,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [warp-windows-latest-x64-2x, warp-macos-15-arm64-6x, warp-ubuntu-latest-x64-2x] os: [windows-latest, ubuntu-latest, macos-latest]
go-version: [1.24] go-version: [1.24]
steps: steps:
@ -230,9 +230,16 @@ jobs:
needs: [test_go, test_js, test_templates] needs: [test_go, test_js, test_templates]
steps: steps:
- run: | - run: |
result="${{ needs.build.result }}" go_result="${{ needs.test_go.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then js_result="${{ needs.test_js.result }}"
templates_result="${{ needs.test_templates.result }}"
if [[ $go_result == "success" || $go_result == "skipped" ]] && \
[[ $js_result == "success" || $js_result == "skipped" ]] && \
[[ $templates_result == "success" || $templates_result == "skipped" ]]; then
echo "All required jobs succeeded or were skipped"
exit 0 exit 0
else else
echo "One or more required jobs failed"
exit 1 exit 1
fi fi

View File

@ -8,11 +8,10 @@ on:
types: [submitted] types: [submitted]
branches: branches:
- master - master
jobs: jobs:
check_docs: check_docs:
name: Check Docs name: Check Docs
if: ${{github.repository == 'wailsapp/wails' && contains(github.head_ref,'feature/')}} if: ${{github.repository == 'wailsapp/wails' && github.base_ref == 'master'}}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -56,11 +55,11 @@ jobs:
test_go: test_go:
name: Run Go Tests name: Run Go Tests
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: github.event.review.state == 'approved' if: github.event.review.state == 'approved' && github.repository == 'wailsapp/wails' && github.base_ref == 'master'
strategy: strategy:
matrix: matrix:
os: [ubuntu-22.04, windows-latest, macos-latest, ubuntu-24.04] os: [ubuntu-22.04, windows-latest, macos-latest, ubuntu-24.04]
go-version: ['1.21'] go-version: ['1.23']
steps: steps:
- name: Checkout code - name: Checkout code

View File

@ -109,6 +109,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The dragging and resizing mechanism is now more robust and matches expected platform behaviour more closely by [@fbbdev](https://github.com/fbbdev) in [#4100](https://github.com/wailsapp/wails/pull/4100) - The dragging and resizing mechanism is now more robust and matches expected platform behaviour more closely by [@fbbdev](https://github.com/fbbdev) in [#4100](https://github.com/wailsapp/wails/pull/4100)
- Fixed [#4097](https://github.com/wailsapp/wails/issues/4097) Webpack/angular discards runtime init code by [@fbbdev](https://github.com/fbbdev) in [#4100](https://github.com/wailsapp/wails/pull/4100) - Fixed [#4097](https://github.com/wailsapp/wails/issues/4097) Webpack/angular discards runtime init code by [@fbbdev](https://github.com/fbbdev) in [#4100](https://github.com/wailsapp/wails/pull/4100)
- Fixed initially-hidden menu items by [@IanVS](https://github.com/IanVS) in [#4116](https://github.com/wailsapp/wails/pull/4116) - Fixed initially-hidden menu items by [@IanVS](https://github.com/IanVS) in [#4116](https://github.com/wailsapp/wails/pull/4116)
- Fixed assetFileServer not serving `.html` files when non-extension request when `[request]` doesn't exist but `[request].html` does
- Fixed icon generation paths by [@robin-samuel](https://github.com/robin-samuel) in [#4125](https://github.com/wailsapp/wails/pull/4125)
### Changed ### Changed

View File

@ -70,9 +70,17 @@ func (d *assetFileServer) serveFSFile(rw http.ResponseWriter, req *http.Request,
} }
file, err := d.fs.Open(filename) file, err := d.fs.Open(filename)
if err != nil {
if s := path.Ext(filename); s == "" {
filename = filename + ".html"
file, err = d.fs.Open(filename)
if err != nil { if err != nil {
return err return err
} }
} else {
return err
}
}
defer file.Close() defer file.Close()
statInfo, err := file.Stat() statInfo, err := file.Stat()

View File

@ -66,10 +66,10 @@ tasks:
sources: sources:
- "appicon.png" - "appicon.png"
generates: generates:
- "icons.icns" - "darwin/icons.icns"
- "icons.ico" - "windows/icon.ico"
cmds: cmds:
- wails3 generate icons -input appicon.png -macfilename darwin/icons.icns -windowsfilename windows/icons.ico - wails3 generate icons -input appicon.png -macfilename darwin/icons.icns -windowsfilename windows/icon.ico
dev:frontend: dev:frontend:
summary: Runs the frontend in development mode summary: Runs the frontend in development mode