asticode / go-astilectron

Build cross platform GUI apps with GO and HTML/JS/CSS (powered by Electron)
MIT License
4.9k stars 344 forks source link

Error when compile linux app on Windows #303

Closed Sciroccogti closed 3 years ago

Sciroccogti commented 3 years ago

Everything goes well when I comopiled my codes on Windows. But when I try to run the binary on Linux, which was compiled on Windows with astilectron-bundler -l, things goes wrong.

Does it mean that I can only use the flag -l on Linux?

Here is the log file on Linux:

2021/01/10 23:03:50 Running app built at 2021-01-10 22:43:43.9301191 +0800 CST m=+30.178947301
2021/01/10 23:03:50 astikit: starting worker...
2021/01/10 23:03:50 astikit: received signal urgent I/O condition
2021/01/10 23:03:50 astikit: received signal urgent I/O condition
2021/01/10 23:03:50 astikit: received signal urgent I/O condition
2021/01/10 23:03:50 astikit: received signal urgent I/O condition
2021/01/10 23:03:50 astikit: received signal urgent I/O condition
2021/01/10 23:03:50 astikit: received signal urgent I/O condition
2021/01/10 23:03:50 Skipping restoring resources...
2021/01/10 23:03:50 Starting...
2021/01/10 23:03:50 Provisioning...
2021/01/10 23:03:50 Provisioning Astilectron...
2021/01/10 23:03:50 Removing directory /home/aaa/src/Foldest/vendor/astilectron
2021/01/10 23:03:50 Disembedding vendor_astilectron_bundler/astilectron.zip into /home/aaa/src/Foldest/vendor/astilectron-v0.42.0.zip...
2021/01/10 23:03:50 /home/aaa/src/Foldest/vendor/astilectron-v0.42.0.zip already exists, skipping disembed...
2021/01/10 23:03:50 Creating directory /home/aaa/src/Foldest/vendor/astilectron
2021/01/10 23:03:50 Unzipping /home/aaa/src/Foldest/vendor/astilectron-v0.42.0.zip/astilectron-0.42.0 into /home/aaa/src/Foldest/vendor/astilectron
2021/01/10 23:03:50 Removing /home/aaa/src/Foldest/vendor/astilectron...
2021/01/10 23:03:50 Closing...
2021/01/10 23:03:50 astikit: stopping worker...
2021/01/10 23:03:50 running bootstrap failed: starting astilectron failed: provisioning failed: provisioning astilectron failed: unzipping /home/aaa/src/Foldest/vendor/astilectron-v0.42.0.zip/astilectron-0.42.0 into /home/aaa/src/Foldest/vendor/astilectron failed: unzipping /home/aaa/src/Foldest/vendor/astilectron-v0.42.0.zip/astilectron-0.42.0 into /home/aaa/src/Foldest/vendor/astilectron failed: astikit: content in archive does not match specified internal path astilectron-0.42.0

The mentioned file astilectron-v0.42.0.zip is also attached. astilectron-v0.42.0.zip

asticode commented 3 years ago

Can you paste logs when you run astilectron-bundler ?

Sciroccogti commented 3 years ago

Can you paste logs when you run astilectron-bundler ?

