We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
VERSION
APPNAME
1 parent 39a6b85 commit 1de0369Copy full SHA for 1de0369
useful-tools/uruntime2appimage.sh
@@ -160,6 +160,14 @@ _deploy_desktop_and_icon
160
DESKTOP_ENTRY=$(echo "$APPDIR"/*.desktop)
161
APPNAME=${APPNAME:-$(awk -F'=' '/^Name=/{gsub(/ /,"_",$2); print $2; exit}' "$DESKTOP_ENTRY")}
162
163
+# sanitize VERSION and APPNAME
164
+if [ -n "$VERSION" ]; then
165
+ VERSION=$(printf '%s' "$VERSION" | tr '":><*|\?\r\n' '_')
166
+fi
167
+if [ -n "$APPNAME" ]; then
168
+ APPNAME=$(printf '%s' "$APPNAME" | tr '":><*|\?\r\n' '_')
169
170
+
171
# add appimage info to desktop entry, first make sure to remove existing info
172
sed -i \
173
-e '/X-AppImage-Name/d' \
0 commit comments