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

add vuejs as kiwix-desktop dependency #442

Closed
wants to merge 1 commit into from
Closed

Conversation

jetownfeve21
Copy link
Contributor

Copy link
Member

@mgautierfr mgautierfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On top of the comments who are real blocker, this also need to :

  • Add the dependency in base_deps_versions in kiwixbuild/versions.py (and update base_deps_meta_version
  • Add vuejs as a dependency of AllBaseDependencies (in kiwixbuild/dependencies/all_dependencies.py
  • Handle the flatpak build system.

name = "vuejs"

class Source(Source):
archive = Remotefile('vue.js', '', 'https://vuejs.org/js/vue.js')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to file the sha256sum of the file.


def _configure(self, context):
source_path = pj(neutralEnv('archive_dir'), 'vue.js')
dest_path = pj(neutralEnv('source_dir'), 'kiwix-desktop', 'resources', 'js', 'vue.js')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I strongly dislike this. vue.js is a dependency of kiwix-desktop, it cannot change its source directory.
We could think about kiwix-desktop copying the file in its source but :

  • It would be to kiwix-desktop to do it.
  • It would be to kiwix-desktop build system to do it (not kiwix-build)
  • As we build "out of source", the build system must not change the source directory. I don't know how qmake can use resource in the build directory and not in the source tree.

Honestly, If this is to complex to do (we have to check on qmake side), I would say that we keep vue.js in kiwix-desktop source tree (for now at least).

@stale
Copy link

stale bot commented Jun 3, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Jun 3, 2020
@kelson42
Copy link
Contributor

@jetownfeve21 Do you still plan to deal with @mgautierfr feedback?

@stale stale bot removed the stale label Jun 24, 2020
@jetownfeve21
Copy link
Contributor Author

Sorry, I forgot about this ticket.
@mgautierfr If kiwix-build is used to download the vue.js file (or the user downloads it himself) and then qmake (kiwix-desktop) copy the file inside its sources, is it fine ?
https://wiki.qt.io/Undocumented_QMake in this link they say that the command QMAKE_COPY can be used (I didn't test it).

@stale
Copy link

stale bot commented Jul 6, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Jul 6, 2020
@kelson42
Copy link
Contributor

Problem is not that easy to fix unfortunately and we strongly consider to use native Qt in place of the HTML rendered (what would remove the vue.js). Closing for the moment.

@kelson42 kelson42 closed this Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants