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

How to snap non-redistributable Windows application available as a zipball? #2

Open
brlin-tw opened this issue Oct 1, 2020 · 4 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@brlin-tw
Copy link
Contributor

brlin-tw commented Oct 1, 2020

The application provides a zipball with the setup executable in it, how to snap this kind of application?

@merlijn-sebrechts
Copy link
Member

merlijn-sebrechts commented Jan 25, 2021

You could add a pre-install hook that extracts the zip and then point INSTALL_EXE or RUN_EXE to it. Any script in "$SNAP/sommelier/hooks/pre-install" will be sourced before installation is attempted. These hooks can also change environment variables.

See

. "$SNAP/sommelier/hooks/pre-install"

Hooks still need to be documented so contributions are welcome :)

@merlijn-sebrechts
Copy link
Member

It might be useful to look into doing this automatically. For example, sommelier could check if INSTALL_EXE is an archive and extract it if that's the case.

@merlijn-sebrechts merlijn-sebrechts added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 25, 2021
@Thermionix
Copy link

I included a pre-install hook sourced from hooks/pre-install via;

parts:
  hooks:
    plugin: dump
    source: hooks/
    organize:
      '*': sommelier/hooks/
    stage:
      - sommelier

@merlijn-sebrechts
Copy link
Member

Thanks, @Thermionix

For anyone looking to do the same thing, this is what it looks like in action: https://github.com/Thermionix/fusion360/blob/main/snap/snapcraft.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants