Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
msystem: MINGW64
install: mingw-w64-x86_64-gcc
update: false
path-type: inherit

- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
Expand All @@ -96,11 +97,12 @@ jobs:
run: npm install -g bun

- name: Build Windows GUI
run: wails build -platform windows/amd64 -ldflags="-extldflags=-static"
shell: msys2 {0}
run: wails build -platform windows/amd64 -ldflags="-linkmode external -extldflags=-static"
env:
CGO_ENABLED: 1
CC: gcc
CGO_LDFLAGS: '-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread -Wl,-Bdynamic'
CGO_LDFLAGS: '-static-libgcc -static-libstdc++'

- name: Verify no MinGW runtime DLL dependencies
uses: ./.github/actions/verify-windows-gui-dlls
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ jobs:
msystem: MINGW64
install: mingw-w64-x86_64-gcc
update: false
path-type: inherit

# Install Wails (version from wails.json)
- name: Install Wails
Expand All @@ -410,11 +411,12 @@ jobs:

# Build Windows GUI using Wails config
- name: Build Windows GUI
run: wails build -platform windows/amd64 -ldflags="-extldflags=-static"
shell: msys2 {0}
run: wails build -platform windows/amd64 -ldflags="-linkmode external -extldflags=-static"
env:
CGO_ENABLED: 1
CC: gcc
CGO_LDFLAGS: '-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread -Wl,-Bdynamic'
CGO_LDFLAGS: '-static-libgcc -static-libstdc++'

# Verify the built exe doesn't dynamically depend on MinGW runtime DLLs
- name: Verify no MinGW runtime DLL dependencies
Expand Down
Loading