Skip to content

Commit 2ef3038

Browse files
committed
release/docs: version explicite dans les fichiers, ajout de sudo apt install et d'exemples curl
• Les noms de fichiers utilisent maintenant la variable de version dans le body de la release. • Ajout de la commande sudo apt install ./fichier.deb comme alternative à dpkg -i. • Ajout d'exemples curl pour télécharger les paquets directement depuis la ligne de commande.
1 parent 5496058 commit 2ef3038

File tree

1 file changed

+37
-19
lines changed

1 file changed

+37
-19
lines changed

.github/workflows/build-release.yml

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111

1212
env:
1313
APP_NAME: filefind
14+
# Note: github.ref_name will include the 'v' for tags, e.g., 'v1.1.3'
15+
# The version step below will handle removing it for the package version number.
1416
VERSION: ${{ github.ref_name }}
1517

1618
permissions:
@@ -369,45 +371,61 @@ jobs:
369371
files: release-assets/*
370372
draft: false
371373
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
372-
generate_release_notes: true
374+
# generate_release_notes: true # We are providing a custom body
373375
body: |
374376
## FileFind ${{ needs.build-linux.outputs.version }}
375377
376378
Advanced file search utility with comprehensive search options and cross-platform compatibility.
377379
378-
### Downloads
380+
### Downloads 📦
379381
380-
**Linux:**
381-
- 📦 `filefind_*_amd64.deb` - Debian/Ubuntu package
382-
- 📁 `filefind-linux-portable-*.tar.gz` - Portable archive
382+
- **Linux Debian/Ubuntu Package:** `filefind_${{ needs.build-linux.outputs.version }}_amd64.deb`
383+
- **Linux Portable Archive:** `filefind-linux-portable-${{ needs.build-linux.outputs.version }}.tar.gz`
384+
- **Windows Installer:** `FileFind-Setup-${{ needs.build-linux.outputs.version }}.exe`
385+
- **Windows Portable Archive:** `filefind-windows-portable-${{ needs.build-linux.outputs.version }}.zip`
383386
384-
**Windows:**
385-
- 🔧 `FileFind-Setup-*.exe` - Windows installer
386-
- 📁 `filefind-windows-portable-*.zip` - Portable archive
387+
---
387388
388-
### Installation
389+
### Installation 🚀
389390
390-
**Linux (DEB):**
391+
#### Linux (DEB)
392+
**1. Download the package:**
391393
```bash
392-
sudo dpkg -i filefind_*_amd64.deb
393-
sudo apt-get install -f # Fix dependencies if needed
394+
curl -LO [https://github.com/$](https://github.com/$){{ github.repository }}/releases/download/${{ github.ref_name }}/filefind_${{ needs.build-linux.outputs.version }}_amd64.deb
394395
```
395396
396-
**Linux (Portable):**
397+
**2. Install the package (choose one method):**
398+
*Method A: Recommended (handles dependencies)*
399+
```bash
400+
sudo apt install ./filefind_${{ needs.build-linux.outputs.version }}_amd64.deb
401+
```
402+
*Method B: Using dpkg*
403+
```bash
404+
sudo dpkg -i filefind_${{ needs.build-linux.outputs.version }}_amd64.deb
405+
# If you have dependency errors, run this:
406+
sudo apt-get install -f
407+
```
408+
409+
#### Linux (Portable)
410+
**1. Download and extract:**
411+
```bash
412+
curl -LO [https://github.com/$](https://github.com/$){{ github.repository }}/releases/download/${{ github.ref_name }}/filefind-linux-portable-${{ needs.build-linux.outputs.version }}.tar.gz
413+
tar -xzf filefind-linux-portable-${{ needs.build-linux.outputs.version }}.tar.gz
414+
```
415+
**2. Run the application:**
397416
```bash
398-
tar -xzf filefind-linux-portable-*.tar.gz
399417
cd filefind-linux-portable
400418
./run.sh
401419
```
402420
403-
**Windows:**
404-
- Run the installer or extract the portable archive
421+
#### Windows
422+
- **Installer:** Download and run `FileFind-Setup-${{ needs.build-linux.outputs.version }}.exe`.
423+
- **Portable:** Download and extract `filefind-windows-portable-${{ needs.build-linux.outputs.version }}.zip`.
405424
406-
### Verification
425+
---
407426
427+
### Verification ✅
408428
All files are signed with SHA256 checksums available in `checksums.txt`.
409-
410-
For more information, see the [Installation Guide](docs/INSTALL.md).
411429
env:
412430
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
413431

0 commit comments

Comments
 (0)