Skip to content

Commit 4bfe52c

Browse files
committed
Add env var to skip AppStream checks
1 parent 24e5dc7 commit 4bfe52c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ When calling linuxdeploy, just add `--output appimage` to enable the plugin. Aft
1515
*For more information, see the [official AppImage packaging guide](https://docs.appimage.org/packaging-guide/native-binaries.html).*
1616

1717

18-
1918
### Standalone usage
2019

2120
Like all linuxdeploy plugins, linuxdeploy-plugin-appimage is a standalone tool and can be used without linuxdeploy.
@@ -29,6 +28,7 @@ The official linuxdeploy AppImage ships with a fairly recent version of the plug
2928

3029
*For more information on how linuxdeploy's plugin system works, please refer to [the documentation](https://docs.appimage.org/packaging-guide/linuxdeploy-user-guide.html#plugin-system).*
3130

31+
3232
### Optional variables
3333

3434
linuxdeploy-plugin-appimage can be configured using environment variables.
@@ -38,3 +38,4 @@ linuxdeploy-plugin-appimage can be configured using environment variables.
3838
- `SIGN_KEY=key_id`: GPG Key ID to use for signing. This environment variable is only used if `SIGN` is set.
3939
- `VERBOSE=1`: set this variable to any value to enable verbose output
4040
- `OUTPUT=filename`: change filename of resulting AppImage
41+
- `NO_APPSTREAM=1`: skip checking AppStream metadata for issues

src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ int main(const int argc, const char* const* const argv) {
129129
args.push_back(strdup(getenv("OUTPUT")));
130130
}
131131

132+
if (getenv("NO_APPSTREAM") != nullptr) {
133+
args.push_back(strdup("--no-appstream"));
134+
}
135+
132136
args.push_back(nullptr);
133137

134138
std::cerr << "Running command: " << pathToAppimagetool;

0 commit comments

Comments
 (0)