File tree 1 file changed +11
-6
lines changed 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -155,12 +155,17 @@ chmod +x $APP_DIRECTORY/AppRun
155
155
156
156
echo " ==> Setup icons and desktop for $APP_SHORT_NAME AppImage"
157
157
# Add defaults which we need for proper app image. Desktop files, icons.
158
- cp $APP_FILENAME $APP_DIRECTORY /" $APP_SHORT_NAME " .desktop
159
- sed -i ' /VersionUrl/d' $APP_DIRECTORY /" $APP_SHORT_NAME " .desktop
160
- sed -i ' /VersionFile/d' $APP_DIRECTORY /" $APP_SHORT_NAME " .desktop
161
- sed -i ' /VersionBash/d' $APP_DIRECTORY /" $APP_SHORT_NAME " .desktop
162
- sed -i ' /VersionIcon/d' $APP_DIRECTORY /" $APP_SHORT_NAME " .desktop
163
- sed -i ' /VersionDirectory/d' $APP_DIRECTORY /" $APP_SHORT_NAME " .desktop
158
+
159
+ for DESKTOP_INPUT in app* .desktop; do
160
+ DESKTOP_OUTPUT=" $APP_DIRECTORY /${DESKTOP_INPUT/ app/ $APP_SHORT_NAME } "
161
+ cp " $DESKTOP_INPUT " " $DESKTOP_OUTPUT "
162
+ sed -i ' /VersionUrl/d' " $DESKTOP_OUTPUT "
163
+ sed -i ' /VersionFile/d' " $DESKTOP_OUTPUT "
164
+ sed -i ' /VersionBash/d' " $DESKTOP_OUTPUT "
165
+ sed -i ' /VersionIcon/d' " $DESKTOP_OUTPUT "
166
+ sed -i ' /VersionDirectory/d' " $DESKTOP_OUTPUT "
167
+ echo " Copied $DESKTOP_INPUT to $DESKTOP_OUTPUT "
168
+ done
164
169
165
170
ICON_PATH=$( find $APP_DEPLOY -type f -name " $APP_VERSION_ICON " )
166
171
ICON_EXTENSION=" ${ICON_PATH#* .} "
You can’t perform that action at this time.
0 commit comments