Code Monkey home page Code Monkey logo

Comments (10)

zkrige avatar zkrige commented on May 27, 2024 1

ah so upon further inspection it appears the copyright is in nwjs.app/Contents/Resources/en.lproj/InfoPlist.strings

NSHumanReadableCopyright = "Copyright 2023 The Chromium Authors, NW.js, Node.js. All rights reserved.";

its a plain key value file so you can just use sed to replace it

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on May 27, 2024

I'm pretty sure CFBundleGetInfoString is no longer supported/used in OSX 10 and above. Let me see what I can do about this.

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on May 27, 2024

5864c5b
Updating NSHumanReadableCopyright in Contents/Resources/en.lproj/InfoPlist.strings did not update the copyright.

8ccfddf
On the other hand, adding NSHumanReadableCopyright inside Info.plist as mentioned in Apple docs also does not work.

@rocketVibes let me know if you're able to find a solution for this. In the mean time, I'll keep trying.

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on May 27, 2024

@zkrige have you come across this issue before? how do you set the copyright in your apps?

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on May 27, 2024

@rocketVibes I looked into what other nw builders were doing. Found this interesting:
https://github.com/nwutils/nwjs-packager/blob/55f9d224ddea0301405508254303593d9ae266fd/bin/builder/BuilderOsx.js#L53

I a bit busy atm. If you're able to incorporate some changes from nwjs-packager and open a PR that would be great!

from nw-builder.

zkrige avatar zkrige commented on May 27, 2024

I run a manual plist tool just after build which sets plist values

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on May 27, 2024

Could you maybe paste some of the code here?

from nw-builder.

zkrige avatar zkrige commented on May 27, 2024

I'm traveling so I can't find the exact code but I had a quick look at build scripts on mobile

Here is a plistbuddy command that sets the display name in the renderer helper. You can do similar for any fields in plist

#/usr/libexec/PlistBuddy -c Set :CFBundleDisplayName $NAME Helper (RENDERER)" "${OUTDIRECTORY}/${NAME}.app/Contents/Frameworks/nwjs Framework.framework/Helpers/nwjs Helper (Renderer).app/Contents/Info.plist"

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on May 27, 2024

Ah cool, thanks!

from nw-builder.

ayushmanchhabra avatar ayushmanchhabra commented on May 27, 2024

@zkrige Whenever you get the time, could you post the code to update the NSHumanCopyright property?

from nw-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.