Skip to content

File locations are nonstandard. #21

@John-Nagle

Description

@John-Nagle

Ergonomic issues, or where everything goes.

  • cargo appimage puts the output file is stored into the root directory of the project. This violates the Cargo rule that all artifacts created by cargo building go somewhere under "target". This interferes with source control and "cargo clean". Suggest the output file go in release/appimage/PROGRAMNAME.
  • The executable is in /usr/bin in the constructed file system, and is actually called bin So, when you run the program, it's called bin in window titles, rather than PROGRAMNAME. That's a bit strange. Please use the name from the Cargo project. Serious problem.
  • Asset files are in the root of the new file system. So, from the executable, they're at "../../ASSETFILENAME". This is not documented.
  • cargo appimage assumes "appimagetool" is installed under the name appimagetool. But appimagetool actually downloads as appimagetool-PLATFORMSUFFIX.AppImage, so it won't run without renaming. Probably, "cargo appimage" should take care of that dependency itself, especially since appimage is not a standard Debian/Ubuntu repository item.
  • cargo appimage must run in the root directory of the project to be packaged. That's not the way Cargo usually does things.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions