You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-4Lines changed: 35 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,12 +43,43 @@ the application uses.
43
43
44
44
#### Simplest example
45
45
46
-
Given that a desktop file should be provided with an AppImage, `linuxdeployqt` can use that to determine the parameters of the build.
46
+
You'll need to provide the basic structure of an `AppDir` which should look something like this:
47
+
```
48
+
└── usr
49
+
├── bin
50
+
│ └── your_app
51
+
├── lib
52
+
└── share
53
+
├── applications
54
+
│ └── your_app.desktop
55
+
└── icons
56
+
└── <theme>
57
+
└── <resolution>
58
+
└── your_app.png
59
+
```
60
+
Replace `<theme>` and `<resolution>` with (for example) `hicolor` and `256x256` respectively; see [icon theme spec](https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html) for more details.
61
+
62
+
63
+
Using the desktop file `linuxdeployqt` can determine the parameters of the build.
64
+
65
+
Where your desktop file would look something like:
66
+
```
67
+
[Desktop Entry]
68
+
Version=1.0
69
+
Type=Application
70
+
Name=Amazing Qt App
71
+
Comment=The best Qt Application Ever.
72
+
Exec=your_app
73
+
Icon=your_app
74
+
Categories=Office;
75
+
```
76
+
77
+
* Notice that both `Exec` and `Icon` only have file names.
78
+
* Also Notice that the `Icon` entry does not include an extension.
Read more about desktop files in the [freedesktop specification here](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html).
49
81
50
-
Where the _desktop_ file specifies the executable to be run (with `EXEC=`), the name of the applications and an icon.
51
-
See [desktop file specification](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html).
82
+
Now you can say: `linuxdeployqt-continuous-x86_64.AppImage path/to/AppDir/usr/share/applications/your_app.desktop`
52
83
53
84
For a more detailed example, see "Using linuxdeployqt with Travis CI" below.
0 commit comments