check out my latest app: Doodle Draw
and my latest blog post
Get the path to an app (macOS)
License: MIT License
check out my latest app: Doodle Draw
and my latest blog post
After installing app-path
in a clean project, I get the following deprecation warning:
npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead
This warning comes from the execa
dependency, which is still at v0.4.0
.
Can this one be updated to v1.0.0
, since that's released 3 months ago. 🙂
Thanks for all your great work @sindresorhus! 🙂
halo @sindresorhus do you think you can add support to Linux, specially Ubuntu?
Thank you.
Any plans to make this to work cross-platform (Mac, Windows, Linux)?
I just saw the package is updated from v2.2.0
to v3.0.0
which implies breaking changes, but I can't find any CHANGELOG to check them all out.
Would you be so kind to provide us with a decent CHANGELOG please? 🙂
Thanks for all your great work @sindresorhus! 🙂
in electron v6.0.11 I am getting this error message only in the built version of the app.
Error: spawn ENOTDIR
at ChildProcess.spawn (internal/child_process.js:394:11)
at Object.spawn (child_process.js:548:9)
at Module.module.exports (/Applications/myapp/Contents/Resources/app.asar/node_modules/execa/index.js:205:26)
at Function.module.exports.stdout (/Applications/myapp/Contents/Resources/app.asar/node_modules/execa/index.js:319:45)
at appPath (/Applications/myapp/Contents/Resources/app.asar/node_modules/app-path/index.js:22:22)
at createAppPath (/Applications/myapp/Contents/Resources/app.asar/src/helpers/saveDefaultBlockedAppsAndWebsites.helper.js:74:24)
at Array.map (<anonymous>)
at EventEmitter.saveDefaultBlockedAppsAndWebsites (/Applications/myapp/Contents/Resources/app.asar/src/helpers/saveDefaultBlockedAppsAndWebsites.helper.js:38:43)
at EventEmitter.emit (events.js:200:13)
at WebContents.<anonymous> (/Applications/myapp/Contents/Resources/electron.asar/browser/api/web-contents.js:334:21) {
errno: 'ENOTDIR',
code: 'ENOTDIR',
syscall: 'spawn'
}
using like so :
const createAppPath = async app => {
try {
const name = app.charAt(0).toUpperCase() + app.slice(1);
const path = await appPath(name);
return {
name,
path,
};
} catch (e) {
console.error('create app path error', e);
return null;
}
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.