hacker-menu icon indicating copy to clipboard operation
hacker-menu copied to clipboard

Porting to Windows/Linux

Open PaulBGD opened this issue 10 years ago • 13 comments

What would be required to port this to Windows/Linux?

PaulBGD avatar Sep 17 '15 21:09 PaulBGD

I'm on Windows and it didn't build on it due to nslog package. When I removed the nslog package and it's related code, I built it and it worked.

nanaeasiedu avatar Sep 17 '15 22:09 nanaeasiedu

Yeah I'm seeing the same thing, let me try removing nslog.

PaulBGD avatar Sep 17 '15 22:09 PaulBGD

I did get it working, although it spans multiple monitors unless I add a few icons. This works great nonetheless!

PaulBGD avatar Sep 17 '15 22:09 PaulBGD

Spans multiple monitors??

nanaeasiedu avatar Sep 17 '15 22:09 nanaeasiedu

Yeah, half is on one and half is on the other. Adding more icons to the right of the hacker menu icon temporarily fixed this.

PaulBGD avatar Sep 17 '15 22:09 PaulBGD

Alright!

nanaeasiedu avatar Sep 17 '15 22:09 nanaeasiedu

I confirmed that nslog is causing issues when compiling on Windows. We'd need to a find an alternative of it. However, the menu doesn't pop up on Windows 10 when clicked, will need to investigate more:

screen shot 2015-09-17 at 8 45 00 pm

owenthereal avatar Sep 18 '15 03:09 owenthereal

Showed up fine for me, maybe you need to use the official Windows 10?

PaulBGD avatar Sep 18 '15 15:09 PaulBGD

I am currently writing a packaging script for Windows (and Linux) in #25. It builds for me on Windows 10 without issues.

Care to test for me?

onbjerg avatar Sep 20 '15 04:09 onbjerg

> [email protected] build c:\Users\Paul\hacker-menu
> babel src -D -d dist --compact true

src\client\main.js -> dist\client\main.js
src\client\menu.js -> dist\client\menu.js
src\client\spinner.js -> dist\client\spinner.js
src\client\story.js -> dist\client\story.js
src\client\story_box.js -> dist\client\story_box.js
src\client\story_list.js -> dist\client\story_list.js
src\index.js -> dist\index.js
src\logger.js -> dist\logger.js
src\model\read_cache.js -> dist\model\read_cache.js
src\model\story_manager_status.js -> dist\model\story_manager_status.js
src\model\story_type.js -> dist\model\story_type.js
src\server\auto_update_manager.js -> dist\server\auto_update_manager.js
src\server\story_manager.js -> dist\server\story_manager.js
src\server\tray_manager.js -> dist\server\tray_manager.js
'.' is not recognized as an internal or external command,
operable program or batch file.

PaulBGD avatar Sep 20 '15 14:09 PaulBGD

If we're porting to Windows, creating an installer with https://github.com/atom/grunt-electron-installer would be great.

PaulBGD avatar Sep 20 '15 14:09 PaulBGD

You can now run script/package --all to build for all platforms. But somehow the menu didn't pop up for Windows 10. I created an issue: https://github.com/maxogden/menubar/issues/67.

owenthereal avatar Oct 05 '15 06:10 owenthereal

The menu pops up on Windows 10, but when I click outside the menu in order to close it, it just goes blank. In order to make it work again, I have to right click on a process in my task bar called Electron and click "Close Window".

onbjerg avatar Oct 07 '15 23:10 onbjerg