The packaged exe failed to start

image



I added the dependency and used it, it worked fine in the test environment, but the packaged exe file didn't open, what went wrong?

Hi @azedd123. Please add a forum reply here to tell us which operating system you are using (e.g., "Windows")?

I ask because I would like to give you the appropriate instructions for your operating system.


Is there a specific reason why you are building Arduino IDE from source?

Have you tried the official builds of Arduino IDE downloaded from the "Software" page? If so, did you have the same problem when using them, or did the IDE work as expected?

Windows, I have used the official version, but there is no ISP one-click download function, each burn needs to press the reset button, so I want to use the software to reset before each download

I'm going to ask you to provide some additional information that might help us to identify the problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Start Windows "File Explorer".
  3. Open the Arduino IDE installation folder.
    The default installation location is at one of the following paths:
    • C:\Program Files\Arduino IDE
      
    • C:\Users\<username>\AppData\Local\Programs\Arduino IDE
      
      (where <username> is your Windows username)
      :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
    A context menu will open
  5. Select "Open PowerShell window here" from the menu.
    Windows PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  6. Type the following command:
    & ".\Arduino IDE"
    
  7. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts.
  8. Wait until you are sure the IDE startup has gone into the hang state
    (as indicated by no additional output being printed to the terminal).
  9. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  10. Press the Ctrl+Shift+A keyboard shortcut.
    This will select all the text in the PowerShell window.
  11. Press the Ctrl+C keyboard shortcut.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the "Reply" button.
  13. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  14. Press the Ctrl+V keyboard shortcut.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

It would likely be more simple to do this by modifying the configuration of the relevant Arduino boards platform to cause Arduino IDE to run a command or script or application that will generate the reset.

If you are interested in that approach, we can provide further information an advice, but first we would need you to provide more details about this need to reset that you have encountered. The behavior is likely unique to specific boards and there are hundreds of different boards so we have trouble keeping track of the quirks of each of them.

1 Like
Error: No native build was found for platform=win32 arch=x64 runtime=electron abi=118 uv=1 libc=glibc node=18.17.1 electron=27.0.3 webpack=true
    loaded from: D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib

    at g.resolve.g.path (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:3279093)
    at g (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:3277146)
    at 73215 (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:986367)
    at __webpack_require__ (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:6416470)
    at 98786 (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:977705)
    at __webpack_require__ (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:6416470)
    at 71782 (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:981297)
    at __webpack_require__ (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:6416470)
    at 86652 (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:3489981)
    at __webpack_require__ (D:\software\Arduino2.3.3\Arduino IDE\resources\app\lib\backend\main.js:2:6416470)

Node.js v18.17.1

It's too long. That's the point

Putting the serialport library's prebuilds folder in the electron-app/lib directory will work, but I don't know why

Could you tell me how to do it, or is there any relevant documentation, thank you very much

Here is the relevant documentation:

https://arduino.github.io/arduino-cli/latest/platform-specification/

I think the best approach would be to modify the upload.pattern in the platform's platform.txt configuration file so that it invokes the command or script or application that performs the reset before running the upload command:

https://arduino.github.io/arduino-cli/latest/platform-specification/#tools

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.