PS E:\CODES\Foldest-go> astilectron-bundler -l 
2021/01/12 21:11:15 Bundling for environment linux/amd64
2021/01/12 21:11:15 Binding data
2021/01/12 21:11:15 Removing C:\Users\aaa\AppData\Local\Temp\astibundler\bind
2021/01/12 21:11:15 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind
2021/01/12 21:11:15 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler
2021/01/12 21:11:15 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\cache
2021/01/12 21:11:15 C:\Users\aaa\AppData\Local\Temp\astibundler\cache\astilectron-0.42.0.zip already exists, skipping download of https://github.com/asticode/astilectron/archive/v0.42.0.zip
2021/01/12 21:11:15 Copying C:\Users\aaa\AppData\Local\Temp\astibundler\cache\astilectron-0.42.0.zip to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler\astilectron.zip
2021/01/12 21:11:15 C:\Users\aaa\AppData\Local\Temp\astibundler\cache\electron-linux-amd64-7.1.10.zip already exists, skipping download of https://github.com/electron/electron/releases/download/v7.1.10/electron-v7.1.10-linux-x64.zip
2021/01/12 21:11:15 Copying C:\Users\aaa\AppData\Local\Temp\astibundler\cache\electron-linux-amd64-7.1.10.zip to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler\electron.zip
2021/01/12 21:11:15 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind\resources
2021/01/12 21:11:15 Copying E:\CODES\Foldest-go\resources to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\resources
2021/01/12 21:11:18 Generating E:\CODES\Foldest-go\bind_linux_amd64.go
2021/01/12 21:11:23 Removing E:\CODES\Foldest-go\output\linux-amd64
2021/01/12 21:11:23 Creating E:\CODES\Foldest-go\output\linux-amd64
2021/01/12 21:11:23 Building for os linux and arch amd64 astilectron: 0.42.0 electron: 7.1.10
2021/01/12 21:11:23 Executing go build -ldflags -X "main.AppName=Foldest" -X "main.BuiltAt=2021-01-12 21:11:23.2293567 +0800 CST m=+8.234548701" -X "main.VersionAstilectron=0.42.0" -X "main.VersionElectron=7.1.10" -o E:\CODES\Foldest-go\output\linux-amd64\binary .
2021/01/12 21:11:41 Moving E:\CODES\Foldest-go\output\linux-amd64\binary to E:\CODES\Foldest-go\output\linux-amd64\Foldest
asticode commented 3 years ago

Run astilectron-bundler cc to clear the bundler's cache and try again, there may be a problem with the downloaded astilectron-0.42.0.zip.

Let me know how it goes.

Sciroccogti commented 3 years ago

It just remains the same error...

asticode commented 3 years ago

I've pushed a fix that should fix the problem.

Could you:

And let me know whether it works properly?

Sciroccogti commented 3 years ago

It's so strange that after upgrading them, even the Windows binary has the same error...

# go.sum after upgrading
github.com/asticode/go-astichartjs v0.1.0 h1:Dscf4R+KDdBRJY1MQlK5p2IZyLc/JmnODUT3O2Cnc1Y=
github.com/asticode/go-astichartjs v0.1.0/go.mod h1:mAFLydbGKvV1fjZJRwl8v/7aKjC0QWyqHtSIk4TGgPo=
github.com/asticode/go-astikit v0.14.0 h1:ZF5Do/U+ucB++MQk4n7L2iHF4Eo8LhQgBjRj9nlYftc=
github.com/asticode/go-astikit v0.14.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0=
github.com/asticode/go-astilectron v0.22.1 h1:MA95Ek3lhnaMkv5rYf/j0EeRAr91pzlov143VZeMK7k=
github.com/asticode/go-astilectron v0.22.1/go.mod h1:3AQB2L/UtQWk2n3cc6MtIGAXcCjHOax1X91pWBLWx28=
github.com/asticode/go-astilectron-bootstrap v0.4.8 h1:B+EJC0pRRCErXOZl1bhXcYV6sIvCkB+7f3whDGjJMx0=
github.com/asticode/go-astilectron-bootstrap v0.4.8/go.mod h1:bx0vrW+Li5+eOQK2NRPlL78GOkVtryXzG0C7dnZY2zQ=
github.com/asticode/go-astilectron-bundler v0.7.6 h1:5HzO4NoMwWOhn400HQV7oswgzJN6mBQLKhF/2IoP0kM=
github.com/asticode/go-astilectron-bundler v0.7.6/go.mod h1:8DNdUIrSsOoGx0Bx0dW0bEvzgWPGSR014LrWQ9CQEhs=
github.com/asticode/go-bindata v1.0.0 h1:5whO0unjdx2kbAbzoBMS3307jKAEf3oQ1lJcx5RdgA8=
github.com/asticode/go-bindata v1.0.0/go.mod h1:t/Y+/iCLrvaYkv8Y6PscRnyUeYzy9y9+8JC9CMcKdHY=

