-
Notifications
You must be signed in to change notification settings - Fork 0
742 lines (656 loc) · 26.2 KB
/
Copy pathrelease.yml
File metadata and controls
742 lines (656 loc) · 26.2 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
packages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
# ===========================================================
# Linux: .deb package + AppImage
# ===========================================================
build-linux:
name: Build — Linux x86_64
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake libsdl2-dev libfuse2
- name: Create include symlink
run: ln -sf ebrowser include/eBrowser
- name: Build Release
run: |
cmake -B build `
-DCMAKE_BUILD_TYPE=Release `
-DBUILD_TESTING=OFF `
-DBUILD_SHARED_LIBS=OFF `
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build --config Release --parallel
- name: Stage release files
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=ON \
-DCMAKE_C_FLAGS="-O2 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fPIE" \
-DCMAKE_EXE_LINKER_FLAGS="-pie -Wl,-z,relro,-z,now"
cmake --build build --parallel $(nproc)
- name: Run tests
run: |
cd build
ctest --output-on-failure \
-R "test_memory_safety|test_sandbox|test_firewall|test_anti_fingerprint|test_extension|test_privacy|test_tab_manager|test_bookmark"
- name: Strip binaries
run: |
strip build/port/eBrowser 2>/dev/null || true
- name: Build .deb package
run: |
VERSION="${{ github.ref_name }}"
VERSION="${VERSION#v}"
PKG_DIR="ebrowser_${VERSION}_amd64"
mkdir -p ${PKG_DIR}/DEBIAN
mkdir -p ${PKG_DIR}/usr/bin
mkdir -p ${PKG_DIR}/usr/share/applications
mkdir -p ${PKG_DIR}/usr/share/icons/hicolor/256x256/apps
mkdir -p ${PKG_DIR}/usr/share/doc/ebrowser
# Binary
cp build/port/eBrowser ${PKG_DIR}/usr/bin/ebrowser
# Desktop entry
cat > ${PKG_DIR}/usr/share/applications/ebrowser.desktop << 'DESKTOP'
[Desktop Entry]
Name=eBrowser
Comment=The Most Secure Lightweight Browser
Exec=ebrowser %u
Icon=ebrowser
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
DESKTOP
# Fix indentation
sed -i 's/^ //' ${PKG_DIR}/usr/share/applications/ebrowser.desktop
# Icon (convert SVG to PNG)
if command -v convert &>/dev/null; then
convert assets/logo.svg -resize 256x256 ${PKG_DIR}/usr/share/icons/hicolor/256x256/apps/ebrowser.png 2>/dev/null || true
fi
# Docs
cp README.md CHANGELOG.md LICENSE ${PKG_DIR}/usr/share/doc/ebrowser/
# Control file
cat > ${PKG_DIR}/DEBIAN/control << EOF
Package: ebrowser
Version: ${VERSION}
Section: web
Priority: optional
Architecture: amd64
Depends: libsdl2-2.0-0 (>= 2.0.0), libc6 (>= 2.17)
Maintainer: EmbeddedOS <info@embeddedos.org>
Homepage: https://github.com/embeddedos-org/eBrowser
Description: eBrowser — The Most Secure Lightweight Browser
A security-focused embedded browser with process sandboxing,
hardened memory allocator, application firewall, anti-fingerprinting,
DNS-over-HTTPS, built-in tracker blocker, and WebExtensions V3 support.
EOF
sed -i 's/^ //' ${PKG_DIR}/DEBIAN/control
dpkg-deb --build --root-owner-group ${PKG_DIR}
mv ${PKG_DIR}.deb eBrowser-${VERSION}-linux-x86_64.deb
echo "=== .deb package ==="
ls -lh eBrowser-${VERSION}-linux-x86_64.deb
- name: Build AppImage
run: |
VERSION="${{ github.ref_name }}"
VERSION="${VERSION#v}"
# Download appimagetool — pinned to stable release
curl -fsSL -o appimagetool https://github.com/AppImage/appimagetool/releases/download/1.9.0/appimagetool-x86_64.AppImage
chmod +x appimagetool
# Create AppDir structure
mkdir -p eBrowser.AppDir/usr/bin
mkdir -p eBrowser.AppDir/usr/share/applications
mkdir -p eBrowser.AppDir/usr/share/icons/hicolor/256x256/apps
cp build/port/eBrowser eBrowser.AppDir/usr/bin/ebrowser
# Desktop file
cat > eBrowser.AppDir/ebrowser.desktop << 'DESKTOP'
[Desktop Entry]
Name=eBrowser
Comment=The Most Secure Lightweight Browser
Exec=ebrowser %u
Icon=ebrowser
Type=Application
Categories=Network;WebBrowser;
DESKTOP
sed -i 's/^ //' eBrowser.AppDir/ebrowser.desktop
cp eBrowser.AppDir/ebrowser.desktop eBrowser.AppDir/usr/share/applications/
# Icon
if command -v convert &>/dev/null; then
convert assets/logo.svg -resize 256x256 eBrowser.AppDir/ebrowser.png 2>/dev/null || \
cp assets/logo.svg eBrowser.AppDir/ebrowser.svg
else
cp assets/logo.svg eBrowser.AppDir/ebrowser.svg
fi
# AppRun
cat > eBrowser.AppDir/AppRun << 'APPRUN'
#!/bin/bash
SELF=$(readlink -f "$0")
HERE=${SELF%/*}
exec "${HERE}/usr/bin/ebrowser" "$@"
APPRUN
chmod +x eBrowser.AppDir/AppRun
# Build AppImage
ARCH=x86_64 ./appimagetool eBrowser.AppDir eBrowser-${VERSION}-x86_64.AppImage 2>/dev/null || true
if [ -f "eBrowser-${VERSION}-x86_64.AppImage" ]; then
echo "=== AppImage ==="
ls -lh eBrowser-${VERSION}-x86_64.AppImage
fi
- name: Upload .deb
uses: actions/upload-artifact@v4
with:
name: ebrowser-linux-deb
path: eBrowser-*-linux-x86_64.deb
- name: Upload AppImage
if: ${{ hashFiles('eBrowser-*-x86_64.AppImage') != '' }}
uses: actions/upload-artifact@v4
with:
name: ebrowser-linux-appimage
path: eBrowser-*-x86_64.AppImage
# ===========================================================
# Windows: Installer .exe (Inno Setup)
# ===========================================================
build-windows:
name: Build — Windows x86_64
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
choco install innosetup -y --no-progress
vcpkg install sdl2:x64-windows openssl:x64-windows
- name: Create include symlink
shell: cmd
run: |
cd include
if not exist eBrowser mklink /J eBrowser ebrowser
- name: Build Release
shell: pwsh
run: |
cmake -B build `
-DCMAKE_BUILD_TYPE=Release `
-DBUILD_TESTING=OFF `
-DBUILD_SHARED_LIBS=OFF `
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALLATION_ROOT\scripts\buildsystems\vcpkg.cmake"
cmake --build build --config Release --parallel
- name: Stage release files
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path release/bin
# Copy eBrowser executable
$exe = Get-ChildItem -Path build -Recurse -Filter "eBrowser.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
if ($exe) { Copy-Item $exe.FullName -Destination release/bin/ }
# Copy any DLLs from build tree
Get-ChildItem -Path build -Recurse -Filter "*.dll" -ErrorAction SilentlyContinue | ForEach-Object {
Copy-Item $_.FullName -Destination release/bin/ -Force
}
# Copy vcpkg runtime DLLs
$vcpkgBin = "$env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\bin"
if (Test-Path $vcpkgBin) {
foreach ($pattern in @("SDL2.dll", "libssl*.dll", "libcrypto*.dll")) {
Get-ChildItem -Path $vcpkgBin -Filter $pattern -ErrorAction SilentlyContinue | ForEach-Object {
Copy-Item $_.FullName -Destination release/bin/ -Force
Write-Host "Copied: $($_.Name)"
}
}
}
# Fallback search for SDL2.dll
if (-not (Test-Path "release/bin/SDL2.dll")) {
Write-Warning "SDL2.dll NOT found — searching system..."
Get-ChildItem -Path "$env:VCPKG_INSTALLATION_ROOT" -Recurse -Filter "SDL2.dll" -ErrorAction SilentlyContinue | Select-Object -First 1 | ForEach-Object {
Copy-Item $_.FullName -Destination release/bin/ -Force
Write-Host "Found and copied: $($_.FullName)"
}
}
Write-Host "=== Release bin contents ==="
Get-ChildItem release/bin/ | ForEach-Object { Write-Host " $($_.Name) ($([math]::Round($_.Length/1KB)) KB)" }
Copy-Item README.md, CHANGELOG.md, LICENSE -Destination release/ -ErrorAction SilentlyContinue
- name: Build Installer
shell: pwsh
run: |
$version = "${{ github.ref_name }}".TrimStart("v")
# Ensure output directory exists
New-Item -ItemType Directory -Force -Path build/installer | Out-Null
# Find iscc
$iscc = "C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
if (-not (Test-Path $iscc)) {
$iscc = (Get-Command iscc -ErrorAction SilentlyContinue).Source
}
if (-not $iscc -or -not (Test-Path $iscc)) {
Write-Error "Inno Setup (iscc) not found!"
exit 1
}
Write-Host "Using: $iscc"
Write-Host "Version: $version"
Write-Host "Release bin contents:"
Get-ChildItem release/bin/ -ErrorAction SilentlyContinue | ForEach-Object { Write-Host " $($_.Name)" }
# Build installer
& $iscc "/DEBROWSER_VERSION=$version" "installer\windows\ebrowser-setup.iss"
if ($LASTEXITCODE -ne 0) { Write-Error "Inno Setup failed"; exit 1 }
# Copy output to repo root for upload
$installer = Get-ChildItem -Path build/installer -Filter "*.exe" | Select-Object -First 1
if ($installer) {
Copy-Item $installer.FullName -Destination "eBrowser-$version-Setup-x64.exe"
Write-Host "=== Installer built ==="
Write-Host " $($installer.Name) ($([math]::Round($installer.Length/1MB, 1)) MB)"
} else {
Write-Error "Installer .exe not found in build/installer/"
Get-ChildItem build/installer/ -ErrorAction SilentlyContinue
exit 1
}
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: ebrowser-windows-installer
path: eBrowser-*-Setup-x64.exe
# ===========================================================
# macOS: .dmg disk image
# ===========================================================
build-macos-arm64:
name: Build — macOS arm64
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: brew install sdl2
- name: Create include symlink
run: ln -sf ebrowser include/eBrowser 2>/dev/null || true
- name: Build Release
run: |
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DCMAKE_PREFIX_PATH=$(brew --prefix)
cmake --build build --parallel $(sysctl -n hw.ncpu)
- name: Create .app bundle
run: |
VERSION="${{ github.ref_name }}"
VERSION="${VERSION#v}"
APP="eBrowser.app"
mkdir -p "${APP}/Contents/MacOS"
mkdir -p "${APP}/Contents/Resources"
mkdir -p "${APP}/Contents/Frameworks"
# Binary
cp build/port/eBrowser "${APP}/Contents/MacOS/eBrowser" 2>/dev/null || true
# Copy SDL2 framework/dylib
SDL2_LIB=$(brew --prefix sdl2)/lib
if [ -d "${SDL2_LIB}" ]; then
cp ${SDL2_LIB}/libSDL2*.dylib "${APP}/Contents/Frameworks/" 2>/dev/null || true
# Fix rpath
for dylib in "${APP}"/Contents/Frameworks/libSDL2*.dylib; do
install_name_tool -id "@executable_path/../Frameworks/$(basename $dylib)" "$dylib" 2>/dev/null || true
done
if [ -f "${APP}/Contents/MacOS/eBrowser" ]; then
install_name_tool -add_rpath "@executable_path/../Frameworks" "${APP}/Contents/MacOS/eBrowser" 2>/dev/null || true
fi
fi
# Info.plist
cat > "${APP}/Contents/Info.plist" << PLIST
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>eBrowser</string>
<key>CFBundleIdentifier</key>
<string>org.embeddedos.ebrowser</string>
<key>CFBundleName</key>
<string>eBrowser</string>
<key>CFBundleDisplayName</key>
<string>eBrowser</string>
<key>CFBundleVersion</key>
<string>${VERSION}</string>
<key>CFBundleShortVersionString</key>
<string>${VERSION}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>eBrw</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>LSMinimumSystemVersion</key>
<string>12.0</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeName</key>
<string>HTML Document</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>html</string>
<string>htm</string>
</array>
<key>LSHandlerRank</key>
<string>Alternate</string>
</dict>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>http</string>
<string>https</string>
</array>
<key>CFBundleURLName</key>
<string>Web URL</string>
</dict>
</array>
</dict>
</plist>
PLIST
# Generate icns from SVG
if command -v sips &>/dev/null && [ -f assets/logo.svg ]; then
mkdir -p AppIcon.iconset
for size in 16 32 64 128 256 512; do
sips -z $size $size assets/logo.svg --out "AppIcon.iconset/icon_${size}x${size}.png" 2>/dev/null || true
double=$((size * 2))
sips -z $double $double assets/logo.svg --out "AppIcon.iconset/icon_${size}x${size}@2x.png" 2>/dev/null || true
done
iconutil -c icns AppIcon.iconset -o "${APP}/Contents/Resources/AppIcon.icns" 2>/dev/null || true
fi
echo "=== App bundle ==="
find "${APP}" -type f | head -20
- name: Create DMG
run: |
VERSION="${{ github.ref_name }}"
VERSION="${VERSION#v}"
DMG_NAME="eBrowser-${VERSION}-macOS-arm64.dmg"
# Create DMG with Applications symlink
mkdir -p dmg_contents
cp -R eBrowser.app dmg_contents/
ln -s /Applications dmg_contents/Applications
cp README.md dmg_contents/ 2>/dev/null || true
hdiutil create -volname "eBrowser ${VERSION}" \
-srcfolder dmg_contents \
-ov -format UDZO \
"${DMG_NAME}"
echo "=== DMG ==="
ls -lh "${DMG_NAME}"
- name: Upload DMG
uses: actions/upload-artifact@v4
with:
name: ebrowser-macos-dmg
path: eBrowser-*-macOS-arm64.dmg
# ===========================================================
# Book PDF
# ===========================================================
build-pdf:
name: Build Book PDF
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check book source
id: check
run: |
if [ ! -f docs/book/book.md ]; then
echo "has_book=false" >> $GITHUB_OUTPUT
else
echo "has_book=true" >> $GITHUB_OUTPUT
fi
- name: Install pandoc & LaTeX
if: steps.check.outputs.has_book == 'true'
run: |
sudo apt-get update
sudo apt-get install -y pandoc texlive-xetex texlive-fonts-recommended texlive-fonts-extra
- name: Clean source
if: steps.check.outputs.has_book == 'true'
run: sed -i 's/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]//g' docs/book/book.md
- name: Generate PDF
if: steps.check.outputs.has_book == 'true'
run: |
VERSION="${GITHUB_REF#refs/tags/}"
pandoc \
docs/book/book.md \
-o eBrowser-guide.pdf \
--pdf-engine=xelatex \
--from=markdown+smart \
-V geometry:margin=1in \
-V fontsize=11pt \
-V documentclass=report \
-V "title=eBrowser — Official Reference Guide" \
-V "subtitle=Version $VERSION" \
-V "author=Srikanth Patchava \\& EmbeddedOS Contributors" \
-V "date=$(date +'%B %Y')" \
-V toc=true \
-V toc-depth=3 \
-V colorlinks=true \
-V linkcolor=blue \
-V urlcolor=blue \
--highlight-style=tango \
--number-sections
- name: Verify PDF
if: steps.check.outputs.has_book == 'true'
run: |
if [ ! -f eBrowser-guide.pdf ]; then
echo "ERROR: PDF not generated"
exit 1
fi
SIZE=$(du -h eBrowser-guide.pdf | cut -f1)
echo "PDF generated: $SIZE"
- name: Upload PDF artifact
if: steps.check.outputs.has_book == 'true'
uses: actions/upload-artifact@v4
with:
name: book-pdf
path: eBrowser-guide.pdf
# ===========================================================
# Promo Video
# ===========================================================
build-video:
name: Build Promo Video
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Check promo source
id: check
run: |
if [ -f promo/promo_scene.py ] && [ -f promo/generate_audio.py ]; then
echo "has_promo=true" >> $GITHUB_OUTPUT
else
echo "has_promo=false" >> $GITHUB_OUTPUT
fi
- name: Set up Python
if: steps.check.outputs.has_promo == 'true'
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
if: steps.check.outputs.has_promo == 'true'
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg libcairo2-dev libpango1.0-dev
pip install manim==0.18.1 edge-tts mutagen
- name: Generate narration audio
if: steps.check.outputs.has_promo == 'true'
run: |
cd promo
python generate_audio.py
ls -lh *.mp3
- name: Render video
if: steps.check.outputs.has_promo == 'true'
run: |
cd promo
manim render -qh --format mp4 promo_scene.py ProductPromo
- name: Merge video + audio
if: steps.check.outputs.has_promo == 'true'
run: |
cd promo
VIDEO=$(find media/videos -name "ProductPromo.mp4" | head -1)
if [ -n "$VIDEO" ]; then
ffmpeg -y -i "$VIDEO" -i narration.mp3 \
-c:v copy -c:a aac -b:a 192k \
-map 0:v:0 -map 1:a:0 \
-shortest \
eBrowser-promo.mp4
ls -lh eBrowser-promo.mp4
fi
- name: Upload video
if: steps.check.outputs.has_promo == 'true'
uses: actions/upload-artifact@v4
with:
name: ebrowser-promo-video
path: promo/eBrowser-promo.mp4
# ===========================================================
# Create GitHub Release with installers
# ===========================================================
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: [build-linux, build-windows, build-macos-arm64, build-pdf, build-video]
if: always() && needs.build-linux.result == 'success'
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version
id: version
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Collect release files
run: |
mkdir -p final
find artifacts -type f \( -name "*.deb" -o -name "*.AppImage" -o -name "*.exe" -o -name "*.dmg" -o -name "*.pdf" -o -name "*.mp4" \) \
-exec cp {} final/ \;
echo "=== Release assets ==="
ls -lh final/
- name: Generate SHA-256 checksums
run: |
cd final
sha256sum * > SHA256SUMS.txt
cat SHA256SUMS.txt
- name: Generate CycloneDX SBOM
uses: anchore/sbom-action@v0
with:
path: .
format: cyclonedx-json
output-file: final/sbom.cdx.json
artifact-name: sbom.cdx.json
- name: Generate SPDX SBOM
uses: anchore/sbom-action@v0
with:
path: .
format: spdx-json
output-file: final/sbom.spdx.json
artifact-name: sbom.spdx.json
- name: Install cosign
uses: sigstore/cosign-installer@v3
- name: Sign artifacts (cosign keyless)
run: |
set -e
cd final
for f in *.deb *.AppImage *.exe *.dmg *.pdf *.mp4; do
[ -f "$f" ] || continue
cosign sign-blob --yes --bundle "${f}.sig.bundle" "$f"
done
- name: Optional Linux GPG signing
if: env.GPG_KEY != ''
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
run: |
echo "$GPG_KEY" | gpg --batch --import
cd final
for f in *.deb *.AppImage; do
[ -f "$f" ] || continue
echo "$GPG_PASSPHRASE" | gpg --batch --yes --pinentry-mode loopback \
--passphrase-fd 0 --detach-sign --armor "$f"
done
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.tag }}
name: "eBrowser ${{ steps.version.outputs.tag }}"
fail_on_unmatched_files: false
body: |
## eBrowser ${{ steps.version.outputs.tag }}
### Install
| Platform | Download | Install |
|----------|----------|---------|
| **Windows** | `eBrowser-Setup-x64.exe` | Run the installer |
| **macOS** (Apple Silicon) | `eBrowser-macOS-arm64.dmg` | Open DMG, drag to Applications |
| **Linux** (Debian/Ubuntu) | `eBrowser-linux-x86_64.deb` | `sudo dpkg -i eBrowser-*.deb` |
| **Linux** (Any distro) | `eBrowser-x86_64.AppImage` | `chmod +x eBrowser-*.AppImage && ./eBrowser-*.AppImage` |
| **Reference Guide** | `eBrowser-guide.pdf` | |
| **Promo Video** | `eBrowser-promo.mp4` | |
### Integrity & supply-chain
- `SHA256SUMS.txt` — file checksums
- `sbom.cdx.json` — CycloneDX SBOM
- `sbom.spdx.json` — SPDX SBOM
- `*.sig.bundle` — Sigstore cosign keyless signatures
- `*.asc` — GPG detached signatures (when GPG_KEY is configured)
### Highlights
- Process sandbox (seccomp-BPF + namespaces)
- Hardened memory allocator (canaries, UAF detection)
- Application firewall (domain blocklist, CIDR, rate limiting)
- Anti-fingerprinting (4 levels incl. Tor-like)
- DNS-over-HTTPS with DNSSEC
- Built-in tracker/ad blocker (EasyList compatible)
- WebExtensions V3 API
files: final/*
draft: false
prerelease: false
# ===========================================================
# Docker
# ===========================================================
docker-release:
name: Docker Release
runs-on: ubuntu-22.04
needs: create-release
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version
id: meta
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Lowercase image name
id: image
run: echo "name=$(echo '${{ github.repository_owner }}/ebrowser' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: enterprise/docker/Dockerfile
push: true
tags: |
ghcr.io/${{ steps.image.outputs.name }}:${{ steps.meta.outputs.version }}
ghcr.io/${{ steps.image.outputs.name }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max