AppImage support for Panda3D
Project description
NOTE ==========================================================================
This works on Linux only.
INSTALLATION ==================================================================
pip install panda3d-appimage
USAGE =========================================================================
In your setup.py file, add the following:
from direct.dist.commands import bdist_apps
from p3d_appimage import AppImageBuilder
class BDistAppsCmd(bdist_apps):
def run(self):
bdist_apps.run(self)
AppImageBuilder(self).build()
setup(
...
cmdclass={"bdist_apps": BDistAppsCmd},
... )
EXAMPLE =======================================================================
Let's build an AppImage for the Panda3D's Asteroids example.
Modify the file setup.py
(https://github.com/panda3d/panda3d/blob/master/samples/asteroids/setup.py)
adding these lines:
from direct.dist.commands import bdist_apps
from p3d_appimage import AppImageBuilder
class BDistAppsCmd(bdist_apps):
def run(self):
bdist_apps.run(self)
AppImageBuilder(self).build()
setup(
...
cmdclass={"bdist_apps": BDistAppsCmd},
... )
Then, launch the standard Panda3D build command:
python setup.py bdist_apps
At the end of the process, you will get the builds created by Panda3D and your
AppImage in the dist/ folder. Do ./Asteroids-x86_64.AppImage to launch your
AppImage.
UPDATING APPIMAGES ============================================================
The builder can also update your AppImage. If you specify a zsync_path when you
invoke the AppImageBuilder's method build(), then you can Invoke the AppImage's
method update() in your application and this will update your AppImage.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
panda3d-appimage-0.1.2.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for panda3d_appimage-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b1b332b023cb9fcd9e78c644abca77880b29749099d6084bcf2616378d7474 |
|
MD5 | 42d5e636eb4658c8648d545936265978 |
|
BLAKE2b-256 | f6ed0fe0d702d5302b58de97f9029e0c830a7cf34ef9ae2db300cd59ce4baaf8 |