{"id":18034348,"url":"https://github.com/johansatge/nwjs-macappstore-builder","last_synced_at":"2025-03-27T06:31:30.134Z","repository":{"id":34761981,"uuid":"38743499","full_name":"johansatge/nwjs-macappstore-builder","owner":"johansatge","description":"🍎 A node module to easily build and publish NW.js apps on the Mac App Store.","archived":false,"fork":false,"pushed_at":"2016-05-09T20:57:44.000Z","size":501,"stargazers_count":28,"open_issues_count":2,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-23T08:11:43.810Z","etag":null,"topics":["appstore","cli","mac","nwjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johansatge.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-08T09:05:12.000Z","updated_at":"2023-10-10T04:46:29.000Z","dependencies_parsed_at":"2022-09-15T06:20:42.671Z","dependency_job_id":null,"html_url":"https://github.com/johansatge/nwjs-macappstore-builder","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fnwjs-macappstore-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fnwjs-macappstore-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fnwjs-macappstore-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johansatge%2Fnwjs-macappstore-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johansatge","download_url":"https://codeload.github.com/johansatge/nwjs-macappstore-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245797565,"owners_count":20673885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appstore","cli","mac","nwjs"],"created_at":"2024-10-30T11:10:48.439Z","updated_at":"2025-03-27T06:31:29.429Z","avatar_url":"https://github.com/johansatge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Version](https://img.shields.io/npm/v/nwjs-macappstore-builder.svg)\n![Downloads](https://img.shields.io/npm/dm/nwjs-macappstore-builder.svg)\n![Dependencies](https://img.shields.io/david/johansatge/nwjs-macappstore-builder.svg)\n![devDependencies](https://img.shields.io/david/dev/johansatge/nwjs-macappstore-builder.svg)\n\n# NW.js Mac App Store Builder\n\n![Icon](icon.jpg)\n\nThis node module has been made to easily build and publish [NW.js](http://nwjs.io) apps on the Mac App Store.\n\nIt automates all the steps described in [Publishing NW.js apps on the Mac App Store: a detailed guide](https://github.com/johansatge/nwjs-macappstore).\n\n---\n\n* [Installation](#installation)\n* [Configuration](#configuration)\n* [Programmatic usage](#programmatic-usage)\n* [CLI usage](#cli-usage)\n* [Changelog](#changelog)\n* [License](#license)\n* [Credits](#credits)\n\n## Installation\n\nInstall with [npm](https://www.npmjs.com/):\n\n```bash\nnpm install -g nwjs-macappstore-builder\n```\n\n## Configuration\n\nThe configuration of the tool uses a standard JS object:\n\n```javascript\nvar config = {\n\n    // Build paths\n    nwjs_path: '/Applications/nwjs.app', // Last build tested with NW.js 0.12.2\n    source_path: '/Users/johan/Github/my-nwjs-project/app', // App root (the dir with the package.json file)\n    build_path: '/Users/johan/Desktop', // Destination dir of the .app build\n    \n    // App informations\n    name: 'Your App',\n    bundle_id: 'com.yourcompanyname.yourapp',\n    version: '1.4.8',\n    bundle_version: '148',\n    copyright: '© Sample copyright',\n    icon_path: '/Users/johan/Github/my-nwjs-project/icon.icns',\n    \n    // Signing configuration\n    identity: 'LK12345678', // Application signing\n    identity_installer: 'LK12345679', // Application installer signing (may be the same as identity)\n    entitlements: [\n      'com.apple.security.network.client',\n      'com.apple.security.assets.movies.read-only'\n    ],\n       \n    // App categories\n    app_category: 'public.app-category.utilities',\n    app_sec_category: 'public.app-category.productivity',\n \n    // Additional keys to add in the Info.plist file (optional, remove if not needed)\n    plist: {\n        NSSampleProperty1: 'Property value 1',\n        NSSampleProperty2: {\n            NSSub1: 'Sub-property value 1',\n            NSSub2: 'Sub-property value 1'\n        }\n    }\n    \n    // Optimization\n    uglify_js: true // Uglifies all JS files found in the app (default is FALSE)\n}\n```\n\n## Programmatic usage\n\nJust require the module and fire the `build` function.\n\n```javascript\nvar Builder = require('nwjs-macappstore-builder');\nvar show_output = true;\n\nvar builder = new Builder();\nbuilder.build(config, function(error, app_path)\n{\n    console.log(error ? error.message : 'Build done: ' + app_path);\n}, show_output);\n```\n\n## CLI usage\n\nEach parameter of the config can be passed as a parameter:\n\n```bash\nnwjs-macappstore-builder --name=YourApp --bundle_id=com.yourcompanyname.yourapp [...]\n```\n\nAs there are a lot of parameters, you may prefer this more readable alternative:\n\n```bash\nnwjs-macappstore-builder --config=/Users/johan/Desktop/build-config.json\n```\n\nThe `build-config.json` file being a JSON object containing all the parameters described above.\n\n## Changelog\n\n| Version | Date | Notes |\n| --- | --- | --- |\n| `3.1.6` | 2016-05-09 | Displays a warning on minification error \u0026 updates dependencies |\n| `3.1.5` | 2016-02-10 | Fixes validation issue when using uppercase letters in `bundle_id` |\n| `3.1.4` | 2015-09-12 | Updates dependencies |\n| `3.1.3` | 2015-08-15 | Adds quotes around code-signing identity |\n| `3.1.2` | 2015-07-21 | Fixes minify path |\n| `3.1.1` | 2015-07-21 | Fixes relative config path |\n| `3.1.0` | 2015-07-20 | Adds `uglify_js` option (will uglify all JS found in the app) |\n| `3.0.2` | 2015-07-09 | Do not `--force` signing as it makes the app crash on some cases |\n| `3.0.1` | 2015-07-09 | Adds the `Fixing permissions` step |\n| `3.0.0` | 2015-07-09 | Adds the `identity_installer` option\u003cbr\u003eAdds `--force` when signing\u003cbr\u003eDo not force bundle IDs when signing |\n| `2.1.2` | 2015-07-08 | Updates repository URL |\n| `2.1.1` | 2015-07-08 | NPM fix |\n| `2.1.0` | 2015-07-08 | Adds packaging step |\n| `2.0.0` | 2015-07-08 | Initial version |\n\n## License\n\nThis project is released under the [MIT License](LICENSE).\n\n## Credits\n\n* [async](https://github.com/caolan/async)\n* [colors](https://github.com/Marak/colors.js)\n* [plist](https://github.com/TooTallNate/plist.js)\n* [validator.js](validatorjs.org)\n* [yargs](https://github.com/bcoe/yargs)\n* [glob](https://github.com/isaacs/node-glob)\n* [uglify-js](https://github.com/mishoo/UglifyJS2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohansatge%2Fnwjs-macappstore-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohansatge%2Fnwjs-macappstore-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohansatge%2Fnwjs-macappstore-builder/lists"}