Socket
Socket
Sign inDemoInstall

grunt-universal

Package Overview
Dependencies
120
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-universal

Grunt plugin for making universal macOS binaries using @electron/universal


Version published
Maintainers
1
Created

Readme

Source

grunt-universal

Grunt plugin for making universal macOS binaries using @electron/universal

Grunt

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-universal --save-dev

One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-universal');

The "universal" task

Overview

In your project's Gruntfile, add a section named universal to the data object passed into grunt.initConfig().

grunt.initConfig({
    universal: {
        mac: {
            'x64AppPath': 'build/tmp/HTML5test-darwin-x64/HTML5test.app',
            'arm64AppPath': 'build/tmp/HTML5test-darwin-arm64/HTML5test.app',
            'outAppPath': 'build/tmp/HTML5test-darwin-universal/HTML5test.app',
        }
    }
})

For each app that you want to notarize you can add a section. Each sections has a couple of options that you need to set, such the path to your x64 binary .app, the path to your arm64 binary .app and the path where you want your universal binary.app to be created. These options are documented in the @electron/universal project. Please read their documentation carefully.

Keywords

FAQs

Last updated on 31 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc