Skip to content
This repository was archived by the owner on May 24, 2025. It is now read-only.

Commit 526f4c8

Browse files
committed
🔃 Update GitHub Release Workflow for app bundle
1 parent e670090 commit 526f4c8

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

.github/workflows/release.yaml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,46 +41,80 @@ jobs:
4141
go get github.com/matishsiao/goInfo
4242
go build src/main.go
4343
mv main AppleMusic_Discord_RPC
44+
cp AppleMusic_Discord_RPC Applications/AppleMusic_Discord_RPC.app/Contents/MacOS/
45+
cp ovh.sech1p.AppleMusic_Discord_RPC.plist Applications/AppleMusic_Discord_RPC.app/
46+
cp postinstall.sh Applications/AppleMusic_Discord_RPC.app/
4447
env:
4548
CGO_ENABLED: 1
4649
GOOS: darwin
4750
GOARCH: amd64
4851

49-
- name: Pack Release 📦 (Intel-based Macs)
52+
- name: Pack Release 📦 (Intel-based Macs executable)
5053
uses: thedoctor0/zip-release@0.7.5
5154
with:
5255
type: "zip"
5356
filename: "AppleMusic_Discord_RPC-${{ github.ref_name }}-mac-amd64.zip"
5457
path: "./AppleMusic_Discord_RPC"
58+
59+
- name: Pack Release 📦 (Intel-based Macs app bundle)
60+
uses: thedoctor0/zip-release@0.7.5
61+
with:
62+
type: "zip"
63+
filename: "AppleMusic_Discord_RPC-${{ github.ref_name }}-mac-amd64.app.zip"
64+
path: "./Applications/AppleMusic_Discord_RPC.app"
5565

56-
- name: Upload artifact and release it 📦 (Intel-based Macs)
66+
- name: Upload artifact with executable and release it 📦 (Intel-based Macs)
5767
uses: softprops/action-gh-release@v1
5868
with:
5969
files: ./AppleMusic_Discord_RPC-${{ github.ref_name }}-mac-amd64.zip
6070
env:
6171
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6272

73+
- name: Upload artifact with app bundle and release it 📦 (Intel-based Macs)
74+
uses: softprops/action-gh-release@v1
75+
with:
76+
files: ./AppleMusic_Discord_RPC-${{ github.ref_name }}-mac-amd64.app.zip
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
6380
- name: Build Release 🛠 (Apple Silicon-based Macs)
6481
run: |
6582
rm AppleMusic_Discord_RPC
6683
go get github.com/matishsiao/goInfo
6784
go build src/main.go
6885
mv main AppleMusic_Discord_RPC
86+
cp AppleMusic_Discord_RPC Applications/AppleMusic_Discord_RPC.app/Contents/MacOS/
87+
cp ovh.sech1p.AppleMusic_Discord_RPC.plist Applications/AppleMusic_Discord_RPC.app/
88+
cp postinstall.sh Applications/AppleMusic_Discord_RPC.app/
6989
env:
7090
CGO_ENABLED: 1
7191
GOOS: darwin
7292
GOARCH: arm64
7393

74-
- name: Pack Release 📦 (Apple Silicon-based Macs)
94+
- name: Pack Release 📦 (Apple Silicon-based Macs executable)
7595
uses: thedoctor0/zip-release@0.7.5
7696
with:
7797
type: "zip"
7898
filename: "AppleMusic_Discord_RPC-${{ github.ref_name }}-mac-arm64.zip"
7999
path: "./AppleMusic_Discord_RPC"
100+
101+
- name: Pack Release 📦 (Apple Silicon-based Macs app bundle)
102+
uses: thedoctor0/zip-release@0.7.5
103+
with:
104+
type: "zip"
105+
filename: "AppleMusic_Discord_RPC-${{ github.ref_name }}-mac-arm64.app.zip"
106+
path: "./Applications/AppleMusic_Discord_RPC.app"
80107

81-
- name: Upload artifact and release it 📦 (Apple Silicon-based Macs)
108+
- name: Upload artifact executable and release it 📦 (Apple Silicon-based Macs)
82109
uses: softprops/action-gh-release@v1
83110
with:
84111
files: ./AppleMusic_Discord_RPC-${{ github.ref_name }}-mac-arm64.zip
85112
env:
86113
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114+
115+
- name: Upload artifact app bundle and release it 📦 (Apple Silicon-based Macs)
116+
uses: softprops/action-gh-release@v1
117+
with:
118+
files: ./AppleMusic_Discord_RPC-${{ github.ref_name }}-mac-arm64.app.zip
119+
env:
120+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)