Skip to content

Commit 779bd58

Browse files
committed
Add APPIMAGE_COMP env var
Fixes #23.
1 parent 8fce62d commit 779bd58

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ linuxdeploy-plugin-appimage can be configured using environment variables.
3939
- `VERBOSE=1`: set this variable to any value to enable verbose output
4040
- `OUTPUT=filename`: change filename of resulting AppImage
4141
- `NO_APPSTREAM=1`: skip checking AppStream metadata for issues
42+
- `APPIMAGE_COMP=...`: compression algorithm appimagetool/mksquashfs should use (e.g., `xz`, `gzip`), see [appimagetool's repository](https://github.com/AppImage/AppImageKit/) for more information

src/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ int main(const int argc, const char* const* const argv) {
139139
args.push_back(strdup("--no-appstream"));
140140
}
141141

142+
auto comp = getenv("APPIMAGE_COMP");
143+
if (comp != nullptr) {
144+
args.push_back(strdup("--comp"));
145+
args.push_back(strdup(comp));
146+
}
147+
142148
args.push_back(nullptr);
143149

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

0 commit comments

Comments
 (0)