Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Turn binaries into applications.
Embler can be used with pkg
turn a Node.js project into an app, without having to resort to Electron. Useful for making a web interface, or a basic menubar app.
Supports macOS app
, dmg
, zip
and tar.gz
. dmg
requires macOS
npm install embler
package.json
like so:
{
"name": "affinity-photo",
"author": "Serif",
"version": "1.7.0",
"scripts": {
"build": "embler",
},
"embler": {
"realName": "Affinity Photo",
"appId": "com.seriflabs.affinityphoto",
"mac": {
"binary": "dist/affinity-photo-mac-bin",
"icon": "icon.png",
"formats": ["app", "dmg", "zip", "tar.gz"],
}
}
}
npm run build
pkg
npm install pkg
pkg
and embler
to your liking (Usage example above)scripts.build
, bin
and embler.mac.binary
properties in your package.json
like so:{
"bin": "index.js",
"scripts": {
"build": "pkg . --target macos --output dist/test-bin-macos && embler"
},
"embler": {
"mac": {
"binary": "dist/test-bin-macos"
}
}
}
npm run build
index.js
is now an app.Supply options via json
file:
const embler = require('embler')
await embler.build('embler.json')
Supply options directly:
const embler = require('embler')
await embler.build({
name: "my-app",
author: "kasper.space",
version: "2.4.1",
embler: {
realName: "My App",
// ...
}
})
name
embler.name
is specifiedauthor
embler.author
is specifiedversion
embler.version
is specifiedembler.realName
= "${name}"
embler.appId
= "com.example.${name}"
embler.copyright
= "Copyright © year ${author}"
embler.outputDir
= "dist"
embler.backgroundApp
= false
embler.name
name
embler.author
author
embler.version
version
embler.mac
embler.mac.binary
embler.mac.category
/Applications
in Finder when View > Use Groups
is enabled using View > Sort By > Application Category
embler.mac.icon
.icns
or .png
embler.mac.formats
= ["app"]
app
, dmg
, zip
and tar.gz
. Creating dmg
requires macOSembler.mac.dmgBackground
dmg
@2x
. For example, you could have dmgbg.png
and dmgbg@2x.png
embler.mac.darkModeSupport
= true
embler.mac.customInfo
= {}
Info.plist
entries. Example:
"customInfo": {
"CFBundleDevelopmentRegion": "en"
}
npm install
To be able to run/test Embler:
4. Go to ./test
(This is where you test Embler)
5. Run npm install
6. Run npm run compile
(Compiles index.js
to binary)
To test Embler:
cd ./test
npm run pack
npm version <version>
npm publish
1.0.0 - 2020 Aug 18
app
, dmg
, zip
and tar.gz
FAQs
Turn binaries into applications
We found that embler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.