UXP's `os` is a stripped subset of Node's — `os.tmpdir()` isn't exposed in
the build PPro 26.0.x ships, so both Import Proxy and Import Hi-Res failed
immediately with "os.tmpdir is not a function".
Replace with a defensive resolver tried in order:
1. os.tmpdir if present (newer UXP builds)
2. require('uxp').storage.localFileSystem.getTemporaryFolder() → .nativePath
(the documented portable approach)
3. process.env.TEMP / TMP / LOCALAPPDATA\\Temp (Windows always sets these)
4. os.homedir() + AppData/Local/Temp
tempPath() is now async; both Import.proxy and Import.hires await it.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
31 lines
772 B
JSON
31 lines
772 B
JSON
{
|
|
"manifestVersion": 5,
|
|
"id": "net.wilddragon.dragonflight.uxp",
|
|
"name": "Dragonflight MAM",
|
|
"version": "2.0.2",
|
|
"main": "index.html",
|
|
"host": {
|
|
"app": "premierepro",
|
|
"minVersion": "26.0.0"
|
|
},
|
|
"entrypoints": [
|
|
{
|
|
"type": "panel",
|
|
"id": "main",
|
|
"label": { "default": "Dragonflight MAM" },
|
|
"minimumSize": { "width": 320, "height": 360 },
|
|
"preferredDockedSize": { "width": 380, "height": 600 },
|
|
"preferredFloatingSize":{ "width": 420, "height": 720 }
|
|
}
|
|
],
|
|
"requiredPermissions": {
|
|
"localFileSystem": "fullAccess",
|
|
"network": {
|
|
"domains": [
|
|
"https://dragonflight.live",
|
|
"https://broadcastmgmt.cloud"
|
|
]
|
|
},
|
|
"allowCodeGenerationFromStrings": false
|
|
}
|
|
}
|