Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,63 @@ jobs:
path: artifacts/
if-no-files-found: error

appimage:
runs-on: ubuntu-latest
container:
image: debian:latest
options: --privileged
needs: deb
strategy:
fail-fast: true
matrix:
include:
- arch: amd64
appimgarch: x86_64
- arch: arm64
appimgarch: aarch64
- arch: i386
appimgarch: i686
- arch: armhf
appimgarch: armhf

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: apt-get update -y && apt-get install -y git build-essential graphicsmagick-imagemagick-compat wget file desktop-file-utils libfuse2

- name: Download Debian package
uses: actions/download-artifact@v4
with:
name: deb-${{ matrix.arch }}
path: /target/

- name: Download pkg2appimage
shell: bash
run: git clone https://github.com/AppImageCommunity/pkg2appimage.git

- name: Replace placeholders
shell: bash
run: |
sed -i -e 's/REPLACE_TAG/Sniffnet_LinuxDEB_${{ matrix.arch }}.deb/g' resources/packaging/linux/AppImage/sniffnet.yml
sed -i -e 's/binary-${arch}/binary-${{ matrix.arch }}/g' pkg2appimage/functions.sh

- name: Repackage for AppImage
shell: bash
run: |
cd pkg2appimage
ARCH=${{ matrix.appimgarch }} FUNCTIONS_SH=$(pwd)/functions.sh ./pkg2appimage ../resources/packaging/linux/AppImage/sniffnet.yml
mkdir /out
mv out/*.AppImage /out/Sniffnet_LinuxAppImage_${{ matrix.arch }}.AppImage

- name: Upload package artifacts
uses: actions/upload-artifact@v4
with:
name: appimage-${{ matrix.arch }}
path: /out/
if-no-files-found: error

rpm:
runs-on: ubuntu-latest
container:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
All Sniffnet releases with the relative changes are documented in this file.

## [UNRELEASED]
- An AppImage of Sniffnet is now available ([#859](https://github.com/GyulyVGC/sniffnet/pull/859) — fixes [#900](https://github.com/GyulyVGC/sniffnet/issues/900))
- Added Dutch translation 🇳🇱 ([#854](https://github.com/GyulyVGC/sniffnet/pull/854))
- 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))
- Updated some of the existing translations to v1.4:
Expand Down
9 changes: 9 additions & 0 deletions resources/packaging/linux/AppImage/sniffnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
app: Sniffnet
ingredients:
dist: bookworm
packages:
- libpcap0.8
sources:
- deb https://deb.debian.org/debian stable main
debs:
- /target/REPLACE_TAG