# go.sum before upgrading
github.com/asticode/go-astichartjs v0.1.0 h1:Dscf4R+KDdBRJY1MQlK5p2IZyLc/JmnODUT3O2Cnc1Y=
github.com/asticode/go-astichartjs v0.1.0/go.mod h1:mAFLydbGKvV1fjZJRwl8v/7aKjC0QWyqHtSIk4TGgPo=
github.com/asticode/go-astikit v0.6.0 h1:zmbw5J2Du8SedBG1I5JjlsS5oG2vHcb6ZzhWMCMbLzs=
github.com/asticode/go-astikit v0.6.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0=
github.com/asticode/go-astikit v0.13.0 h1:GSKThPQ0UEdsKChq/hNVWKtx9/9mKamggm5G7JQcktY=
github.com/asticode/go-astikit v0.13.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0=
github.com/asticode/go-astilectron v0.20.0 h1:HUPl8BPxuRDiOnK4JSpTzJweSNpR85HZUQFopf7MVcM=
github.com/asticode/go-astilectron v0.20.0/go.mod h1:bF7zkk11IwP8lBPhEl3cCtkKIwsRRR6264OFM1v3Yso=
github.com/asticode/go-astilectron-bootstrap v0.4.4 h1:AebHl8ooixuqOgvRz01++l2ki1mSlKeId7OWYjS5Z5M=
github.com/asticode/go-astilectron-bootstrap v0.4.4/go.mod h1:+BSfTf4V8vW27vo4xEwUr4lXTryWL3awdALRSZfy1mM=
github.com/asticode/go-astilectron-bundler v0.7.3 h1:CXQVmSNZ4uE7gkURKqyTtnzKn6nfGGwQrwWeexqeDnw=
github.com/asticode/go-astilectron-bundler v0.7.3/go.mod h1:ZCUI3iEtXQg47aEGKMsVXVQddKF5hOM86GAm3DjiDho=
github.com/asticode/go-bindata v1.0.0 h1:5whO0unjdx2kbAbzoBMS3307jKAEf3oQ1lJcx5RdgA8=
github.com/asticode/go-bindata v1.0.0/go.mod h1:t/Y+/iCLrvaYkv8Y6PscRnyUeYzy9y9+8JC9CMcKdHY=
asticode commented 3 years ago

Can you upload the generated .zip file?

Sciroccogti commented 3 years ago

astilectron-v0.43.1.zip

Here you go~

Sciroccogti commented 3 years ago

Is it possible that it's an issue of my own codes?

asticode commented 3 years ago

Are you getting an error in Linux with the new build though ?

Sciroccogti commented 3 years ago

Wow, it's all right on Linux!

asticode commented 3 years ago

I've tried something else.

Could you:

And let me know whether it works properly?

Sciroccogti commented 3 years ago

It's working properly on both platforms! Thank you very much!

Wiindows

bunder log

