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