agentgui 1.0.354 → 1.0.355
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/build-portable.js +2 -2
- package/package.json +1 -1
package/build-portable.js
CHANGED
|
@@ -135,12 +135,12 @@ if (process.env.NO_BUNDLE_MODELS === 'true') {
|
|
|
135
135
|
log('Skipping model bundling (NO_BUNDLE_MODELS=true) - models will download on first use');
|
|
136
136
|
} else {
|
|
137
137
|
log('Bundling AI models...');
|
|
138
|
-
const userModels = path.join(os.homedir(), '.gmgui', 'models');
|
|
138
|
+
const userModels = process.env.MODELS_SOURCE_DIR || path.join(os.homedir(), '.gmgui', 'models');
|
|
139
139
|
if (fs.existsSync(userModels)) {
|
|
140
140
|
copyDir(userModels, path.join(out, 'models'));
|
|
141
141
|
log(`Models bundled: ${Math.round(sizeOf(path.join(out, 'models')) / 1024 / 1024)}MB`);
|
|
142
142
|
} else {
|
|
143
|
-
log(
|
|
143
|
+
log(`WARNING: No models found at ${userModels} - portable build will download on first use`);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|