2021/01/16 18:11:52 Bundling for environment windows/amd64
2021/01/16 18:11:52 Binding data
2021/01/16 18:11:52 Removing C:\Users\aaa\AppData\Local\Temp\astibundler\bind
2021/01/16 18:11:52 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind
2021/01/16 18:11:52 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler
2021/01/16 18:11:52 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\cache
2021/01/16 18:11:52 C:\Users\aaa\AppData\Local\Temp\astibundler\cache\astilectron-0.43.1.zip already exists, skipping download of https://github.com/asticode/astilectron/archive/v0.43.1.zip
2021/01/16 18:11:52 Copying C:\Users\aaa\AppData\Local\Temp\astibundler\cache\astilectron-0.43.1.zip to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler\astilectron.zip
2021/01/16 18:11:52 Downloading https://github.com/electron/electron/releases/download/v11.1.0/electron-v11.1.0-win32-x64.zip into C:\Users\aaa\AppData\Local\Temp\astibundler\cache\electron-windows-amd64-11.1.0.zip
2021/01/16 18:11:52 astikit: sending GET request to https://github.com/electron/electron/releases/download/v11.1.0/electron-v11.1.0-win32-x64.zip (1/1)
2021/01/16 18:12:03 Copying C:\Users\aaa\AppData\Local\Temp\astibundler\cache\electron-windows-amd64-11.1.0.zip to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler\electron.zip
2021/01/16 18:12:03 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind\resources
2021/01/16 18:12:03 Copying E:\CODES\Foldest-go\resources to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\resources
2021/01/16 18:12:07 Generating E:\CODES\Foldest-go\bind_windows_amd64.go
2021/01/16 18:12:12 Running rsrc for icon E:\CODES\Foldest-go\resources\icon.ico into E:\CODES\Foldest-go\windows.syso
2021/01/16 18:12:12 Removing E:\CODES\Foldest-go\output\windows-amd64
2021/01/16 18:12:12 Creating E:\CODES\Foldest-go\output\windows-amd64
2021/01/16 18:12:12 Building for os windows and arch amd64 astilectron: 0.43.1 electron: 11.1.0
2021/01/16 18:12:12 Executing go build -ldflags -H "windowsgui" -X "main.AppName=Foldest" -X "main.BuiltAt=2021-01-16 18:12:12.9016144 +0800 CST m=+20.881329401" -X "main.VersionAstilectron=0.43.1" -X "main.VersionElectron=11.1.0" -o E:\CODES\Foldest-go\output\windows-amd64\binary .
2021/01/16 18:12:41 Moving E:\CODES\Foldest-go\output\windows-amd64\binary to E:\CODES\Foldest-go\output\windows-amd64\Foldest.exe

execution log

