probonopd / linuxdeployqt

Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.22k stars 414 forks source link

Can I specify the output file name? #595

Closed x-tools-author closed 12 months ago

x-tools-author commented 12 months ago

I want to output a fixed(such as 123.AppImage) file name when create AppImage with linuxdeployqt.

probonopd commented 12 months ago

The output filename is based on the Ǹame=... in the .desktop file. So, if you set that key to the correct application name, you will get an AppImage with the correct naming (including the architecture) automatically.

x-tools-author commented 12 months ago

My .desktop file is:


[Desktop Entry]
Type=Application
Name=QtSwissArmyKnife
Comment=Qt Swiss Army Knife
Exec=QtSwissArmyKnife
Icon=QtSwissArmyKnife
Categories=Development;
```.
but the output file is: QtSwissArmyKnife-eccc148-x86_64.AppImage.
I mean that can I specifyed the output file name as 123.AppImage?
probonopd commented 12 months ago

The AppImage naming scheme is: ApplicationName + + version + + architecture + ".AppImage". So the generated filename is correct.

If your application would be called "123", then you should set Name=123 and would get 123-eccc148-x86_64.AppImage.

This naming scheme is a convention and is part of how AppImageUpdate works. Why would you like to name the AppImage differently than the name of your application?