Files
RedLintu16andClaude Opus 5.5 b67b29b40b CrossSound desktop with the DRM stubbed out
A single-commit snapshot of better-remote (7a8c4cb plus the uncommitted
remote.js work), with every DRM-bearing piece replaced by a stub that keeps
the same interface:

- src/ui/drm.js: no DRM pipelines; needsDrm/isDrmUrl false,
  bestEncryptedTranscoding null, playDrmAudio rejects. The engine switcher
  and drmVjs* helpers stay as no-ops.
- src/electron/drm.ts: initCdm/setupLicenseCors no-ops; the drm:license and
  api:stream:drm-info IPC handlers reject with "DRM is not available".
- src/api/soundcloud.ts: resolveEncryptedStream keeps its signature, rejects.
- src/electron/main.ts: license host dropped from the header rewrite.
- src/ui/pb-lease.js: the expiry self-check uses a placeholder URL instead
  of a captured DRM manifest URL (same policy values, still passes).
- scripts/vmp-sign.js, forge.config.js vmpSign: Widevine signing skipped,
  so no castLabs EVS account is needed to run or package.
- README: says DRM is stubbed here.

Go+ tracks SoundCloud only serves encrypted are unplayable and skipped;
previews and everything else play as before. No history: the private
branches' DRM code is not reachable from this commit.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-14 10:06:08 -07:00

31 lines
1.3 KiB
JavaScript
Executable File

#!/usr/bin/env node
'use strict'
// Build icons/icon.icns (the macOS app icon) from icons/CrossSound.svg. macOS-only:
// scripts/gen-icns.swift draws every size of the Apple .iconset from the vector
// (white mark on a tile of the SVG's colour, sized to Apple's icon grid so it
// matches other Dock icons), then the system `iconutil` packs it.
// Regenerate after changing the SVG: `node scripts/gen-icns.js`.
const fs = require('fs')
const os = require('os')
const path = require('path')
const { execFileSync } = require('child_process')
if (process.platform !== 'darwin') {
console.error('[gen-icns] needs macOS (swift + iconutil) — run it on the Mac')
process.exit(1)
}
const iconsDir = path.join(__dirname, '..', 'icons')
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'crosssound-icns-'))
const iconset = path.join(tmp, 'CrossSound.iconset')
fs.mkdirSync(iconset)
try {
execFileSync('swift', [path.join(__dirname, 'gen-icns.swift'), path.join(iconsDir, 'CrossSound.svg'), iconset],
{ stdio: 'inherit' })
const out = path.join(iconsDir, 'icon.icns')
execFileSync('iconutil', ['-c', 'icns', iconset, '-o', out], { stdio: 'inherit' })
console.log(`[gen-icns] wrote icons/icon.icns — ${fs.readdirSync(iconset).length} images, ${fs.statSync(out).size} bytes`)
} finally {
fs.rmSync(tmp, { recursive: true, force: true })
}