2021/01/16 18:12:49 Running app built at 2021-01-16 18:12:12.9016144 +0800 CST m=+20.881329401
2021/01/16 18:12:49 astikit: starting worker...
2021/01/16 18:12:49 Skipping restoring resources...
2021/01/16 18:12:49 Starting...
2021/01/16 18:12:49 Provisioning...
2021/01/16 18:12:49 Provisioning Astilectron...
2021/01/16 18:12:49 Removing directory C:\Users\aaa\AppData\Roaming\Foldest\vendor\astilectron
2021/01/16 18:12:49 Disembedding vendor_astilectron_bundler\astilectron.zip into C:\Users\aaa\AppData\Roaming\Foldest\vendor\astilectron-v0.43.1.zip...
2021/01/16 18:12:49 C:\Users\aaa\AppData\Roaming\Foldest\vendor\astilectron-v0.43.1.zip already exists, skipping disembed...
2021/01/16 18:12:49 Creating directory C:\Users\aaa\AppData\Roaming\Foldest\vendor\astilectron
2021/01/16 18:12:49 Unzipping C:\Users\aaa\AppData\Roaming\Foldest\vendor\astilectron-v0.43.1.zip\astilectron-0.43.1 into C:\Users\aaa\AppData\Roaming\Foldest\vendor\astilectron
2021/01/16 18:12:49 Provisioning Electron...
2021/01/16 18:12:49 Removing directory C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64
2021/01/16 18:12:49 Disembedding vendor_astilectron_bundler\electron.zip into C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64-v11.1.0.zip...
2021/01/16 18:12:49 Creating C:\Users\aaa\AppData\Roaming\Foldest\vendor
2021/01/16 18:12:49 Creating C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64-v11.1.0.zip
2021/01/16 18:12:49 Disembedding vendor_astilectron_bundler\electron.zip
2021/01/16 18:12:49 Copying disembedded data to C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64-v11.1.0.zip
2021/01/16 18:12:49 Creating directory C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64
2021/01/16 18:12:49 Unzipping C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64-v11.1.0.zip into C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64
2021/01/16 18:12:53 System doesn't require finshing provisioning electron, moving on...
2021/01/16 18:12:53 Listening...
2021/01/16 18:12:53 Executing...
2021/01/16 18:12:53 Starting cmd C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64\electron.exe C:\Users\aaa\AppData\Roaming\Foldest\vendor\astilectron\main.js 127.0.0.1:6651 true
2021/01/16 18:12:54 Stdout says: 
2021/01/16 18:12:54 Astilectron says: {"name":"app.event.ready","targetID":"app","displays":{"all":[{"id":2528732444,"bounds":{"x":0,"y":0,"width":2560,"height":1440},"workArea":{"x":0,"y":0,"width":2560,"height":1400},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":2560,"height":1440},"workAreaSize":{"width":2560,"height":1400},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}],"primary":{"id":2528732444,"bounds":{"x":0,"y":0,"width":2560,"height":1440},"workArea":{"x":0,"y":0,"width":2560,"height":1400},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":2560,"height":1440},"workAreaSize":{"width":2560,"height":1400},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}},"supported":{"notification":true}}
2021/01/16 18:12:54 Sending to Astilectron: {"name":"window.cmd.create","targetID":"1","sessionId":"2","url":"c:\\Users\\aaa\\AppData\\Roaming\\Foldest\\resources\\app\\index.html","windowOptions":{"backgroundColor":"#333","center":true,"height":700,"icon":"C:\\Users\\aaa\\AppData\\Roaming\\Foldest\\resources\\icon.png","title":"Foldest","width":700}}
2021/01/16 18:12:54 Stdout says: (node:11616) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
2021/01/16 18:12:54 Astilectron says: {"name":"display.event.metrics.changed","targetID":"app","displays":{"all":[{"id":2528732444,"bounds":{"x":0,"y":0,"width":2560,"height":1440},"workArea":{"x":0,"y":0,"width":2560,"height":1400},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries_d50_referred: [[0.6690, 0.3154],  [0.2773, 0.6631],  [0.1523, 0.0566]], transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":2560,"height":1440},"workAreaSize":{"width":2560,"height":1400},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}],"primary":{"id":2528732444,"bounds":{"x":0,"y":0,"width":2560,"height":1440},"workArea":{"x":0,"y":0,"width":2560,"height":1400},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries_d50_referred: [[0.6690, 0.3154],  [0.2773, 0.6631],  [0.1523, 0.0566]], transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":2560,"height":1440},"workAreaSize":{"width":2560,"height":1400},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}}}
2021/01/16 18:12:54 Astilectron says: {"name":"window.event.focus","targetID":"1"}
2021/01/16 18:12:54 Astilectron says: {"name":"window.event.did.finish.load","targetID":"1"}
2021/01/16 18:12:56 Astilectron says: {"name":"window.event.move","targetID":"1"}
2021/01/16 18:12:59 Sending to Astilectron: {"name":"window.cmd.message","targetID":"1","message":{"name":"check.out.menu","payload":"Don't forget to check out the menu!"}}
2021/01/16 18:13:00 Astilectron says: {"name":"app.cmd.quit","targetID":"app"}
2021/01/16 18:13:00 Stopping...
2021/01/16 18:13:00 astikit: stopping worker...
2021/01/16 18:13:00 'C:\Users\aaa\AppData\Roaming\Foldest\vendor\electron-windows-amd64\electron.exe' exited with code: 1
2021/01/16 18:13:00 App has closed
2021/01/16 18:13:00 Closing...
2021/01/16 18:13:00 Stopping...
2021/01/16 18:13:00 accept tcp 127.0.0.1:6651: use of closed network connection while TCP accepting
2021/01/16 18:13:00 Stopping...

Linux

bunder log

