2.1.1 • Published 11 years ago
atom-shell-packager v2.1.1
atom-shell-packager
Build a distributable app from an atom-shell app source code directory. Currently only Mac OS is implemented but you can send PRs to implement windows/linux :)
For an example project using this, check out Monu
installation
# for use in npm scripts
npm i atom-shell-packager --save-dev
# for use from cli
npm i atom-shell-packager -g
# you also need atom-shell installed
npm i atom-shellusage
$ atom-shell-packager my-app-source-dir AppNameThis will:
- Find the closest local version of
atom-shellinstalled (usingrequire.resolve) - Use that version of atom-shell to create a Mac app in
cwdcalledAppName.app
You should be able to double-click AppName.app to launch the app. If not, check your settings and try again.
Be careful not to include node_modules you don't want into your final app. For example, do not include the node_modules/atom-shell-packager folder or node_modules/atom-shell. You can use --ignore=node_modules/atom-shell to ignore of these
options
these are optional CLI options you can pass in
out(default current working dir) - the dir to put the app into at the endversion(default hardcoded in source) - atom-shell version to useapp-bundle-id- bundle identifier to use in the app plisthelper-bundle-id- bundle identifier to use in the app helper plistignore(default none) - do not copy files into App whose filenames regex .match this stringprune- runsnpm prune --productionon the app
