Alfanous-team / alfanous

Alfanous is an Arabic search engine API provides the simple and advanced search in Quran , more features and many interfaces...
http://www.alfanous.org/
GNU Affero General Public License v3.0
254 stars 89 forks source link

Add support for flat/portable package #469

Closed sneetsher closed 3 years ago

sneetsher commented 7 years ago

I opened this report for issues needed to be fix at upstream level while in building process for snap package.

  1. Add default universal setup method: make; make install

    Current method: make build; make install_api; make install_desktop confusing packagers with custom build scripts that can break in future releases.

  2. Use sed (standard gnu tool) instead of introducing new build dependency on perl in Makefile similar syntax:

    sed -i 's|/usr/bin|$SNAP/usr/bin|g' my-bin-artifact.sh

  3. Introduce new make entry for flat/portable package. to be used for most all-in-one build systems: snapcraft, flatpak, appimage, edge/daily/portable builds

  4. Remove the hardcoded python hashbang:

    #!/home/username/Desktop/sandbox/alfanous-snap/parts/alfanous-git/install/usr/bin/python

    ./parts/partname/install is the tmp install path for snapcraft

sneetsher commented 7 years ago

Current snapcraft setup: snapcraft.yaml.txt