Skip to content

Commit

Permalink
release workflow to build GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
roffidaijoubu committed Dec 15, 2024
1 parent 3da44b5 commit 2ded6e4
Show file tree
Hide file tree
Showing 4 changed files with 766 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: true

- name: Initialize Go Module
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64

- name: Install Dependencies
run: |
go mod init github.com/${{ github.repository }}
go mod tidy
go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Build
run: |
go build -v -ldflags="-s -w" -trimpath -o app.exe
go build -v -ldflags="-s -w -H=windowsgui" -trimpath -o app.exe
- name: Create ZIP
run: |
# Create a temporary directory for the release
New-Item -ItemType Directory -Path release
# Copy executable to release dir
Copy-Item app.exe release/
# Create assets directory and copy files
New-Item -ItemType Directory -Path release/assets
Copy-Item assets/* release/assets/
# Create the final ZIP
Copy-Item assets/* release/assets/ -Recurse
Compress-Archive -Path release/* -DestinationPath "chat-tools-${{ github.ref_name }}.zip"
- name: Create Release
Expand Down
37 changes: 35 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,39 @@ go 1.22

toolchain go1.22.10

require go.etcd.io/bbolt v1.3.11
require (
fyne.io/fyne/v2 v2.5.3
go.etcd.io/bbolt v1.3.11
)

require golang.org/x/sys v0.4.0 // indirect
require (
fyne.io/systray v1.11.0 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fredbi/uri v1.1.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe // indirect
github.com/fyne-io/glfw-js v0.0.0-20241126112943-313d8a0fe1d0 // indirect
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 // indirect
github.com/go-gl/gl v0.0.0-20231021071112-07e5d0ea2e71 // indirect
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240506104042-037f3cc74f2a // indirect
github.com/go-text/render v0.2.0 // indirect
github.com/go-text/typesetting v0.2.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gopherjs/gopherjs v1.17.2 // indirect
github.com/jeandeaual/go-locale v0.0.0-20240223122105-ce5225dcaa49 // indirect
github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e // indirect
github.com/nicksnyder/go-i18n/v2 v2.4.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rymdport/portal v0.3.0 // indirect
github.com/srwiley/oksvg v0.0.0-20221011165216-be6e8873101c // indirect
github.com/srwiley/rasterx v0.0.0-20220730225603-2ab79fcdd4ef // indirect
github.com/stretchr/testify v1.8.4 // indirect
github.com/yuin/goldmark v1.7.1 // indirect
golang.org/x/image v0.18.0 // indirect
golang.org/x/mobile v0.0.0-20231127183840-76ac6878050a // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.16.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 2ded6e4

Please sign in to comment.