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
10 changes: 10 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ jobs:
with:
fetch-depth: 0

# Set up MSYS2 (needed for static linking of MinGW runtimes)
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: mingw-w64-x86_64-gcc
update: false

- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest

Expand All @@ -91,6 +99,8 @@ jobs:
run: wails build -platform windows/amd64 -ldflags="-extldflags=-static"
env:
CGO_ENABLED: 1
CC: gcc
CGO_LDFLAGS: '-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread -Wl,-Bdynamic'

- name: Upload Windows GUI artifact
uses: actions/upload-artifact@v4
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,14 @@ jobs:
with:
fetch-depth: 0

# Set up MSYS2 on Windows (needed for static linking of MinGW runtimes)
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: mingw-w64-x86_64-gcc
update: false

# Install Wails (version from wails.json)
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
Expand All @@ -405,6 +413,8 @@ jobs:
run: wails build -platform windows/amd64 -ldflags="-extldflags=-static"
env:
CGO_ENABLED: 1
CC: gcc
CGO_LDFLAGS: '-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread -Wl,-Bdynamic'

# Upload Windows artifact
- name: Upload Windows GUI artifact
Expand Down
Loading