Skip to content

Commit

Permalink
fix(AppImage): app bin detection
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Aug 5, 2016
1 parent 282fc72 commit 06def89
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/targets/appImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export default class AppImageTarget extends TargetEx {
"-map", await this.desktopEntry, `/${appInfo.name}.desktop`,
"-move", `/usr/bin/${appInfo.productFilename}`, appExecutableImagePath,
// http://stackoverflow.com/questions/13633488/can-i-store-unix-permissions-in-a-zip-file-built-with-apache-ant, xorriso doesn't preserve it for zip, but we set it in any case
"-chmod", "+x", appExecutableImagePath, "--",
"-chmod", "+x", "/AppRun", appExecutableImagePath, "--",
]
for (let [from, to] of (await this.helper.icons)) {
Expand Down
2 changes: 1 addition & 1 deletion templates/linux/AppRun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ check_dep xdg-desktop-menu

DESKTOP_FILE=$(find "$APPDIR" -maxdepth 1 -name "*.desktop" | head -n 1)
DESKTOP_FILE_NAME=$(basename "${DESKTOP_FILE}")
APP=$(echo "$DESKTOP_FILE_NAME" | sed -e 's/.desktop//g')
APP="${DESKTOP_FILE_NAME%.*}"
BIN="$APPDIR/usr/bin/$APP"

if [ ! -f "$DESKTOP_FILE" ] ; then
Expand Down

0 comments on commit 06def89

Please sign in to comment.