2021/01/16 18:17:44 Bundling for environment linux/amd64
2021/01/16 18:17:44 Binding data
2021/01/16 18:17:44 Removing C:\Users\aaa\AppData\Local\Temp\astibundler\bind
2021/01/16 18:17:44 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind
2021/01/16 18:17:44 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler
2021/01/16 18:17:44 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\cache
2021/01/16 18:17:44 C:\Users\aaa\AppData\Local\Temp\astibundler\cache\astilectron-0.43.1.zip already exists, skipping download of https://github.com/asticode/astilectron/archive/v0.43.1.zip
2021/01/16 18:17:44 Copying C:\Users\aaa\AppData\Local\Temp\astibundler\cache\astilectron-0.43.1.zip to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler\astilectron.zip
2021/01/16 18:17:44 Downloading https://github.com/electron/electron/releases/download/v11.1.0/electron-v11.1.0-linux-x64.zip into C:\Users\aaa\AppData\Local\Temp\astibundler\cache\electron-linux-amd64-11.1.0.zip
2021/01/16 18:17:44 astikit: sending GET request to https://github.com/electron/electron/releases/download/v11.1.0/electron-v11.1.0-linux-x64.zip (1/1)
2021/01/16 18:17:56 Copying C:\Users\aaa\AppData\Local\Temp\astibundler\cache\electron-linux-amd64-11.1.0.zip to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\vendor_astilectron_bundler\electron.zip
2021/01/16 18:17:56 Creating C:\Users\aaa\AppData\Local\Temp\astibundler\bind\resources
2021/01/16 18:17:56 Copying E:\CODES\Foldest-go\resources to C:\Users\aaa\AppData\Local\Temp\astibundler\bind\resources
2021/01/16 18:17:59 Generating E:\CODES\Foldest-go\bind_linux_amd64.go
2021/01/16 18:18:04 Removing E:\CODES\Foldest-go\output\linux-amd64
2021/01/16 18:18:04 Creating E:\CODES\Foldest-go\output\linux-amd64
2021/01/16 18:18:04 Building for os linux and arch amd64 astilectron: 0.43.1 electron: 11.1.0
2021/01/16 18:18:05 Executing go build -ldflags -X "main.AppName=Foldest" -X "main.BuiltAt=2021-01-16 18:18:04.9680805 +0800 CST m=+20.567374501" -X "main.VersionAstilectron=0.43.1" -X "main.VersionElectron=11.1.0" -o E:\CODES\Foldest-go\output\linux-amd64\binary . 
2021/01/16 18:18:27 Moving E:\CODES\Foldest-go\output\linux-amd64\binary to E:\CODES\Foldest-go\output\linux-amd64\Foldest

execution log

2021/01/16 18:22:12 Running app built at 2021-01-16 18:18:04.9680805 +0800 CST m=+20.567374501
2021/01/16 18:22:12 astikit: starting worker...
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 Resources folder doesn't exist, restoring resources...
2021/01/16 18:22:12 Removing /media/aaa/CODES/Foldest-go/output/linux-amd64/resources
2021/01/16 18:22:12 Restoring resources in /media/aaa/CODES/Foldest-go/output/linux-amd64/resources
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 Starting...
2021/01/16 18:22:12 Provisioning...
2021/01/16 18:22:12 Provisioning Astilectron...
2021/01/16 18:22:12 Removing directory /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/astilectron
2021/01/16 18:22:12 Disembedding vendor_astilectron_bundler/astilectron.zip into /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/astilectron-v0.43.1.zip...
2021/01/16 18:22:12 Creating /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor
2021/01/16 18:22:12 Creating /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/astilectron-v0.43.1.zip
2021/01/16 18:22:12 Disembedding vendor_astilectron_bundler/astilectron.zip
2021/01/16 18:22:12 Copying disembedded data to /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/astilectron-v0.43.1.zip
2021/01/16 18:22:12 Creating directory /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/astilectron
2021/01/16 18:22:12 Unzipping /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/astilectron-v0.43.1.zip/astilectron-0.43.1 into /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/astilectron
2021/01/16 18:22:12 Provisioning Electron...
2021/01/16 18:22:12 Removing directory /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/electron-linux-amd64
2021/01/16 18:22:12 Disembedding vendor_astilectron_bundler/electron.zip into /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/electron-linux-amd64-v11.1.0.zip...
2021/01/16 18:22:12 Creating /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor
2021/01/16 18:22:12 Creating /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/electron-linux-amd64-v11.1.0.zip
2021/01/16 18:22:12 Disembedding vendor_astilectron_bundler/electron.zip
2021/01/16 18:22:12 Copying disembedded data to /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/electron-linux-amd64-v11.1.0.zip
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 astikit: received signal urgent I/O condition
2021/01/16 18:22:12 Creating directory /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/electron-linux-amd64
2021/01/16 18:22:12 Unzipping /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/electron-linux-amd64-v11.1.0.zip into /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/electron-linux-amd64

