Add env var to skip AppStream checks

This commit is contained in:
TheAssassin
2021-10-28 14:16:55 +02:00
parent 24e5dc7228
commit 4bfe52c934
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -15,7 +15,6 @@ When calling linuxdeploy, just add `--output appimage` to enable the plugin. Aft
*For more information, see the [official AppImage packaging guide](https://docs.appimage.org/packaging-guide/native-binaries.html).*
### Standalone usage
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
*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).*
### Optional variables
linuxdeploy-plugin-appimage can be configured using environment variables.
@@ -38,3 +38,4 @@ linuxdeploy-plugin-appimage can be configured using environment variables.
- `SIGN_KEY=key_id`: GPG Key ID to use for signing. This environment variable is only used if `SIGN` is set.
- `VERBOSE=1`: set this variable to any value to enable verbose output
- `OUTPUT=filename`: change filename of resulting AppImage
- `NO_APPSTREAM=1`: skip checking AppStream metadata for issues
+4
View File
@@ -129,6 +129,10 @@ int main(const int argc, const char* const* const argv) {
args.push_back(strdup(getenv("OUTPUT")));
}
if (getenv("NO_APPSTREAM") != nullptr) {
args.push_back(strdup("--no-appstream"));
}
args.push_back(nullptr);
std::cerr << "Running command: " << pathToAppimagetool;