Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
bruneo32 committed Jun 18, 2024
2 parents 21d170a + 3036862 commit abbf4b7
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 5 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,31 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Test
- uses: actions/checkout@v3

- name: Create package structure
run: |
export DPKG="${{github.event.repository.name}}_${{env.versionName}}"
mkdir $DPKG
cd $DPKG
mkdir -p DEBIAN usr/local/bin usr/local/share/gfind
- name: Copy stuff inside
run: |
export pkgName="${{github.event.repository.name}}_${{env.versionName}}_all.deb"
echo "Hello: $pkgName"
cp deb_control $DPKG/DEBIAN/control
cp gfind $DPKG/usr/local/bin/gfind
chmod +x $DPKG/usr/local/bin/*
cp -r share/* $DPKG/usr/local/share/gfind/
cp LICENSE $DPKG/usr/local/share/gfind/
cp README.md $DPKG/usr/local/share/gfind/
- name: Create deb package
run: |
export DPKG_NAME="${DPKG}_all.deb"
dpkg-deb -Zxz --root-owner-group --build $DPKG --output $DPKG_NAME
- name: Upload deb as artifact
uses: actions/upload-artifact@v3
with:
name: $DPKG_NAME
path: $DPKG_NAME
1 change: 0 additions & 1 deletion HELP

This file was deleted.

9 changes: 9 additions & 0 deletions deb_control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: gfind
Version: 0.1-1
Architecture: all
Maintainer: Bruno Castro <[email protected]>
Depends: yad, find, grep
Section: devel
Priority: optional
Homepage: https://github.com/bruneo32/gfind
Description: graphical frontend for find(1) + grep(1) commands.
2 changes: 1 addition & 1 deletion gfind
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

## Preprocess
HELP_FILE="HELP"
HELP_FILE="/usr/local/share/gfind/HELP"

if [[ $1 == "-h" || $1 == "--help" ]]; then
cat $HELP_FILE
Expand Down
1 change: 1 addition & 0 deletions share/HELP
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usage: gfind [searching-dir]
File renamed without changes.

0 comments on commit abbf4b7

Please sign in to comment.