2021/01/16 18:22:15 System doesn't require finshing provisioning electron, moving on...
2021/01/16 18:22:15 Listening...
2021/01/16 18:22:15 Executing...
2021/01/16 18:22:15 Starting cmd /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/electron-linux-amd64/electron /media/aaa/CODES/Foldest-go/output/linux-amd64/vendor/astilectron/main.js 127.0.0.1:42449 true
2021/01/16 18:22:15 astikit: received signal urgent I/O condition
2021/01/16 18:22:15 Astilectron says: {"name":"app.event.ready","targetID":"app","displays":{"all":[{"id":0,"bounds":{"x":0,"y":0,"width":2560,"height":1440},"workArea":{"x":0,"y":28,"width":2560,"height":1412},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries_d50_referred: [[0.6738, 0.3163],  [0.2962, 0.6524],  [0.1589, 0.0617]], transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":2560,"height":1440},"workAreaSize":{"width":2560,"height":1412},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}],"primary":{"id":0,"bounds":{"x":0,"y":0,"width":2560,"height":1440},"workArea":{"x":0,"y":28,"width":2560,"height":1412},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries_d50_referred: [[0.6738, 0.3163],  [0.2962, 0.6524],  [0.1589, 0.0617]], transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":2560,"height":1440},"workAreaSize":{"width":2560,"height":1412},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}},"supported":{"notification":true}}
2021/01/16 18:22:15 Sending to Astilectron: {"name":"window.cmd.create","targetID":"1","sessionId":"2","url":"file:///media/zyf/%E5%AD%98%E5%82%A8/CODES/Foldest-go/output/linux-amd64/resources/app/index.html","windowOptions":{"backgroundColor":"#333","center":true,"height":700,"icon":"/media/aaa/CODES/Foldest-go/output/linux-amd64/resources/icon.png","title":"Foldest","width":700}}
2021/01/16 18:22:15 Stderr says: (node:2477) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
2021/01/16 18:22:15 Astilectron says: {"name":"window.event.move","targetID":"1"}
2021/01/16 18:22:15 Astilectron says: {"name":"window.event.focus","targetID":"1"}
2021/01/16 18:22:15 Astilectron says: {"name":"window.event.did.finish.load","targetID":"1"}
2021/01/16 18:22:15 Sending to Astilectron: {"name":"menu.cmd.create","targetID":"3","menu":{"id":"3","items":[{"id":"4","options":{"label":"File"},"rootId":"app","submenu":{"id":"5","items":[{"id":"6","options":{"label":"About"},"rootId":"app"},{"id":"7","options":{"role":"close"},"rootId":"app"}],"rootId":"app"}}],"rootId":"app"}}
2021/01/16 18:22:15 Astilectron says: {"name":"menu.event.created","targetID":"3"}
2021/01/16 18:22:15 astikit: worker is now waiting...
2021/01/16 18:22:15 Sending to Astilectron: {"name":"window.cmd.web.contents.open.dev.tools","targetID":"1"}
2021/01/16 18:22:15 Astilectron says: {"name":"window.event.ready.to.show","targetID":"1"}
2021/01/16 18:22:16 Astilectron says: {"name":"window.event.ready.to.show","targetID":"1"}
2021/01/16 18:22:19 Astilectron says: {"name":"window.event.blur","targetID":"1"}
2021/01/16 18:22:20 astikit: received signal urgent I/O condition
2021/01/16 18:22:20 Sending to Astilectron: {"name":"window.cmd.message","targetID":"1","message":{"name":"check.out.menu","payload":"Don't forget to check out the menu!"}}
2021/01/16 18:24:21 astikit: received signal urgent I/O condition
2021/01/16 18:24:21 astikit: received signal urgent I/O condition