Add support for flat/portable package
sneetsher opened this issue · 1 comments
I opened this report for issues needed to be fix at upstream level while in building process for snap package.
-
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. -
Use
sed
(standard gnu tool) instead of introducing new build dependency onperl
inMakefile
similar syntax:sed -i 's|/usr/bin|$SNAP/usr/bin|g' my-bin-artifact.sh
-
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 -
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 forsnapcraft
Current snapcraft setup:
snapcraft.yaml.txt
- Custom build workaround documented here https://askubuntu.com/q/905811/26246
- Current unfixed issue about setting PYTHONPATH in the confined snap env: https://askubuntu.com/q/906199/26246