Skip to content

Commit

Permalink
feat: version 0.4.1 (#27)
Browse files Browse the repository at this point in the history
* feat: packaging for debian, redhat and archlinux
* fix: replaced deprecated service by systemctl (#26)
* fix: crunch and mdk4 are now optional dependencies
* fix: replaced gnome-terminal by xfce4-terminal for handshake decryption
* fix: dependabot schedule interval is now set to daily

Signed-off-by: Martin Olivier <[email protected]>
  • Loading branch information
martin-olivier authored Sep 9, 2023
1 parent 96696e1 commit 48d8f6f
Show file tree
Hide file tree
Showing 15 changed files with 278 additions and 152 deletions.
24 changes: 24 additions & 0 deletions .fpm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-s dir ./target/release/airgorah ./icons/app_icon.png package README.md LICENSE
--name airgorah
--license MIT
--version 0.4.1
--description "A WiFi auditing software that can perform deauth attacks and passwords cracking"
--url "https://github.com/martin-olivier/airgorah"
--maintainer "Martin Olivier <[email protected]>"

--depends bash
--depends systemd
--depends xfce4-terminal
--depends iw
--depends macchanger
--depends aircrack-ng

target/release/airgorah=/usr/bin/airgorah
icons/app_icon.png=/usr/share/pixmaps/airgorah.png

package/config.toml=/etc/airgorah/config.toml
package/.desktop=/usr/share/applications/airgorah.desktop
package/.policy=/usr/share/polkit-1/actions/org.freedesktop.policykit.airgorah.policy

README.md=/usr/share/doc/airgorah/README.md
LICENSE=/usr/share/doc/airgorah/LICENSE
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "monthly"
interval: "daily"
reviewers:
- "martin-olivier"
82 changes: 72 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,34 +47,96 @@ jobs:
run: cargo fmt --all -- --check

build:
name: ubuntu-latest
name: build
runs-on: ubuntu-latest
needs: linter
permissions: write-all

steps:
- uses: actions/checkout@v3

- name: Install build dependencies
run: sudo apt update && sudo apt install -y libgtk-4-dev libglib2.0-dev
- name: Install dependencies
run: >
sudo apt update && sudo apt install -y
libgtk-4-dev
libglib2.0-dev
build-essential
ruby
ruby-dev
rubygems
libarchive-tools
- name: Install cargo-deb
run: cargo install cargo-deb
- name: Install fpm
run: sudo gem install fpm

- name: Build project
run: cargo deb
run: cargo build --release

- name: Save artifact
- name: Build debian package
run: >
fpm -t deb -p airgorah_amd64.deb --architecture amd64
--depends policykit-1
--depends "libgtk-4-1 (>= 4.6.0)"
--depends dbus-x11
--depends wireshark-common
--depends iproute2
--depends mdk4
--depends crunch
- name: Save debian artifact
uses: actions/upload-artifact@v3
with:
name: airgorah_amd64.deb
path: ./target/debian/*.deb
path: ./airgorah_amd64.deb
if-no-files-found: error

- name: Build redhat package
run: >
fpm -t rpm -p airgorah_amd64.rpm --architecture amd64
--depends polkit
--depends "gtk4-devel >= 4.6.0"
--depends dbus-x11
--depends wireshark-cli
--depends iproute
- name: Save redhat artifact
uses: actions/upload-artifact@v3
with:
name: airgorah_amd64.rpm
path: ./airgorah_amd64.rpm
if-no-files-found: error

- name: Upload binary
- name: Build archlinux package
run: >
fpm -t pacman -p airgorah_amd64.pkg.tar.zst --architecture amd64
--depends polkit
--depends "gtk4 (>= 4.6.0)"
--depends dbus
--depends wireshark-cli
--depends iproute2
--depends mdk4
- name: Save archlinux artifact
uses: actions/upload-artifact@v3
with:
name: airgorah_amd64.pkg.tar.zst
path: ./airgorah_amd64.pkg.tar.zst
if-no-files-found: error

- name: Name packages for release
if: github.event_name == 'release'
run: |
cp ./airgorah_amd64.deb ./airgorah_${{ github.ref_name }}_amd64.deb
cp ./airgorah_amd64.rpm ./airgorah_${{ github.ref_name }}_amd64.rpm
cp ./airgorah_amd64.pkg.tar.zst ./airgorah_${{ github.ref_name }}_amd64.pkg.tar.zst
- name: Upload packages
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: ./target/debian/*.deb
files: |
./airgorah_${{ github.ref_name }}_amd64.deb
./airgorah_${{ github.ref_name }}_amd64.rpm
./airgorah_${{ github.ref_name }}_amd64.pkg.tar.zst
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 48d8f6f

Please sign in to comment.