No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Electron: __static in boot files not valid in production and how to store unpacked exe files

    Framework
    2
    3
    254
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Andrea19888 last edited by

      Hi all, I’m having issues with Electron and statics variable. I need to embed ffmpeg executables in my Quasar+Electron app.

      I placed the files inside the statics folder, but I have 2 problems:

      • how to make them not part of the asar archive (so that I can get a path and run the exe files), i.e. part of app.asar.unpacked
      • how to reference the required path in both dev and production. I can use statics in dev mode but in production I’m getting the error “ReferenceError: __statics is not defined”. Consider that I’m checking the exe existence in a Quasar boot file.

      Than you

      1 Reply Last reply Reply Quote 0
      • A
        amoss last edited by

        I saw this just now, maybe it will help you? https://alexandercleasby.dev/blog/use-ffmpeg-electron

        My app does not need ffmpeg file at all but still my app fails to run when executing it in a folder without ffmpeg.dll file. Not sure if it’s a must in an electron app or how can I tell electron that this file is not needed.

        1 Reply Last reply Reply Quote 0
        • A
          amoss last edited by

          solution, at least to my problem: https://forum.quasar-framework.org/topic/5783/electron-questions/5

          1 Reply Last reply Reply Quote 0
          • First post
            Last post