Creating a Desktop Application

Q&A about the latest versions
Post Reply
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

I've just come across the document 'Creating a Desktop Application' https://ggnome.com/doc/pano2vr/6/tip-desktop-app/ and have a couple of questions.

1. The instructions are divided into Windows and Mac. Can a desktop application created on the Mac run on Windows or do you need to be on a Windows platform to create a Windows desktop application. I'm presuming you have to be on a Windows platform.

2. In the Mac OS instructions #9 it states, "Deleted everything from the folder (Resources) except nw.icns. This is the icon for the app" In the folder there is no nw.icns, there is only app.icns and documents.icns.

3. In the Mac OS instructions Custom name and icon/To have a custom name in the menu bar do the following #4 it states, "Change the Bundle name". In the info.plist I can find several instances of <key>CFBundleTypeName</key> but I'm not sure where the bundle name is entered?

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
soulbrother
Posts: 545
Joined: Tue Apr 08, 2008 7:01 pm
Location: München
Contact:

Tony wrote: Tue Nov 19, 2019 1:37 am and have a couple of questions.
1. ...
2. ...
3. ...
Goood questions Tony thanks for those, I am curious to all answers.
Tony wrote: Tue Nov 19, 2019 1:37 am 1. The instructions are divided into Windows and Mac. Can a desktop application created on the Mac run on Windows or do you need to be on a Windows platform to create a Windows desktop application. I'm presuming you have to be on a Windows platform.
And vice versa: Can I create it on Windows and my clients use it with a MAC?
User avatar
Hopki
Gnome
Posts: 13022
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Guys,
This is quite an old document. Looking at this, things have changed since we last looked at the NWJS project.

1) I just made a Windows .exe on the Mac, copied to a Windows machine and worked OK.
I have not tried going from Windows to Mac but I assume this would also work.
You just can not test it.
2) At some point, the app icon was called nw.icns, I guess they changed it in one of the updates. Have asked for the documents to be updated. Good catch.
3) With regards to this, do a search for
<key>CFBundleName</key>
Then under it edit the string, example:
<string>Phone Box</string>
When opened you will see the name in the toolbar.

Screenshot 2019-11-19 at 14.10.51.png
Screenshot 2019-11-19 at 14.10.51.png (13.82 KiB) Viewed 1186 times
Again we will update the docs to make this more clear.

For both Mac and Windows, the address bar shows the name entered in the package.json file.
Example:
"name": "Phone Box",
This said it is a third party application and was before our own desktop app.
So have not looked at this in a very long time.
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply