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

Node generator don't create symlink to SHASUMS256.txt, electron/get gets cache miss #403

Closed
savely-krasovsky opened this issue Mar 14, 2024 · 5 comments
Labels

Comments

@savely-krasovsky
Copy link

flatpak-builder version

1.4.2

Linux distribution and version

Arch Linux

Affected flatpak-builder tool

node/flatpak-node-generator.py

flatpak-builder tool cli args

No response

Source repository URL

No response

Flatpak-builder manifest URL

No response

Description

I am using @electron/forge (not electron-builder). I got it work, but manually patched special.py with this:

self.gen.add_shell_source(
    [
        f'mkdir -p "{sanitized_url}"',
        f'ln -s "../{binary.filename}" "{sanitized_url}/{binary.filename}"',
        f'mkdir -p "{url_hash}"',
        f'ln -s "../{binary.filename}" "{url_hash}/{binary.filename}"',
        f'mkdir -p "{url_hash}"', 
        f'ln -s "../SHASUMS256.txt-29.1.0" "{url_hash}/SHASUMS256.txt"',
    ],
    destination=electron_cache_dir,
    only_arches=[binary.arch.flatpak],
)

Otherwise electron/get cannot find SHASUMS256.txt, tries to download it and fails.

@hfiguiere
Copy link
Collaborator

since you have a patch maybe you can submit a PR for it.

@savely-krasovsky
Copy link
Author

@hfiguiere I am not fluent in Python and don't know how to properly pass SHASUM256.txt version. Patch above should be manually fixed for each Electron version.

@refi64
Copy link
Collaborator

refi64 commented Mar 16, 2024

I think this is fixed by #376?

@savely-krasovsky
Copy link
Author

Yeah! I missed that PR, digged this issue myself...

@refi64
Copy link
Collaborator

refi64 commented Mar 24, 2024

PR is merged.

@refi64 refi64 closed this as completed Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants