stemit-cli 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stemit-cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "CLI tool to split audio into stems (vocals/drums/bass/other), analyze BPM & key, and mute/solo tracks",
5
5
  "type": "module",
6
6
  "bin": {
@@ -114,20 +114,11 @@ async function ensureDemucsVenv(systemPython) {
114
114
  process.exit(1)
115
115
  }
116
116
  console.log(chalk.green(' ✔ demucs installed'))
117
-
118
- // macOS: fix SSL certificate verification (common issue with python.org installer)
119
- if (process.platform === 'darwin') {
120
- const certScript = spawnSync(
121
- VENV_PYTHON,
122
- ['-c', 'import certifi, ssl, urllib.request; urllib.request.install_opener(urllib.request.build_opener(urllib.request.HTTPSHandler(context=ssl.create_default_context(cafile=certifi.where()))))'],
123
- { encoding: 'utf8', stdio: 'pipe' }
124
- )
125
- if (certScript.status !== 0) {
126
- console.log(chalk.yellow(
127
- ' ⚠ SSL cert fix skipped. If you see SSL errors, run:\n' +
128
- ' /Applications/Python\\ 3.x/Install\\ Certificates.command'
129
- ))
130
- }
117
+ } else {
118
+ // Ensure certifi is present even if venv was created without it
119
+ const certifiCheck = spawnSync(VENV_PYTHON, ['-c', 'import certifi'], { encoding: 'utf8', stdio: 'pipe' })
120
+ if (certifiCheck.status !== 0) {
121
+ spawnSync(VENV_PIP, ['install', '--quiet', 'certifi'], { encoding: 'utf8', stdio: 'inherit' })
131
122
  }
132
123
  }
133
124