feat: bundle dingtalk plugin mirror cross‑platform and fix windows packaging
This commit is contained in:
@@ -618,12 +618,16 @@ function registerOpenClawHandlers(gatewayManager: GatewayManager): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const candidateSources = app.isPackaged
|
const candidateSources = app.isPackaged
|
||||||
? [join(process.resourcesPath, 'openclaw-plugins', 'dingtalk')]
|
? [
|
||||||
|
join(process.resourcesPath, 'openclaw-plugins', 'dingtalk'),
|
||||||
|
join(process.resourcesPath, 'app.asar.unpacked', 'build', 'openclaw-plugins', 'dingtalk'),
|
||||||
|
join(process.resourcesPath, 'app.asar.unpacked', 'openclaw-plugins', 'dingtalk')
|
||||||
|
]
|
||||||
: [
|
: [
|
||||||
join(app.getAppPath(), 'build', 'openclaw-plugins', 'dingtalk'),
|
join(app.getAppPath(), 'build', 'openclaw-plugins', 'dingtalk'),
|
||||||
join(process.cwd(), 'build', 'openclaw-plugins', 'dingtalk'),
|
join(process.cwd(), 'build', 'openclaw-plugins', 'dingtalk'),
|
||||||
join(__dirname, '../../build/openclaw-plugins/dingtalk'),
|
join(__dirname, '../../build/openclaw-plugins/dingtalk'),
|
||||||
];
|
];
|
||||||
|
|
||||||
const sourceDir = candidateSources.find((dir) => existsSync(join(dir, 'openclaw.plugin.json')));
|
const sourceDir = candidateSources.find((dir) => existsSync(join(dir, 'openclaw.plugin.json')));
|
||||||
if (!sourceDir) {
|
if (!sourceDir) {
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
; ClawX Custom NSIS Installer/Uninstaller Script
|
; ClawX Custom NSIS Installer/Uninstaller Script
|
||||||
|
|
||||||
!macro customInstall
|
!macro customInstall
|
||||||
; Enable Windows long path support for all-user (admin) installs.
|
; Enable Windows long path support (Windows 10 1607+ / Windows 11).
|
||||||
; pnpm virtual store and node_modules paths can exceed the default 260-char
|
; pnpm virtual store paths can exceed the default MAX_PATH limit of 260 chars.
|
||||||
; MAX_PATH limit on Windows. This registry key enables the modern NTFS
|
; Writing to HKLM requires admin privileges; on per-user installs without
|
||||||
; long-path behavior on Windows 10 1607+ / Windows 11.
|
; elevation this call silently fails — no crash, just no key written.
|
||||||
${If} $MultiUser.InstallMode == "AllUsers"
|
WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1
|
||||||
WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1
|
|
||||||
${EndIf}
|
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
!macro customUnInstall
|
!macro customUnInstall
|
||||||
|
|||||||
Reference in New Issue
Block a user