Skip to content

Commit 3069f28

Browse files
authored
Merge pull request #5 from PhoenixAceVFX/main
Wayland compile fixed
2 parents e612fcc + 86f0039 commit 3069f28

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,19 @@ jobs:
3434
3535
- name: Install Linux dependencies
3636
run: |
37+
sudo add-apt-repository ppa:kisak/kisak-mesa -y
3738
sudo apt update
38-
sudo apt install -y pkg-config libsdl2-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libglx-dev libgl1-mesa-dev libxxf86vm-dev libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modules
39+
sudo apt install -y libwayland-dev libwayland-client0 libwayland-cursor0 libwayland-egl1 libwayland-server0 wayland-protocols pkg-config libsdl2-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libglx-dev libgl1-mesa-dev libxxf86vm-dev libxkbcommon-dev wayland-protocols extra-cmake-modules
3940
4041
- name: Install Go dependencies
4142
run: go get -v
4243

43-
- name: Build GUI
44+
- name: Build X11 GUI
4445
run: CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -tags "static gui" -ldflags "-s -w -X 'vencord/buildinfo.InstallerGitHash=$(git rev-parse --short HEAD)' -X 'vencord/buildinfo.InstallerTag=${{ github.ref_name }}'" -o Equilotl-x11
4546

47+
- name: Build Wayland GUI
48+
run: CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -tags "static wayland gui" -ldflags "-s -w -X 'vencord/buildinfo.InstallerGitHash=$(git rev-parse --short HEAD)' -X 'vencord/buildinfo.InstallerTag=${{ github.ref_name }}'" -o Equilotl-wayland
49+
4650
- name: Build CLI
4751
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -tags "static cli" -ldflags "-s -w -X 'vencord/buildinfo.InstallerGitHash=$(git rev-parse --short HEAD)' -X 'vencord/buildinfo.InstallerTag=${{ github.ref_name }}'" -o EquilotlCli-linux
4852

@@ -56,6 +60,7 @@ jobs:
5660
name: Equilotl-linux
5761
path: |
5862
Equilotl-x11
63+
Equilotl-wayland
5964
EquilotlCli-linux
6065
6166
@@ -96,7 +101,7 @@ jobs:
96101

97102
- name: Update executable
98103
run: |
99-
chmod +x Equilotl*
104+
chmod +x Equilotl
100105
101106
- name: Generate MacOS GUI bundle
102107
run: |
@@ -111,8 +116,7 @@ jobs:
111116
uses: actions/upload-artifact@v4
112117
with:
113118
name: Equilotl-macos
114-
path: |
115-
Equilotl.MacOS.zip
119+
path: Equilotl.MacOS.zip
116120

117121

118122
build-windows:
@@ -160,7 +164,7 @@ jobs:
160164
export GOROOT=/mingw64/lib/go
161165
export GOPATH=/mingw64
162166
go-winres make --product-version "git-tag"
163-
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -v -tags "static gui" -ldflags "-s -w -H=windowsgui -extldflags=-static -X 'vencord/buildinfo.InstallerGitHash=$(git rev-parse --short HEAD)' -X 'vencord/buildinfo.InstallerTag=${{ github.ref_name }}'" -o Equilotl.exe
167+
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -v -tags static -ldflags "-s -w -H=windowsgui -extldflags=-static -X 'vencord/buildinfo.InstallerGitHash=$(git rev-parse --short HEAD)' -X 'vencord/buildinfo.InstallerTag=${{ github.ref_name }}'" -o Equilotl.exe
164168
165169
- name: Build i386 CLI
166170
shell: msys2 {0}
@@ -206,6 +210,8 @@ jobs:
206210

207211
- name: Create the release
208212
uses: softprops/action-gh-release@v2
213+
env:
214+
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
209215
with:
210216
name: ${{ github.ref_name }}
211217
token: ${{ env.GITHUB_TOKEN }}
@@ -216,7 +222,6 @@ jobs:
216222
body: |
217223
This is release ${{ github.ref_name }} of Equilotl.
218224
files: |
219-
linux/Equilotl-x11
220-
linux/EquilotlCli-linux
225+
linux/Equilotl*
221226
macos/Equilotl.MacOS.zip
222-
windows/Equilotl*.exe
227+
windows/Equilotl*.exe

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ MacOS
1414
- [GUI](https://github.com/Equicord/Equilotl/releases/latest/download/Equilotl.MacOS.zip)
1515

1616
Linux
17-
- [GUI](https://github.com/Equicord/Equilotl/releases/latest/download/Equilotl-x11)
17+
- [GUI-X11](https://github.com/Equicord/Equilotl/releases/latest/download/Equilotl-x11)
18+
- [GUI-Wayland](https://github.com/Equicord/Equilotl/releases/latest/download/Equilotl-wayland)
1819
- [CLI](https://github.com/Equicord/Equilotl/releases/latest/download/EquilotlCli-Linux)
1920
## Building from source
2021

0 commit comments

Comments
 (0)