-
Notifications
You must be signed in to change notification settings - Fork 1
200 lines (167 loc) · 6.28 KB
/
release.yml
File metadata and controls
200 lines (167 loc) · 6.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
name: Build & Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
# ─────────────── Linux: AppImage + deb + rpm (x64 & arm64) ───────────────
build-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libarchive-tools squashfs-tools fakeroot rpm dpkg
- name: Install npm dependencies
run: npm install --prefer-offline
- name: Build React
run: npm run react-build
env:
CI: false
- name: Build Linux packages (AppImage + deb + rpm, x64 + arm64)
run: ./node_modules/.bin/electron-builder --linux --x64 --arm64 --publish never
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: List dist folder
run: ls -la dist/
- name: Upload Linux artifacts
uses: actions/upload-artifact@v4
with:
name: dist-linux
path: |
dist/*.AppImage
dist/*.deb
dist/*.rpm
retention-days: 1
# ─────────────── Windows: NSIS-Installer ───────────────
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install npm dependencies
run: npm install --prefer-offline
- name: Build React
run: npm run react-build
env:
CI: false
- name: Build Windows installer
run: ./node_modules/.bin/electron-builder --win --x64 --publish never
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: dist-windows
path: dist/*.exe
retention-days: 1
# ─────────────── macOS: DMG (x64 + arm64) ───────────────
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install npm dependencies
run: npm install --prefer-offline
- name: Build React
run: npm run react-build
env:
CI: false
- name: Build macOS DMG
run: ./node_modules/.bin/electron-builder --mac --x64 --arm64 --publish never
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Code-Signing & Notarisierung sind hier OPT-IN.
# Für signierte/notarisierte Builds setze diese Secrets im Repo:
# APPLE_ID, APPLE_APP_SPECIFIC_PASSWORD, APPLE_TEAM_ID, CSC_LINK, CSC_KEY_PASSWORD
# Ohne diese Secrets entstehen unsigned Builds (User muss Gatekeeper umgehen).
CSC_IDENTITY_AUTO_DISCOVERY: false
- name: Upload macOS artifacts
uses: actions/upload-artifact@v4
with:
name: dist-macos
path: dist/*.dmg
retention-days: 1
# ─────────────── Release: alle Artefakte zusammenführen + SHA256SUMS ───────────────
release:
needs: [build-linux, build-windows, build-macos]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Flatten dist folder
run: |
mkdir -p dist
find artifacts -type f \( -name '*.AppImage' -o -name '*.deb' -o -name '*.rpm' -o -name '*.exe' -o -name '*.dmg' \) -exec mv {} dist/ \;
ls -la dist/
- name: Generate SHA256SUMS manifest
working-directory: dist
run: |
sha256sum *.AppImage *.deb *.rpm *.exe *.dmg 2>/dev/null > SHA256SUMS.txt || true
# Filter Zeilen ohne match heraus
grep -v "No such" SHA256SUMS.txt > SHA256SUMS.txt.tmp || true
mv SHA256SUMS.txt.tmp SHA256SUMS.txt 2>/dev/null || true
echo "Manifest:"
cat SHA256SUMS.txt
- name: Get version from tag
id: version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: CoreMail Desktop v${{ steps.version.outputs.VERSION }}
body: |
## CoreMail Desktop v${{ steps.version.outputs.VERSION }}
### Schnell-Install
**Linux** — Architektur wird automatisch erkannt:
```bash
bash <(curl -s https://raw.githubusercontent.com/Zenovs/coremail/initial-code/install.sh)
```
### Alle Downloads
| Plattform | Format | Architektur |
|---|---|---|
| Linux | `.AppImage` (universal) | x64, arm64 |
| Linux (Debian/Ubuntu) | `.deb` | x64, arm64 |
| Linux (Fedora/RHEL) | `.rpm` | x64, arm64 |
| Windows | `.exe` (NSIS-Installer) | x64 |
| macOS | `.dmg` | x64 (Intel), arm64 (Apple Silicon) |
### Verifikation
`SHA256SUMS.txt` enthält die Hashes aller Dateien:
```bash
sha256sum -c SHA256SUMS.txt --ignore-missing
```
Die In-App-Update-Funktion verifiziert ab v6.2.0 automatisch.
### macOS / Windows ohne Code-Signing
Diese Builds sind aktuell **unsigniert**. Beim ersten Start erscheint
eine Sicherheitswarnung — siehe [docs/UNSIGNED-BUILDS.md](https://github.com/Zenovs/coremail/blob/initial-code/docs/UNSIGNED-BUILDS.md).
### Änderungen
Siehe [Commit-History](https://github.com/Zenovs/coremail/commits/initial-code)
files: |
dist/*.AppImage
dist/*.deb
dist/*.rpm
dist/*.exe
dist/*.dmg
dist/SHA256SUMS.txt
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}