Skip to content

Commit

Permalink
appimage files
Browse files Browse the repository at this point in the history
  • Loading branch information
yatima1460 committed May 3, 2019
1 parent 877f20f commit de12c72
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Drill-x86_64.AppImage
me.santamorena.drill
*.AppImage
.vscode
.idea
*.bin
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ chmod +x drill.py
./drill.py
```

## Building AppImage

```
bash build_appimage.sh
```

## What is this

I was stressed on Linux because I couldn't find the files I needed, file searchers based on system indexing (updatedb) are prone to breaking and hard to configure for the average user, so did an all nighter and started this.
Expand Down
15 changes: 15 additions & 0 deletions build_appimage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash

rm *.AppImage
echo Removed old AppImage files
wget https://raw.githubusercontent.com/AppImage/pkg2appimage/master/pkg2appimage &> /dev/null
echo Downloaded pkg2appimage script
echo Building AppImage...
bash pkg2appimage drill.yml &> /dev/null
cd out
mv *.AppImage ..
cd ..
rmdir out
rm -rf me.santamorena.drill &> /dev/null
rm pkg2appimage
echo AppImage built
89 changes: 89 additions & 0 deletions drill.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
app: me.santamorena.drill
ingredients:
dist: trusty
sources:
- deb http://deb.debian.org/debian stretch main
packages:
- tcl=8.6.0+9
- python3-minimal
- python3-tk
- python3-psutil


# - libtinfo
# - build-essential
# - language-pack-en
# - gcc
# - cython3
# - python3.4
# - gcc
# - cython
# - language-pack-en
# - python3-tk==8.6.6
# - python3-psutil==5.6.2
# script:
# - wget -c https://github.com/yatima1460/drill/archive/master.zip
# - unzip -o master.zip
# script:
# - locale-gen en_US.UTF-8

# script:
# - echo "Started building process..."
# - cython --embed -3 drill.py
# - gcc -O0 drill.c -I/usr/include/python3.5m -lpython3.5m -o drill.bin
# - chmod +x drill.bin
# - echo "Started building process... DONE"
script:
#- echo "Current folder: $PWD"

- mkdir -p me.santamorena.drill.AppDir/usr
- cp ../drill.py me.santamorena.drill.AppDir/usr
- cp ../icon.png me.santamorena.drill.AppDir/usr
- cp -r ../blocklists me.santamorena.drill.AppDir/usr
- cp ../icon.png me.santamorena.drill.AppDir
- mkdir -p ./usr/share/icons/hicolor/256x256/
- cp ../icon.png ./usr/share/icons/hicolor/256x256/
#- mv drill.bin me.santamorena.drill.AppDir/usr

# - mkdir -p usr/share/metainfo/ ; cp ../mu.appdata.xml usr/share/metainfo/
#- virtualenv --python=python3 usr
#- source usr/bin/activate

#- pip3 install -e .
#- deactivate


- cat > me.santamorena.drill.AppDir/usr/drill.sh <<\EOF
- #!/bin/bash
# - export PYTHONHOME=/usr/bin/
# - export PYTHONPATH=/usr/bin/
# - locale-gen en_US.UTF-8
- python3 drill.py
- EOF
- chmod +x me.santamorena.drill.AppDir/usr/drill.sh

# - cat > me.santamorena.drill.AppDir/drill.sh <<\EOF
# - #!/bin/bash
# - ./usr/drill.bin
# - EOF
# - chmod +x me.santamorena.drill.AppDir/drill.sh

- mkdir -p usr/share/applications
- cat > usr/share/applications/me.santamorena.drill.desktop <<\EOF
- [Desktop Entry]
- Type=Application
- Name=Drill
- Comment=Search files without using indexing, but clever crawling
- Comment[it]=Trova files sul tuo PC senza indicizzare, ma cercando intelligentemente
- Icon=icon
- Exec=sh drill.sh
- Terminal=false
- Categories=Application;Utility;
- Keywords=Search;FileSearch;File Search;Find;
# - StartupWMClass=mu
- MimeType=text/x-python3;text/x-python3;
- EOF
- cp usr/share/applications/me.santamorena.drill.desktop .
- cp me.santamorena.drill.desktop me.santamorena.drill.AppDir
- cp ../icon.png me.santamorena.drill.AppDir
# - usr/bin/pip3 freeze | grep "mu-editor" | cut -d "=" -f 3 >> ../VERSION

0 comments on commit de12c72

Please sign in to comment.