kuiperzone / PupNet-Deploy

PupNet Deploy is a cross-platform deployment utility which packages your .NET project as a ready-to-ship installation file in a single step.
GNU Affero General Public License v3.0
193 stars 6 forks source link

Value "Utility" for string list key "Categories" in group "Desktop Entry" does not have a semicolon (';') as trailing character #33

Closed Walli-DO closed 7 months ago

Walli-DO commented 7 months ago

When I try to run the create appimage command on Ubuntu linux-arm64 I get an error message

Team:

pupnet --kind appimage

Message:

appimagetool, continuous build (commit 8bbf694), build <local dev build> built on 2020-12-31 11:48:29 UTC
/tmp/KuiperZone.PupNet/net.example.promEnergoUI-linux-arm64-Release-AppImage/AppDir/net.example.helloWorld.desktop: error: value "Utility" for string list key "Categories" in group "Desktop Entry" does not have a semicolon (';') as trailing character
ERROR: Desktop file contains errors. Please fix them. Please see
https://standards.freedesktop.org/desktop-entry-spec/1.0/n for more information.

FAILED
/home/user/.dotnet/tools/.store/kuiperzone.pupnet/1.7.1/kuiperzone.pupnet/1.7.1/tools/net6.0/any/appimagetool-aarch64.AppImage returned non-zero exit code 1

Also, when you try to change the “Categories” parameter in the file /tmp/KuiperZone.PupNet/net.example.promEnergoUI-linux-arm64-Release-AppImage/AppDir/net.example.helloWorld.desktop by adding the sign '; ' Nothing happens. When you run the command pupnet --kind appimage the file is updated and the ';' disappears

How can I solve this problem

kuiperzone commented 7 months ago

I will check the desktop output and will fix if I see a problem. I have not seen this before.

When you run the command pupnet --kind appimage the file is updated and the ';' disappears

It's a temporary build file.

However, you can define your own desktop file using the config parameter: DesktopFile

You can have pupnet create a default desktop file for you using:

pupnet [name] --new desktop
kuiperzone commented 7 months ago

Yes can fix in for pupnet version 1.8.

Walli-DO commented 7 months ago

Understood thanks

For now, I tried to do as you said. I created a file in the project folder using the command:

pupnet helloWorld.desktop --new desktop

Inside this file, the "Categories" parameter is set to "Utility;"

[Desktop Entry]
Type=Application
Name=${APP_FRIENDLY_NAME}
Icon=${APP_ID}
Comment=${APP_SHORT_SUMMARY}
Exec=${INSTALL_EXEC}
TryExec=${INSTALL_EXEC}
NoDisplay=${DESKTOP_NODISPLAY}
X-AppImage-Integrate=${DESKTOP_INTEGRATE}
Terminal=${DESKTOP_TERMINAL}
Categories=Utility;
MimeType=
Keywords=

However, the error remains the same and the program still refers to the file /tmp/KuiperZone.PupNet/net.example.promEnergoUI-linux-arm64-Release-AppImage/AppDir/net.example.helloWorld.desktop

appimagetool, continuous build (commit 8bbf694), build <local dev build> built on 2020-12-31 11:48:29 UTC
/tmp/KuiperZone.PupNet/net.example.promEnergoUI-linux-arm64-Release-AppImage/AppDir/net.example.helloWorld.desktop: error: value "Utility" for string list key "Categories" in group "Desktop Entry" does not have a semicolon (';') as trailing character
ERROR: Desktop file contains errors. Please fix them. Please see
https://standards.freedesktop.org/desktop-entry-spec/1.0/n for more information.

FAILED
/home/user/.dotnet/tools/.store/kuiperzone.pupnet/1.7.1/kuiperzone.pupnet/1.7.1/tools/net6.0/any/appimagetool-aarch64.AppImage returned non-zero exit code 1
kuiperzone commented 7 months ago

Have you updated the DesktopFile in the config to point at your new desktop file?

https://github.com/kuiperzone/PupNet-Deploy?tab=readme-ov-file#desktop-file

kuiperzone commented 7 months ago

From the --help...

DesktopFile Optional path to a Linux desktop file. If empty (default), one will be generated automatically from the information in this file. Supplying a custom file, however, allows for mime-types and internationalisation. If supplied, the file MUST contain the line: 'Exec=${INSTALL_EXEC}' in order to use the correct install location. Other macros may be used to help automate the content. Note. PupNet Deploy can generate you a desktop file. Use --help and 'pupnet --help macro' for reference. See: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html Example: DesktopFile = Deploy/app.desktop

Walli-DO commented 7 months ago

Yes you are right, I did not set the DesktopFile parameter in the .pupnet.conf file. It worked, thanks