electrobun 0.0.19-beta.36 → 0.0.19-beta.37

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli/index.ts +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.0.19-beta.36",
3
+ "version": "0.0.19-beta.37",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",
package/src/cli/index.ts CHANGED
@@ -181,10 +181,23 @@ async function ensureCoreDependencies() {
181
181
  const mainJsPath = join(ELECTROBUN_DEP_PATH, 'dist', 'main.js');
182
182
  if (!existsSync(mainJsPath)) {
183
183
  console.error('Warning: main.js was not extracted properly');
184
+ console.error('This may be caused by Windows Defender or antivirus software quarantining .js files');
185
+ console.error('Try temporarily disabling real-time protection or adding an exclusion for the electrobun directory');
186
+
184
187
  // List what was actually extracted for debugging
185
188
  try {
186
189
  const extractedFiles = readdirSync(join(ELECTROBUN_DEP_PATH, 'dist'));
187
190
  console.log('Extracted files:', extractedFiles);
191
+
192
+ // Check if API directory exists but is empty
193
+ const apiPath = join(ELECTROBUN_DEP_PATH, 'dist', 'api');
194
+ if (existsSync(apiPath)) {
195
+ const apiFiles = readdirSync(apiPath);
196
+ console.log('API directory contents:', apiFiles);
197
+ if (apiFiles.length === 0) {
198
+ console.error('API directory is empty - this confirms antivirus is likely quarantining script files');
199
+ }
200
+ }
188
201
  } catch (e) {
189
202
  console.error('Could not list extracted files');
190
203
  }