Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

backport --appimage-version #40

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/runtime/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ void print_help(const char* appimage_path) {
" $XDG_CONFIG_HOME\n"
" --appimage-signature Print digital signature embedded in AppImage\n"
" --appimage-updateinfo[rmation] Print update info embedded in AppImage\n"
" --appimage-version Print version of AppImageKit\n"
" --appimage-version Print version of AppImage runtime\n"
"\n"
"Portable home:\n"
"\n"
Expand Down Expand Up @@ -1378,6 +1378,12 @@ int main(int argc, char* argv[]) {
exit(0);
}

/* Just print the runtime version and then exit */
if(arg && strcmp(arg,"appimage-version") == 0) {
fprintf(stderr,"AppImage runtime version: %s\n", GIT_COMMIT);
exit(0);
}

/* Just print the offset and then exit */
if (arg && strcmp(arg, "appimage-offset") == 0) {
printf("%zu\n", fs_offset);
Expand Down