Skip to content

Commit 575951d

Browse files
authored
Merge pull request #859 from AlleM43/squashed_commits
Add AppImage Packaging to CI
2 parents e533fa7 + d6adb75 commit 575951d

3 files changed

Lines changed: 67 additions & 0 deletions

File tree

β€Ž.github/workflows/package.ymlβ€Ž

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,63 @@ jobs:
158158
path: artifacts/
159159
if-no-files-found: error
160160

161+
appimage:
162+
runs-on: ubuntu-latest
163+
container:
164+
image: debian:latest
165+
options: --privileged
166+
needs: deb
167+
strategy:
168+
fail-fast: true
169+
matrix:
170+
include:
171+
- arch: amd64
172+
appimgarch: x86_64
173+
- arch: arm64
174+
appimgarch: aarch64
175+
- arch: i386
176+
appimgarch: i686
177+
- arch: armhf
178+
appimgarch: armhf
179+
180+
steps:
181+
- name: Checkout repository
182+
uses: actions/checkout@v4
183+
184+
- name: Install dependencies
185+
run: apt-get update -y && apt-get install -y git build-essential graphicsmagick-imagemagick-compat wget file desktop-file-utils libfuse2
186+
187+
- name: Download Debian package
188+
uses: actions/download-artifact@v4
189+
with:
190+
name: deb-${{ matrix.arch }}
191+
path: /target/
192+
193+
- name: Download pkg2appimage
194+
shell: bash
195+
run: git clone https://github.com/AppImageCommunity/pkg2appimage.git
196+
197+
- name: Replace placeholders
198+
shell: bash
199+
run: |
200+
sed -i -e 's/REPLACE_TAG/Sniffnet_LinuxDEB_${{ matrix.arch }}.deb/g' resources/packaging/linux/AppImage/sniffnet.yml
201+
sed -i -e 's/binary-${arch}/binary-${{ matrix.arch }}/g' pkg2appimage/functions.sh
202+
203+
- name: Repackage for AppImage
204+
shell: bash
205+
run: |
206+
cd pkg2appimage
207+
ARCH=${{ matrix.appimgarch }} FUNCTIONS_SH=$(pwd)/functions.sh ./pkg2appimage ../resources/packaging/linux/AppImage/sniffnet.yml
208+
mkdir /out
209+
mv out/*.AppImage /out/Sniffnet_LinuxAppImage_${{ matrix.arch }}.AppImage
210+
211+
- name: Upload package artifacts
212+
uses: actions/upload-artifact@v4
213+
with:
214+
name: appimage-${{ matrix.arch }}
215+
path: /out/
216+
if-no-files-found: error
217+
161218
rpm:
162219
runs-on: ubuntu-latest
163220
container:

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
All Sniffnet releases with the relative changes are documented in this file.
44

55
## [UNRELEASED]
6+
- An AppImage of Sniffnet is now available ([#859](https://github.com/GyulyVGC/sniffnet/pull/859) β€” fixes [#900](https://github.com/GyulyVGC/sniffnet/issues/900))
67
- Added Dutch translation πŸ‡³πŸ‡± ([#854](https://github.com/GyulyVGC/sniffnet/pull/854))
78
- The Windows Installer is now signed with a code signing certificate provided by the [SignPath Foundation](https://signpath.org/) ([#897](https://github.com/GyulyVGC/sniffnet/pull/897) β€” fixes [#894](https://github.com/GyulyVGC/sniffnet/issues/894))
89
- Updated some of the existing translations to v1.4:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
app: Sniffnet
2+
ingredients:
3+
dist: bookworm
4+
packages:
5+
- libpcap0.8
6+
sources:
7+
- deb https://deb.debian.org/debian stable main
8+
debs:
9+
- /target/REPLACE_TAG

0 commit comments

Comments
Β (0)