Skip to content

Commit 332cf62

Browse files
author
shanroislamdev
committed
feat(ci): improve release assets with proper naming and installers
1 parent 51ea106 commit 332cf62

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,41 @@ jobs:
5050

5151
- name: Build (Linux)
5252
if: runner.os == 'Linux'
53-
run: wails build -platform linux/amd64 -tags webkit2_41
53+
run: |
54+
wails build -platform linux/amd64 -tags webkit2_41
55+
mv build/bin/llm-desk build/bin/llm-desk-linux-amd64
5456
5557
- name: Build (Windows)
5658
if: runner.os == 'Windows'
57-
run: wails build -platform windows/amd64 -nsis
59+
run: |
60+
wails build -platform windows/amd64 -nsis
61+
mv build/bin/llm-desk.exe build/bin/llm-desk-windows-amd64.exe
62+
mv build/bin/*-installer.exe build/bin/llm-desk-windows-amd64-installer.exe
5863
5964
- name: Build (macOS)
6065
if: runner.os == 'macOS'
61-
run: wails build -platform darwin/universal
66+
run: |
67+
brew install create-dmg
68+
wails build -platform darwin/universal
69+
create-dmg \
70+
--volname "LLM Desk Installer" \
71+
--window-pos 200 120 \
72+
--window-size 800 400 \
73+
--icon-size 100 \
74+
--icon "LLM Desk.app" 200 190 \
75+
--hide-extension "LLM Desk.app" \
76+
--app-drop-link 600 185 \
77+
"build/bin/llm-desk-darwin-universal.dmg" \
78+
"build/bin/LLM Desk.app"
6279
6380
- name: Upload Release Asset
6481
uses: softprops/action-gh-release@v1
6582
if: startsWith(github.ref, 'refs/tags/')
6683
with:
6784
files: |
68-
build/bin/*
85+
build/bin/llm-desk-linux-amd64
86+
build/bin/llm-desk-windows-amd64.exe
87+
build/bin/llm-desk-windows-amd64-installer.exe
88+
build/bin/llm-desk-darwin-universal.dmg
6989
env:
7090
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)