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.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
C:\Program Files\Arduino IDE
C:\Users\<username>\AppData\Local\Programs\Arduino IDE
(where <username>
is your Windows username)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".& ".\Arduino IDE"
<CODE/>
icon on the post composer toolbar.```
) to your reply to make sure the error messages are correctly formatted.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.
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.