Skip to content

Commit f66dfde

Browse files
committed
Remove Signing For Windows and MacOS CLI
1 parent 4a79a19 commit f66dfde

File tree

1 file changed

+25
-29
lines changed

1 file changed

+25
-29
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88

99
env:
1010
FORCE_COLOR: true
11-
TIMESTAMP_SERVER: http://timestamp.digicert.com/
12-
BASE64_PFX: ${{secrets.BASE64_PFX}}
13-
PFX_PASSWORD: ${{secrets.PFX_PASSWORD}}
1411
GITHUB_TOKEN: ${{ secrets.ETOKEN }}
1512

1613
jobs:
@@ -43,15 +40,15 @@ jobs:
4340
- name: Install Go dependencies
4441
run: go get -v
4542

46-
- name: Build X11 Gui
43+
- name: Build GUI
4744
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
4845

49-
- name: Build Cli
46+
- name: Build CLI
5047
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
5148

5249
- name: Update executable
5350
run: |
54-
chmod +x Equilotl-x11
51+
chmod +x Equilotl*
5552
5653
- name: Upload artifact
5754
uses: actions/upload-artifact@v4
@@ -94,14 +91,17 @@ jobs:
9491
- name: Install Go dependencies
9592
run: go get -v
9693

97-
- name: Build
98-
run: CGO_CFLAGS="-mmacosx-version-min=10.15" CGO_LDFLAGS="-mmacosx-version-min=10.15" CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -v -tags static -ldflags "-s -w -X 'vencord/buildinfo.InstallerGitHash=$(git rev-parse --short HEAD)' -X 'vencord/buildinfo.InstallerTag=${{ github.ref_name }}'" -o Equilotl
94+
- name: Build GUI
95+
run: CGO_CFLAGS="-mmacosx-version-min=10.15" CGO_LDFLAGS="-mmacosx-version-min=10.15" CGO_ENABLED=1 GOOS=darwin 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
96+
97+
- name: Build CLI
98+
run: CGO_CFLAGS="-mmacosx-version-min=10.15" CGO_LDFLAGS="-mmacosx-version-min=10.15" CGO_ENABLED=0 GOOS=darwin 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-macos
9999

100100
- name: Update executable
101101
run: |
102-
chmod +x Equilotl
102+
chmod +x Equilotl*
103103
104-
- name: Generate MacOS bundle
104+
- name: Generate MacOS GUI bundle
105105
run: |
106106
mkdir -p Equilotl.app/Contents/MacOS
107107
mkdir -p Equilotl.app/Contents/Resources
@@ -110,11 +110,22 @@ jobs:
110110
cp macos/icon.icns Equilotl.app/Contents/Resources/icon.icns
111111
zip -r Equilotl.MacOS.zip Equilotl.app
112112
113+
- name: Generate MacOS CLI bundle
114+
run: |
115+
mkdir -p EquilotlCli.app/Contents/MacOS
116+
mkdir -p EquilotlCli.app/Contents/Resources
117+
cp macos/Info.plist EquilotlCli.app/Contents/Info.plist
118+
mv EquilotlCli EquilotlCli.app/Contents/MacOS/EquilotlCli
119+
cp macos/icon.icns EquilotlCli.app/Contents/Resources/icon.icns
120+
zip -r EquilotlCli.MacOS.zip EquilotlCli.app
121+
113122
- name: Upload artifact
114123
uses: actions/upload-artifact@v4
115124
with:
116125
name: Equilotl-macos
117-
path: Equilotl.MacOS.zip
126+
path: |
127+
Equilotl.MacOS.zip
128+
EquilotlCli.MacOS.zip
118129
119130
120131
build-windows:
@@ -156,36 +167,21 @@ jobs:
156167
go get -v
157168
go install github.com/tc-hib/go-winres@latest
158169
159-
- name: Build Gui
170+
- name: Build GUI
160171
shell: msys2 {0}
161172
run: |
162173
export GOROOT=/mingw64/lib/go
163174
export GOPATH=/mingw64
164175
go-winres make --product-version "git-tag"
165-
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
176+
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
166177
167-
- name: Build i386 Cli
178+
- name: Build i386 CLI
168179
shell: msys2 {0}
169180
run: |
170181
export GOROOT=/mingw64/lib/go
171182
export GOPATH=/mingw64
172183
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -v -tags "static cli" -ldflags "-s -w -extldflags=-static -X 'vencord/buildinfo.InstallerGitHash=$(git rev-parse --short HEAD)' -X 'vencord/buildinfo.InstallerTag=${{ github.ref_name }}'" -o EquilotlCli.exe
173184
174-
- name: Import code signing certificate
175-
run: |
176-
$pfxCertFilePath = Join-Path -Path $PSScriptRoot -ChildPath "CodeSigningCertificate.pfx"
177-
Set-Content -Value $([System.Convert]::FromBase64String($env:BASE64_PFX)) -Path $pfxCertFilePath -AsByteStream
178-
Import-PfxCertificate -FilePath $pfxCertFilePath -Password $($env:PFX_PASSWORD | ConvertTo-SecureString -AsPlainText -Force) -CertStoreLocation Cert:/CurrentUser/My
179-
180-
- name: Set up Windows 10 SDK
181-
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2.4
182-
183-
- name: Digitally sign equilotl executables
184-
run: |
185-
New-Alias "signtool" "C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64\signtool.exe"
186-
signtool sign /fd SHA256 /a /t ${{env.TIMESTAMP_SERVER}} Equilotl.exe
187-
signtool sign /fd SHA256 /a /t ${{env.TIMESTAMP_SERVER}} EquilotlCli.exe
188-
189185
- name: Upload artifact
190186
uses: actions/upload-artifact@v4
191187
with:

0 commit comments

Comments
 (0)