owlysk / CodeTimer

Timer Widget for Kimai Time Tracking
MIT License
22 stars 2 forks source link

MacOS Terminal window always open #1

Closed kruegge82 closed 9 months ago

kruegge82 commented 1 year ago

Hello, i try your tool and have one problem, if i start your CodeTimer-mac_x64 file on mac is open via Terminal, and a second window with the code timer app, if i close the terminal windows also the code timer app is close....

you know a way to hide the terminal window?

thanks

owlysk commented 1 year ago

Hi, I think it need to be bundle in .app https://github.com/neutralinojs/neutralinojs/issues/209 Give me few days to try figure it out and I will come back to you.

kruegge82 commented 1 year ago

yes its right, thank you very much...

Am 09.07.2023 um 20:50 schrieb owlysk @.***>:

Hi, iIthink it need to be bundle in .app neutralinojs/neutralinojs#209 https://github.com/neutralinojs/neutralinojs/issues/209 Give me few days to try figure it out and I will come back to you.

— Reply to this email directly, view it on GitHub https://github.com/owlysk/CodeTimer/issues/1#issuecomment-1627794694, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRXLBCKKTMLQFD7KRAON23XPL4PPANCNFSM6AAAAAAZ7FRDCQ. You are receiving this because you authored the thread.

owlysk commented 1 year ago

Hi, after some search I figure out how to bundle it. BUT application in bundle has read-only access to files (where cache or credentials are located) so you can't update settings or use cache (app may be slower). I already created issue on neutralinojs how to handle this issue in future.

For now, you have to manually add credentionals to file setting.neustorage to make it work. This file is located in hidden folder .storage

CodeTimer-apple.app
    └── Contents
        ├── Info.plist
        ├── MacOS
        │   ├── booter
        │   └── CodeTimer
        └── Resources
            ├── app.icns
            ├── .DS_Store
            ├── extensions
            ├── favicon.ico
            ├── icons
            │   ├── app.icns
            │   ├── appIcon.png
            │   └── trayIcon.png
            ├── neutralino.config.json
            ├── resources
            │   ├── detail.html
            │   ├── .DS_Store
            │   ├── icons
            │   ├── index.html
            │   ├── js
            │   ├── lib
            │   ├── setting.html
            │   └── style.css
            ├── .storage
            │   ├── cache.neustorage
            │   └── setting.neustorage <--- this file need to be changed
            └── .tmp
                └── tray_icon_linux.png

Here is a bundle for Mac OS: CodeTimer-apple.app.zip

I hope this will work for you

owlysk commented 9 months ago

Hi again. Can you please test this app bundle? CodeTimer.app.zip

Please let me know, if it works. Thank you

kruegge82 commented 9 months ago

yes it works very well...

owlysk commented 9 months ago

Great, thanks.