Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sencha/cmd-macos-arm-jre

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sencha/cmd-macos-arm-jre - npm Package Compare versions

Comparing version 7.5.0-5 to 7.5.1-30

dist/SenchaCmd-7.5.1.30-osx.app/Contents/_CodeSignature/CodeResources

43

install.js

@@ -5,8 +5,10 @@ const fs = require('fs-extra');

const pkg = require('./package.json');
const app = `\x1b[32m\x1b[1mℹ 「ext」\x1b[0m install:`;
let log = (() => {
if (["silent", "error", "warn", "http", "info", "verbose", "silly"].indexOf(process.env.npm_config_loglevel) > 3) {
return (m) => console.log(m);
return (m) => {console.log(`${app} ${m}`)}
} else {
return () => {};
return (m) => {console.log(`${app} ${m}`)}
//return () => {};
}

@@ -21,3 +23,3 @@ })();

if (pkg.isInstaller) {
log('This package contains an installer');
log('This package contains an installer');
let installerPath;

@@ -50,3 +52,3 @@ let toRemove;

log(`install4j mode`)
installerArgs.push('-Djava.awt.headless=true');
// installerArgs.push('-Djava.awt.headless=true');
installerArgs.push('-Dinstall4j.nolaf=true');

@@ -63,26 +65,33 @@ installerArgs.push('-Dinstall4j.logToStderr=true');

log(`With arguments: '${installerArgs.join(' ')}'`)
fs.chmodSync(installerPath, '755')
log(`chmodsync`)
try {
log(require('child_process').execFileSync(installerPath, installerArgs).toString());
} catch (spawnRet) {
if (spawnRet.error) {
log('\x1b[31m\x1b[1m[ERR]\x1b[0m' + spawnRet.error.message);
}
if (spawnRet.stderr) {
log('\x1b[31m\x1b[1m[ERR]\x1b[0m' + spawnRet.stderr.trim());
}
if (spawnRet.message) {
log('\x1b[31m\x1b[1m[ERR]\x1b[0m' + spawnRet.message.trim());
}
console.log(spawnRet)
//mjg
// if (spawnRet.error) {
// log('\x1b[31m\x1b[1m[ERR]\x1b[0m' + spawnRet.error.message);
// }
// if (spawnRet.stderr) {
// log('\x1b[31m\x1b[1m[ERR]\x1b[0m' + spawnRet.stderr.trim());
// }
// if (spawnRet.message) {
// log('\x1b[31m\x1b[1m[ERR]\x1b[0m' + spawnRet.message.trim());
// }
}
} else {
log(`Copying dist directory`);
// log(`Install for Sencha tooling completed`);
fs.moveSync(path.join(__dirname, 'dist'), distDir, { overwrite: true });
}
log(`Removing ${__dirname}/install.js`);
// log(`Removing installation files`);
//log(`Removing ${__dirname}/install.js`);
fs.removeSync(path.join(__dirname, "install.js"));
log(`Removing ${pkgHome}/platform-install.js`);
//log(`Removing ${pkgHome}/platform-install.js`);
fs.removeSync(path.join(pkgHome, 'platform-install.js'));
log(`Removing install hook in main package`);
//log(`Removing install hook in main package`);
delete pkgJson.scripts.install;

@@ -89,0 +98,0 @@ pkgJson.platformPkg = pkg.name;

@@ -34,3 +34,3 @@ {

"name": "@sencha/cmd-macos-arm-jre",
"version": "7.5.0-5",
"version": "7.5.1-30",
"isInstaller": true,

@@ -40,3 +40,3 @@ "dependencies": {

},
"version_full": "7.5.0.5"
"version_full": "7.5.1.30"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc