Home

Awesome

<h1 align="center"> <img src="pyappimage/assets/pyappimage.svg" alt="PyAppImage" height=200 width=200 align="middle"> PyAppImage :snake: </h1> <h3 align="center"> Create optimized Python AppImages, faster! </h3> <div align="center">

forthebadge made-with-python<br/><br/>

Python application GitHub commit activity GitHub GitHub tag (latest SemVer) irc

Mentioned in Awesome AppImage

GitHub followers GitHub stars

</div>

Getting Started

The project is still in beta. Consider reporting bugs to help development and release a stable version;

Download pyappimage

PyAppImage tutorial

Here are some small tutorials to package some applications, and to workaround bugs when packaging software

  1. Hello World AppImage
  2. Packaging Archivy
  3. Packaging AppImageLint

Configuration parameters

pyappimage can be configured using the following parameters

entrypoint

Entrypoint is a path to the function. It is normally in the format

folder.script:function

here, the function located in script file, of which the script file is located in the folder called folder is executed.

<br>

Environment Variables

Environment variables can be set before the appimage entrypoint is called. This can be useful in defining AppImage based variables or conditionally executing some functions when the app is being run within an appimage,

environment: 
  HELLO: TEST

This will be translated to

export HELLO=TEST
<br>

Include additional data to AppImage

These are data objects, including items like png, json, txt items which you would like to place in the AppImage. Just simple add

data: 
  $CWD/somefile/photo.png: $APPIMAGE/photo.png
  /usr/share/icons/myphoto.svg: $APPIMAGE/icons/icon.png
<br>

Custom Icon

Place <appname>.png in the pyappimage directory, and it will be automatically set as the AppImage dir icon.

<br>

Custom Desktop File

pyappimage automatically generates the desktop file for you. If you want to override the desktop file generated by pyappimage, you can add a <appname>.desktop desktop file in the pyappimage directory, and that will be added. Make sure that your desktop file matches FreeDesktop's standards.

When to use pyappimage ?

Use pyappimage when

Do not use pyappimage when

Similar projects

Awesome AppImage Python development tools provide a list of Awesome tools to speed up distributing your python apps. Do check them out. pyappimage-*.AppImage which you use to build your optimized Python AppImages itself use @niess 's python-appimage. Because pyappimage needs a real python interpreter to bundle Python appimages for you!

License

MIT License

Copyright (c) 2020 Srevin Saju

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Copyright

(c) Srevin Saju 2020

PyAppImage logo is a remix of the Papirus Icon Theme.