mirror of
https://github.com/encounter/linuxdeploy-plugin-appimage.git
synced 2026-07-10 12:18:44 -07:00
Add env var to skip AppStream checks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user