Notarize | CLI to easily notarize a Mac app | Command Line Interface library

 by   Mortennn Swift Version: 1.0.0 License: MIT

kandi X-RAY | Notarize Summary

kandi X-RAY | Notarize Summary

Notarize is a Swift library typically used in Utilities, Command Line Interface applications. Notarize has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

CLI to easily notarize a Mac app
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Notarize has a low active ecosystem.
              It has 53 star(s) with 5 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 3 open issues and 0 have been closed. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Notarize is 1.0.0

            kandi-Quality Quality

              Notarize has no bugs reported.

            kandi-Security Security

              Notarize has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              Notarize is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Notarize releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Notarize
            Get all kandi verified functions for this library.

            Notarize Key Features

            No Key Features are available at this moment for Notarize.

            Notarize Examples and Code Snippets

            Notarize,Usage,Description
            Swiftdot img1Lines of Code : 18dot img1License : Permissive (MIT)
            copy iconCopy
            $ notarize --help
            
                Copyright (c) 2019, Morten Nielsen.
            
                Version: Notarize 1.0.0 NotarizeKit 1.0.0
            
                Usage: --package  --username  --password  --primary-bundle-id 
            
                Options:
            
                --package            Path to either DMG or zip file.
                  
            Notarize,Usage,Example
            Swiftdot img2Lines of Code : 5dot img2License : Permissive (MIT)
            copy iconCopy
            $ notarize \
                --package "~/path/to/app.dmg" \
                --username "mail@icloud.com" \
                --password "@keychain:AC_PASSWORD" \
                --primary-bundle-id "com.company.appname.  

            Community Discussions

            QUESTION

            why are executables installed with homebrew trusted on MacOS?
            Asked 2021-Jun-09 at 11:57

            I have a stupid question about homebrew: Why are executables that I install via homebrew trusted by MacOS (gatekeeper)? i.e. after installation I can run an executable and don't get a security popup and don't have to allow an exception - why is that?

            I initially thought that homebrew might sign/notarize the binaries in their CI, but looking at some random executables it doesn't look like they have a signature: spctl -a -v $(which ).

            edit: meaning executables installed from bottles (pre-compiled binaries, not source packages compiled on my local machine)

            ...

            ANSWER

            Answered 2021-Jun-09 at 11:57

            There is no quarantining flag for a CLI app downloaded with curl. Home-brew, uses UNIX core tools to download the bottles, and thus they don't have this flag set.

            Next home-brew also ad-hoc signs binaries.

            Don't confuse code sign with notarisation.

            Notarisation is where Apple vouches for software signed with a dev cert private key.

            They cannot notarise ad-hoc signed software (like home-brew bottles) by definition.

            Now when my executable is NOT notarized it terminates with "Killed: 9", regardless if there's a quarantine attribute or not.

            This is happening, I would speculate because the binary here isnt ad-hoc signed. Nothing to do with notarisation.

            I bet you are on Apple Silicon right?

            Source https://stackoverflow.com/questions/67446317

            QUESTION

            Can I use environment variables in electron package.json for osx notarize credentials?
            Asked 2021-May-18 at 17:37

            Successfully notarized my electron application for osx, but now the issue is that the apple id and app specific password are in the package.json. I of course don't want to hard code them there for distribution but can I use environment variables from say a .env file to replace them or how can I keep them secret in the package.json file?

            I looked into dotenv and cross-env but I didn't see how the env variables could be used in a package.json file.

            App was built using electron forge.

            Structure (taken from the electron-forge docs) that I use:

            ...

            ANSWER

            Answered 2021-May-18 at 17:37

            Duplicate of your own post : Where can I find electron forge config js file where package.json is parsed?

            You should rather extract the electron forge configuration in a separate JS file : ElectronForge configuration and load your environment variables using process.env.YOUR_VARIABLE_NAME

            package.json

            Source https://stackoverflow.com/questions/67580218

            QUESTION

            Cannot Notarize .net core app for macOS usage
            Asked 2021-May-18 at 00:24

            I am trying to notarize my .net core application to run in MacOS devices, and when I notarize it I get the error of

            The executable does not have the hardened runtime enabled

            if I add the --options=runtime flag to my signing operation my console app stops working. I found in the dotnet documentation that you have to add the following entitlements to your app host.

            • com.apple.security.cs.allow-jit
            • com.apple.security.cs.allow-unsigned-executable-memory
            • com.apple.security.cs.allow-dyld-environment-variables
            • com.apple.security.cs.disable-library-validation

            but I dont know where to add them, I tried adding a entitlements.plist file to my output directory with the following content:

            ...

            ANSWER

            Answered 2021-May-18 at 00:24

            the solution is to use the entitlements.plist when signing the code:

            Source https://stackoverflow.com/questions/67550776

            QUESTION

            How to generate an "app-specific password" with Team Account in order to notarize app?
            Asked 2021-May-11 at 17:47

            I am trying to notarize an Electron app using electron-builderand electron-notarize. The docs state that an app specific password is needed and provides this link: Using app-specific passwords.

            The problem is that link is about generating "app-specific passwords" for personal Apple ID accounts – not Apple Developer accounts. And I am part of a team and there is no place (e.g. a "Security" panel) in either my personal ADC account nor the parts of team account I have access too (where I have admin privileges).

            I've tried all combinations I can think of for APPLEID and APPLEIDPASSwhen trying to notarize: my personal Apple ID & password, the team's Apple ID & password, "app-specfic passwords" I created in my personal account.

            It's can't be this hard. What am I missing?

            ...

            ANSWER

            Answered 2021-May-11 at 17:47

            I have been able to solve my notarization issues. I don't know if this is "the right way" but it worked, so here is what I did – maybe it will save someone the time and frustration I went through.

            Context: I am a contractor with "Admin" privileges on my client's Apple Developer account, along with my having a personal ADC account. As noted in my question, the Electron Builder docs state that an "app-specific password" is needed and links to an Apple doc about how to generate one. However, that link is or seems to be about generating a specific password to use with a 3rd party app like "Twitter" – so that one's personal Apple ID password is protected. At least that is the way I read it. There is no place within my personal ADC account or the Team account where such a password can be generated. So I generated a password in my personal ADC account.

            This post from Electron Builder issues introduced an additional property to pass to notarize: the "ProviderShortname". As noted in the post, this can be accessed through:

            Source https://stackoverflow.com/questions/67462070

            QUESTION

            node-canvas in electron -- "mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed."
            Asked 2021-May-09 at 17:31

            I'm cresting electron app using node-canvas.
            I generated an app-installer by the following command:

            $ electron-builder --mac --x64 --config ./build_mac.js

            build_mac.js

            ...

            ANSWER

            Answered 2021-May-09 at 17:31

            The solution to fix this is put all dylibs (except under "/usr/lib" or "/System/Library/Frameworks") under the folder which is in under control of electron.

            Something like this in my project: https://github.com/code4history/MaplatEditor/tree/master/assets/mac/canvas/build/Release

            But just putting dylib is not working, because each dylib has information about link to other libraries.

            You can check which libraries are linked from each dylib by using "otool" command, and youcan overwrite it by using "install_name_tool" command.

            https://github.com/code4history/MaplatEditor/blob/master/mac_canvas_dylib

            In this URL, you can find what I did for my project.

            Source https://stackoverflow.com/questions/66733391

            QUESTION

            Notarize issue: altool not in PATH?
            Asked 2021-May-09 at 07:49

            OSX version: 10.14.6
            electron-builder: 22.11.1
            electron-notarize: 1.0.0

            I've been trying to notarize an Electron app using the latest version of Electron Builder, however I keep getting the error:

            error: unable to find utility "altool", not a developer tool or in PATH

            I've seen the other questions related to this issue and based on the suggestions, I've removed, reinstalled and selected the CommandLineTools using:

            ...

            ANSWER

            Answered 2021-May-09 at 07:49

            You need to install Xcode - the command line tools do not include altool, but Xcode does.

            Assuming you install Xcode to /Applications you will find altool at /Applications/Xcode.app/Contents/Developer/usr/bin/altool

            Source https://stackoverflow.com/questions/67451428

            QUESTION

            On macOS, When adding an installer plugin to a package, an alert appears to the user when launching the package. Can it be removed somehow?
            Asked 2021-Apr-29 at 08:11

            I am building a package for macOS, and I would like to include a package plugin. If I do so, even if I notarize the package, this dialog appears on launch:

            Can it be somehow removed ? Thanks

            ...

            ANSWER

            Answered 2021-Apr-29 at 08:11

            No. This cannot be removed. It is a security feature to inform the user.

            Instead of using a plug-in, you may be able to do what you want with Installer JS scripts.

            Source https://stackoverflow.com/questions/67138560

            QUESTION

            Sandbox policy error in a non-sandboxed app
            Asked 2021-Apr-11 at 20:42

            I'm using ad hoc (outside App Store) distribution for my document-based app. The app is NOT sandboxed, and entitlements are set correctly:

            ...

            ANSWER

            Answered 2021-Apr-11 at 20:42

            The problem was some remnants of old a bundle identifier. I had migrated to a sandboxed distribution of the app, and at some point in the process, I had built the sandboxed version with the same bundle identifier. macOS had registered the bundle identifier to belong to a sandboxed app and, probably due to security reasons, no longer wanted to allow it to run non-sandboxed.

            I created a fresh Info.plist, and changed the bundle identifier and the errors were gone.

            Source https://stackoverflow.com/questions/67042524

            QUESTION

            Can't compile sqlite3 as a native addon, Electron React Boilerplate project
            Asked 2021-Mar-10 at 22:12

            I'm building a project based off the Electron React Boilerplate project. I am running MacOS 10.15.7 and node v14.15.1.

            I'm trying to install sqlite3 package. Since it's a native dependency, I ran yarn add sqlite3 inside the src/ directory, like it says to do here. The compilation fails with the following output:

            ...

            ANSWER

            Answered 2021-Mar-10 at 22:12

            I downgraded the sqlite3 package to v5.0.0 and it rebuilt correctly. Hope this helps anyone else with the same issue.

            Source: nodejs electronjs sqlite3 - use of undeclared identifier 'napi_is_detached_arraybuffer'

            Source https://stackoverflow.com/questions/66466890

            QUESTION

            Electron-notarize problem not signing all binaries
            Asked 2020-Nov-26 at 15:13

            I'm having strange problems with electron notarization. I followed the tutorial on this page:https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/

            It seemed to be pretty thorough so I don't know what I'm missing. Everything runs fine until notarize.js:

            ...

            ANSWER

            Answered 2020-Nov-26 at 15:13

            I don't know if the reason I ran into this is the same as yours, but here's what I discovered, in case this helps anyone else.

            Before manually notarizing your app (using electron-notarize), make sure the certificate type you're signing your app with is correct. You specifically need a Developer ID Application certificate (the last one):

            I had been using Apple Distribution before, and notarization failed because of it. The list of files you're seeing are probably the first few files Apple checked, and they were signed with an incorrect type of certificate (don't quote me on this), and so it failed.

            Either way, once I generated an Developer ID Application certificate, defined my entitlements this way:

            Source https://stackoverflow.com/questions/64168569

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Notarize

            Download the latest release
            Run the install script: $ ./install.sh

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Mortennn/Notarize.git

          • CLI

            gh repo clone Mortennn/Notarize

          • sshUrl

            git@github.com:Mortennn/Notarize.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by Mortennn

            Dozer

            by MortennnSwift

            FiScript

            by MortennnSwift