1 NOTE ==========================================================================
3 This works on Linux only.
5 INSTALLATION ==================================================================
7 pip install panda3d-appimage
9 USAGE =========================================================================
11 In your setup.py file, add the following:
13 from direct.dist.commands import bdist_apps
14 from p3d_appimage import AppImageBuilder
16 class BDistAppsCmd(bdist_apps):
19 AppImageBuilder(self).build()
23 cmdclass={"bdist_apps": BDistAppsCmd},
26 EXAMPLE =======================================================================
28 Let's build an AppImage for the Panda3D's Asteroids example.
30 Modify the file setup.py
31 (https://github.com/panda3d/panda3d/blob/master/samples/asteroids/setup.py)
34 from direct.dist.commands import bdist_apps
35 from p3d_appimage import AppImageBuilder
37 class BDistAppsCmd(bdist_apps):
40 AppImageBuilder(self).build()
44 cmdclass={"bdist_apps": BDistAppsCmd},
47 Then, launch the standard Panda3D build command:
49 python setup.py bdist_apps
51 At the end of the process, you will get the builds created by Panda3D and your
52 AppImage in the dist/ folder. Do ./Asteroids-x86_64.AppImage to launch your
55 UPDATING APPIMAGES ============================================================
57 The builder can also update your AppImage. If you specify a zsync_path when you
58 invoke the AppImageBuilder's method build(), then you can Invoke the AppImage's
59 method update() in your application and this will update your AppImage.