@sencha/cmd-macos-arm-jre
Advanced tools
Comparing version 7.5.0-5 to 7.5.1-30
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
111967149
88