Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Is there a way to change update information in .AppImage file without recreating it? #163

Open
szymonk211 opened this issue Dec 30, 2020 · 7 comments

Comments

@szymonk211
Copy link

No description provided.

@probonopd
Copy link
Member

probonopd commented Dec 30, 2020

Edit: Yes it can be changed without re-creating the AppImage.

@TheAssassin
Copy link
Member

Of course it's possible, but none of our tools supports it, intentionally. It's a rare use case. With appimagetool, it's faster/easier to unpack, and repack with the correct information.

@szymonk211
Copy link
Author

Thank you, it is not a big deal, I thought it would be possible because it was stated in documentation:
"this information is not put into the file system inside the AppImage, but rather embedded into the AppImage in a way that makes it very easy to change this information should it be required" - that's why I thought it is possible. Unpack and repack is a good way too.

@TheAssassin
Copy link
Member

@szymonk211 can you provide a link, please? If it's in the docs, I'd like to clarify that. PRs also welcome.

@probonopd
Copy link
Member

probonopd commented Dec 30, 2020

Sorry, I had answered too fast without reading the headline.
This is about update information.

Yes it can be changed without re-creating the AppImage.
Basically you can use dd to write the update information to the correct offset.

Of course it's possible, but none of our tools supports it, intentionally. It's a rare use case.

Well... Great care was taken in the spec to make this possible, so that you don't have to re-create all AppImages in case you change e.g. a server domain. We should definitely build the tools to do it.

@probonopd probonopd reopened this Dec 30, 2020
@szymonk211
Copy link
Author

Here is the link if you still need it:
https://github.com/AppImage/AppImageUpdate#update-information-overview

@szymonk211
Copy link
Author

For me it was natural to search for command line option that let someone change this metadata in script  https://github.com/AppImage/AppImageUpdate/blob/main/src/main.cpp. Maybe this is a good place to include this tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants