ewvjs-cli 1.0.2 → 1.0.3

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/lib/packager.js CHANGED
@@ -123,7 +123,7 @@ function runPkg(args) {
123
123
  * @param {string} config.icon - Icon file path (.ico)
124
124
  * @param {string} config.name - Application name
125
125
  * @param {string} config.target - Target platform (e.g., node18-win-x64)
126
- * @param {boolean} config.compress - Whether to compress with UPX
126
+ * @param {boolean} config.compress - Whether to compress the executable
127
127
  * @param {boolean} config.includeNative - Whether to include native DLLs
128
128
  * @param {string[]} config.additionalModules - Additional node modules to bundle
129
129
  */
@@ -318,6 +318,10 @@ async function packageApp(config) {
318
318
  console.log('\nšŸŽØ Step 4: Setting application icon...');
319
319
  await setIcon(outputPath, icon, name);
320
320
  console.log(' āœ“ Icon applied');
321
+ } else if (name) {
322
+ console.log('\nšŸŽØ Step 4: Setting application name...');
323
+ await setIcon(outputPath, null, name);
324
+ console.log(' āœ“ Name applied');
321
325
  }
322
326
 
323
327
  // Step 5: Create ZIP archive
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ewvjs-cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CLI tool for packaging ewvjs applications",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -15,7 +15,7 @@ expose('getSystemInfo', () => {
15
15
  });
16
16
 
17
17
  // Create main window
18
- const window = create_window('Hello ewvjs', `file://${path.resolve('index.html')}`, {
18
+ const window = create_window('Hello ewvjs', `file://${path.resolve('assets/index.html')}`, {
19
19
  width: 800,
20
20
  height: 600,
21
21
  vibrancy: true,