Comments (7)
The issue persists. The warning for damaged apps should not occur. macOS allows unsigned apps to run. To run unsigned apps, right-click and select 'open' from the context menu. However, this is not possible with NWJS, which should be considered a bug. It shows this 'damaged' warning instead even if you select open from context menu.
Other issues suggest running xattr commands, but this solution does not persist across systems when you package the app in a dmg.
from nw.js.
I am also experiencing this issue on v0.84.0; it warns that the app is damaged instead of prompting that it is from an unknown source. Running the x64 build through Rosetta 2 gives the proper security prompt. Ironically, this issue makes it more convenient to use a binary for a different architecture.
from nw.js.
Not an NW.js issue .. it's an Arm64 build and Gatekeeper issue. If you create a native Silicon app with NW.js, Electron (whatever), it's required to be signed and notarised if you're going to distribute it - without the user getting that error notice?
If you create the app locally for yourself and it works ... don't expect it to distribute across a network? There's plenty of discussions online going back several years: Not a recent issue, or just related to NW.js builds?
Ad-hoc signing may not even be enough anymore ... but some reckon it will reduce the notice to the less serious one (like you'd get with x64).
Fetch an (unsigned) arm64 .zip/.pkg download, using an alternative Download Manager app, and it will open normally (a simple double-click!). It's your Mac's browser that's doing the checks .. and adding the Quarantine flags?
Me, I just use: xattr -cr
.
from nw.js.
Yes, I confirm that ad hoc signing removes the "damaged" message, but ad hoc does not provide any cryptographic guarantees be mindful of that.
from nw.js.
The way Gatekeeper works is that as long as you build and distribute the application internally (lan, samba, usb flash drive, etc), it will not show you a message, but as long as you or your users download the application from the internet, MacOS will automatically add an attribute to the file as "quarantined" and GK will be triggered. For the experience to be seamless you need to pay apple to notarize your app.
from nw.js.
Same problem for me in v0.85.0
from nw.js.
After building your application, simply sign it:
codesign --force --deep -s - yourApp.app
detailed information: https://wiki.lazarus.freepascal.org/Code_Signing_for_macOS#Ad_hoc_signing
If you don't have macOS you can use a virtual machine for this:
https://github.com/kholia/OSX-KVM
https://github.com/sickcodes/Docker-OSX
I also see an alternative but I not sure about it: https://github.com/zhlynn/zsign
from nw.js.
Related Issues (20)
- The reopen event is not triggered when upgrading to 0.84.0 HOT 2
- There is no action after menu item mouse click sometime
- Clipboard doesn't work in a webview
- Error Message on 50.12-r1.1 at boot HOT 1
- Is it possible to get webgl context in c++ node module like in emscripten? HOT 2
- "--single-process" not working HOT 1
- build MSIX installer HOT 1
- Debugging connection was closed: WebSocket disconnected HOT 2
- How can I share Global and single instance between popup window and main window on nw0.81?
- Upgrade Node version for security fixes HOT 1
- Native file picker APIs do not return native path of the local file HOT 1
- crashed when load addon HOT 3
- crash on open HOT 1
- Angular App not appearing in nw.js window HOT 1
- %webkit_ver in "user-agent" has what looks like null pointer address output
- Application crash on Windows when network changes (like turning on/off Wi-Fi) HOT 1
- Linux/X11: crash on 0.85.0+ when trying to show a tooltip from `title` attributes ("GPU process exited unexpectedly: exit_code=133") HOT 2
- Tray icons are a dedicated, separated window when running on Wayland mode
- nw2 implementation cause windows to become floating ones on tiling compositors
- URL.createObjectURL still fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nw.js.