2323 - name : 📥 Install MinGW
2424 run : choco install mingw -y
2525
26+ # Install Inno Setup
27+ - name : 📥 Install Inno Setup
28+ run : choco install innosetup -y
29+
2630 - name : ➕ Add mc.exe to PATH
2731 shell : pwsh
2832 run : |
4145 cmake -S Intrudex-Client -B Intrudex-Client\Build-Files -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
4246 cmake --build Intrudex-Client\Build-Files -- -j4
4347
48+ # Extract version from version.rc
4449 - name : 🏷️ Extract Version from version.rc
4550 id : get_version
4651 shell : pwsh
5661 echo "VERSION=unknown" >> $env:GITHUB_ENV
5762 }
5863
64+ - name : 📋 Prepare Installer Directory
65+ run : |
66+ Remove-Item -Recurse -Force Intrudex-Client\build -ErrorAction SilentlyContinue
67+ New-Item -ItemType Directory -Force -Path Intrudex-Client\build
68+ Copy-Item -Recurse -Force Intrudex-Client\Build-Files\* Intrudex-Client\build\
69+
70+ # Ensure LICENSE is present for the installer
71+ - name : 📄 Copy LICENSE for Installer
72+ run : Copy-Item LICENSE Intrudex-Client-installer.iss -Destination .
73+
74+ - name : 🛠 Build Installer
75+ shell : pwsh
76+ run : |
77+ & "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "Intrudex-Client-installer.iss"
78+
5979 - name : 📦 Create Zip Archive of Build Folder
6080 run : |
6181 Compress-Archive -Path Intrudex-Client\build -DestinationPath intrudex-client-build.zip
6585 id : filelist
6686 run : |
6787 Expand-Archive -Path intrudex-client-build.zip -DestinationPath _release_temp
68- Get-ChildItem _release_temp -Recurse | ForEach-Object { $_.FullName } | Out-File included_files.txt -Encoding utf8
88+ Get-ChildItem _release_temp -Recurse | ForEach-Object { $_.Name } | Out-File included_files.txt -Encoding utf8
6989 echo "INCLUDED_FILES<<EOF" >> $env:GITHUB_ENV
7090 Get-Content included_files.txt >> $env:GITHUB_ENV
7191 echo "EOF" >> $env:GITHUB_ENV
@@ -74,34 +94,54 @@ jobs:
7494 uses : softprops/action-gh-release@v2
7595 with :
7696 tag_name : v${{ env.VERSION }}
77- name : " Intrudex Client - v${{ env.VERSION }}"
97+ name : " 🚀 Intrudex Client v${{ env.VERSION }} Released! "
7898 body : |
79- ## 🔐 Intrudex Client - v${{ env.VERSION }}
80-
81- ### 📦 Summary
82- - Version: `${{ env.VERSION }}`
83- - Commit: `${{ github.sha }}`
84- - Branch: `${{ github.ref_name }}`
85- - Author: `${{ github.actor }}`
86- - Build Type: `Release`
87- - Built On: `${{ runner.os }}`
88- - Build Date: `${{ github.event.head_commit.timestamp || github.run_started_at }}`
89-
90- ### 📁 Included in Release
99+ <h2 align="center">🔐 <b>Intrudex Client v${{ env.VERSION }}</b> 🚀</h2>
100+ <p align="center">
101+ <img src="https://img.shields.io/github/v/release/ToolsHive/Intrudex?label=Latest%20Release&style=for-the-badge" />
102+ <img src="https://img.shields.io/github/downloads/ToolsHive/Intrudex/total?style=for-the-badge" />
103+ </p>
104+
105+ ---
106+ ### 🗒️ **Summary**
107+ - **Version:** `${{ env.VERSION }}`
108+ - **Commit:** `${{ github.sha }}`
109+ - **Branch:** `${{ github.ref_name }}`
110+ - **Author:** `${{ github.actor }}`
111+ - **Build Type:** `Release`
112+ - **Platform:** `${{ runner.os }}`
113+ - **Build Date:** `${{ github.event.head_commit.timestamp || github.run_started_at }}`
114+ - **Workflow:** [View Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
115+
116+ ### 📦 **Included in Release**
117+ <details>
118+ <summary>Click to expand file list</summary>
119+
91120 ```
92121 ${{ env.INCLUDED_FILES }}
93122 ```
94123
95- ### ✅ Usage
124+ </details>
125+
126+ ### 🖥️ **Installer**
127+ - Download and run: **Intrudex-Client-Setup.exe**
128+
129+ ### ✅ **Usage**
96130 1. Extract `intrudex-client-build.zip`
97131 2. Run `intrudex-client.exe`
98- 3. Refer to README for config instructions
132+ 3. See README for configuration
133+
134+ ### 💡 **Features**
135+ - Fast, secure, and modern client
136+ - Easy configuration
137+ - Automatic updates
99138
100- ### ⚠️ Known Issues
101- - None reported yet. Open issues if any.
139+ ### ⚠️ ** Known Issues**
140+ - None reported yet. Please [open an issue](https://github.com/ToolsHive/Intrudex/ issues) if you find any.
102141
103142 ---
104- 🧠 * Built and deployed automatically by GitHub Actions.*
143+ <p align="center">✨ Built and deployed automatically by <b> GitHub Actions</b> ✨</p>
105144
106145 files : |
107146 intrudex-client-build.zip
147+ Intrudex-Client-Setup.exe
0 commit comments