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
This adds a new install stage to BuilderSourceFile that copies files to
a specified directory within the appdir just before post-install for
sources that have opted into using it (currently only the file source
and no-op for everyone else).
Additionally, the file source now has a install-dir and install-mode
property. The install-dir property assumes the install location
is relative to FLATPAK_DEST. If the destination file already exists, the
install is skipped with a warning. If install-mode is specified as a
valid octal permission string, the permissions are applied on the file
otherwise the file retains its original permissions.
Fixes: #54
Copy file name to clipboardExpand all lines: data/flatpak-manifest.schema.json
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1019,6 +1019,15 @@
1019
1019
"dest-filename": {
1020
1020
"description": "Filename to for the downloaded file, defaults to the basename of url.",
1021
1021
"type": "string"
1022
+
},
1023
+
"install-dir": {
1024
+
"description": "Directory relative to FLATPAK_DEST where the file will be installed. The directory is created if absent and the install is skipped with a warning if the file exists in the target path.",
1025
+
"type": "string"
1026
+
},
1027
+
"install-mode": {
1028
+
"description": "Optional octal permissions applied to the installed file. Requires install-dir. If this is absent, the original permissions of the file are preserved.",
0 commit comments