Closed GreeDev closed 5 years ago
Can you paste logs when you run D:\GoLand\TestProject\go-astilectron-demo\output\windows-amd64\Astilectron demo.exe -v
?
When I ran "D:\GoLand\TestProject\go-astilectron-demo\output\windows-amd64\Astilectron demo.exe" -v there's no log.
I renamed Astilectron demo.exe to AstilectronDemo.exe and ran D:\GoLand\TestProject\go-astilectron-demo\output\windows-amd64\AstilectronDemo.exe -v nothing happened. Is the log .txt file?
Mmm this is really weird, logs should appear in the terminal (stdout
). Have you made any changes to the demo? You're running the binary from a terminal right?
I installed go-astilectron with go get -u github.com/asticode/go-astilectron/... I donwloaded demo with go get -u github.com/asticode/go-astilectron-demo/... and bundler, go get -u github.com/asticode/go-astilectron-bundler/...
I removed bind.go and I used GoLand terminal for ran "D:\GoLand\TestProject\go-astilectron-demo\output\windows-amd64\Astilectron demo.exe" -v
What happens if you double click the .exe
file instead ?
nothing happens.
I remember having some similar problems when I used Avast. Can you try disabling your antivirus and try again?
I dont have Avast. I stopped Malwarebyte Free, turned off Windows defender, removed nprotect online security and nxTs. but still nothing happen.
Can you upload the generated binary so that I can test it in a Windows?
When I bundle the file, the size is slightly different.
Can you try executing this file in windows and tell me whether this is working?
it has same problem. nothing happens. Is there more thing I should install?
I had the same issue then deleted C:/Users/<your user>/AppData/Roaming/Astilectron Demo
directory. Can you confirm that when you delete this folder, the binary I uploaded works on your machine?
OHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
Now it works well! why wasn't it works well???
I don't know why, but your build seems to have mixed up resources. Can you try:
git pull --rebase
the following projects: go-astilectron
, go-astilectron-bundler
, go-astilectron-demo
go install ./...
the project go-astilectron-bundler
Now It works well! I re-bundled the demo projcet, ran, works well! really thank you.
(and I dont know about git well :/)
Cheers
the build works well, but when I run it, nothing happens.