Skip to content

Commit 127c3ea

Browse files
authored
Create sharun_environment_variable.txt
1 parent 06ac9f4 commit 127c3ea

1 file changed

Lines changed: 134 additions & 0 deletions

File tree

sharun_environment_variable.txt

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
---------------
2+
Default Exports
3+
---------------
4+
export ARCH
5+
Used by sharun to set x86_64 or aarch64 in appimage name
6+
7+
VERSION=$(pacman -Q PACKAGENAME | awk '{print $2; exit}')
8+
export VERSION
9+
example command to get version of application here
10+
11+
export OUTPATH=./dist
12+
Where sharun will store the appimage
13+
14+
export ADD_HOOKS="self-updater.hook"
15+
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
16+
Enable self updating, and sets the path used by zsync.
17+
18+
export ICON=PATH_OR_URL_TO_ICON
19+
Path or URL to an icon file to include.
20+
21+
export DESKTOP=PATH_OR_URL_TO_DESKTOP_ENTRY
22+
Path or URL to a .desktop file to include.
23+
24+
------------------------
25+
These effect the builder
26+
------------------------
27+
export NO_STRIP=1
28+
Disable stripping binaries and libraries if set.
29+
export APPDIR=./AppDir
30+
Destination AppDir (default: ./AppDir).
31+
export ANYLINUX_LIB
32+
Preloads a library that unsets environment variables known to
33+
cause problems to child processes. Set to 0 to disable.
34+
Additionally you can set ANYLINUX_DO_NOT_LOAD_LIBS to a
35+
list of colon separated libraries to prevent from being
36+
dlopened, the entries support simple globbing, example:
37+
export ANYLINUX_DO_NOT_LOAD_LIBS='libpipewire-0.3.so*'
38+
Useful for applications that will try to dlopen several
39+
optional dependencies that you do not want to include.
40+
export OUTPUT_APPIMAGE=1
41+
Set to 1 to turn the deployed AppDir into an AppImage.
42+
43+
------------------------
44+
System Libraries
45+
------------------------
46+
export DEPLOY_PYTHON=1
47+
Set to 1 to deploy system Python. Will remove all pycache
48+
files, set DEBLOAT_PYTHON to 0 to prevent this.
49+
export LIB_DIR
50+
Set source library directory if autodetection fails.
51+
export PATH_MAPPING
52+
Configures and preloads pathmap.
53+
Set this variable if the application is hardcoded to look
54+
into /usr and similar locations, example:
55+
56+
export PATH_MAPPING='
57+
/usr/lib/myapp_libs:\${SHARUN_DIR}/lib/myapp_libs
58+
/etc/myapp.conf:\${SHARUN_DIR}/etc/myapp.conf
59+
'
60+
61+
\${SHARUN_DIR} here must NOT expand! The braces in the variable are mandatory!
62+
export DEPLOY_LOCALE=1
63+
Set to 1 to deploy locale data.
64+
65+
------------------------
66+
GUI Toolkits
67+
------------------------
68+
export DEPLOY_GTK=1
69+
Set to 1 to force deployment of GTK.
70+
export DEPLOY_QT=1
71+
Set to 1 to force deployment of Qt. Will determine to deploy
72+
QtWebEngine and Qml as well, these can be controlled with
73+
DEPLOY_QT_WEB_ENGINE and DEPLOY_QML. Set to 1 enable, 0 disable
74+
Set QT_DIR if the system Qt directory in LIB_DIR has a different name.
75+
export STARTUPWMCLASS=ext.website.appname
76+
export GTK_CLASS_FIX=1
77+
Default to Wayland's wmclass. For X11, GTK_CLASS_FIX will force the wmclass to be the Wayland one.
78+
79+
------------------------
80+
Hardware support
81+
------------------------
82+
export DEPLOY_SDL=1
83+
Set to 1 to force deployment of SDL.
84+
85+
------------------------
86+
3D Support
87+
------------------------
88+
export DEPLOY_OPENGL=1
89+
Set to 1 to force deployment of OpenGL.
90+
export DEPLOY_VULKAN=1
91+
Set to 1 to force deployment of Vulkan.
92+
export ALWAYS_SOFTWARE=1
93+
Set to 1 to enable. Sets several env variables to make
94+
applications use software rendering, use this option when
95+
you do not want hardware acceleration.
96+
Will fail if the application makes use of mesa during deployment.
97+
------------------------
98+
Audio Support
99+
------------------------
100+
export DEPLOY_PIPEWIRE=1
101+
Set to 1 to force deployment of Pipewire.
102+
export DEPLOY_PULSE=1
103+
Set to 1 to force deployment of pulseaudio.
104+
105+
------------------------
106+
Image Support
107+
------------------------
108+
export DEPLOY_BABL=1
109+
Set to 1 to force deployment of babl.
110+
export DEPLOY_GDK=1
111+
Set to 1 to force deployment of gdk-pixbuf.
112+
export DEPLOY_GEGL=1
113+
Set to 1 to force deployment of GEGL.
114+
export DEPLOY_GLYCIN=1
115+
Set to 1 to force deployment of Glycin.
116+
export DEPLOY_IMAGEMAGICK=1
117+
Set to 1 to force deployment of ImageMagick.
118+
export DEPLOY_LIBHEIF=1
119+
Set to 1 to force deployment of libheif.
120+
121+
------------------------
122+
Media Playback
123+
------------------------
124+
export DEPLOY_GSTREAMER=1
125+
export DEPLOY_GSTREAMER_ALL=1
126+
Set to 1 to force deployment of GStreamer. By default
127+
several gstreamer plugins are removed, set DEPLOY_GSTREAMER_ALL=1
128+
if you can to deploy ALL Gstreamer plugins. (Very bloated).
129+
130+
------------------------
131+
Security
132+
------------------------
133+
export EPLOY_P11KIT=1
134+
Set to 1 to force deployment of p11-kit.

0 commit comments

Comments
 (0)